<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="46">
  <CheatEntries>
    <CheatEntry>
      <ID>2104</ID>
      <Description>"THE KING OF FIGHTERS '98 ULTIMATE MATCH FINAL EDITION"</Description>
      <Options moHideChildren="1" moActivateChildrenAsWell="1" moDeactivateChildrenAsWell="1"/>
      <Color>C08000</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]

aobscanmodule(One,KingOfFighters98UM_x64.exe,41 0F BF 90 38 01 00 00 89)
aobscanmodule(Two,KingOfFighters98UM_x64.exe,0F B6 98 E3 01 00 00)
aobscanmodule(Three,KingOfFighters98UM_x64.exe,41 0F B7 88 E8 00 00 00)
aobscanmodule(Four,KingOfFighters98UM_x64.exe,41 0F B7 80 E8 00 00 00)

alloc(newmemOne,$1000,One)
alloc(newmemTwo,$1000,Two)
alloc(newmemThree,$1000,Three)
alloc(newmemFour,$1000,Four)
alloc(Five,1)
alloc(Six,1)
alloc(Seven,1)
alloc(Eight,1)
alloc(Nine,1)
alloc(Ten,1)
alloc(Eleven,1)
alloc(Twelve,1)

registersymbol(One)
registersymbol(Two)
registersymbol(Three)
registersymbol(Four)
registersymbol(Five)
registersymbol(Six)
registersymbol(Seven)
registersymbol(Eight)
registersymbol(Nine)
registersymbol(Ten)
registersymbol(Eleven)
registersymbol(Twelve)

label(codeOne)
label(codeTwo)
label(codeThree)
label(codeFour)
label(codeFive)
label(codeSix)
label(codeSeven)
label(codeEight)
label(codeNine)
label(codeTen)
label(codeEleven)
label(codeTwelve)
label(codeThirteen)
label(codeFourteen)
label(codeFifteen)
label(codeSixteen)
label(codeSeventeen)
label(codeEighteen)
label(returnOne)
label(returnTwo)
label(returnThree)
label(returnFour)

Five:
  db 0

Six:
  db 0

Seven:
  db 0

Eight:
  db 0

Nine:
  db 0

Ten:
  db 0

Eleven:
  db 0

Twelve:
  db 0

newmemOne:
  cmp dword ptr [rax+BC],8
  jne codeOne
  cmp byte ptr [Five],1
  je codeTwo
  cmp byte ptr [Seven],1
  je codeThree
  jmp codeFour

codeOne:
  cmp byte ptr [Six],1
  je codeTwo
  cmp byte ptr [Eight],1
  je codeThree
  jmp codeFour

codeTwo:
  mov word ptr [r8+00000138],80
  jmp codeFour

codeThree:
  xor dx,dx
  mov word ptr [r8+00000138],dx

codeFour:
  movsx edx,word ptr [r8+00000138]
  jmp returnOne

One:
  jmp newmemOne
  nop 3

returnOne:

newmemTwo:
  cmp dword ptr [rax+170],0
  jne codeFive
  cmp byte ptr [Nine],1
  je codeSix
  cmp byte ptr [Eleven],1
  je codeSeven
  jmp codeEight

codeFive:
  cmp byte ptr [Ten],1
  je codeSix
  cmp byte ptr [Twelve],1
  je codeSeven
  jmp codeEight

codeSix:
  mov byte ptr [rax+000001E3],3
  jmp codeEight

codeSeven:
  xor bl,bl
  mov byte ptr [rax+000001E3],bl

codeEight:
  movzx ebx,byte ptr [rax+000001E3]
  jmp returnTwo

Two:
  jmp newmemTwo
  nop 2

returnTwo:

newmemThree:
  cmp dword ptr [rax+A2C],0
  jne codeNine
  cmp byte ptr [Nine],1
  je codeTen
  cmp byte ptr [Eleven],1
  je codeFourteen
  jmp codeFifteen

codeNine:
  cmp byte ptr [Ten],1
  je codeEleven
  cmp byte ptr [Twelve],1
  je codeFourteen
  jmp codeFifteen

codeTen:
  cmp byte ptr [KingOfFighters98UM_x64.exe+19F1117],0
  je codeTwelve
  jmp codeThirteen

codeEleven:
  cmp byte ptr [KingOfFighters98UM_x64.exe+19F0D70],0
  je codeTwelve
  jmp codeThirteen

codeTwelve:
  mov word ptr [r8+000000E8],81FF
  jmp codeFifteen

codeThirteen:
  mov word ptr [r8+000000E8],6000
  jmp codeFifteen

codeFourteen:
  xor cx,cx
  mov word ptr [r8+000000E8],cx

codeFifteen:
  movzx ecx,word ptr [r8+000000E8]
  jmp returnThree

Three:
  jmp newmemThree
  nop 3

returnThree:

newmemFour:
  cmp dword ptr [r8+170],0
  jne codeSixteen
  cmp byte ptr [Eleven],1
  je codeSeventeen
  jmp codeEighteen

codeSixteen:
  cmp byte ptr [Twelve],1
  je codeSeventeen
  jmp codeEighteen

codeSeventeen:
  xor ax,ax
  mov word ptr [r8+000000E8],ax

codeEighteen:
  movzx eax,word ptr [r8+000000E8]
  jmp returnFour

Four:
  jmp newmemFour
  nop 3

returnFour:

[DISABLE]

One:
  db 41 0F BF 90 38 01 00 00

Two:
  db 0F B6 98 E3 01 00 00

Three:
  db 41 0F B7 88 E8 00 00 00

Four:
  db 41 0F B7 80 E8 00 00 00

unregistersymbol(One)
unregistersymbol(Two)
unregistersymbol(Three)
unregistersymbol(Four)
unregistersymbol(Five)
unregistersymbol(Six)
unregistersymbol(Seven)
unregistersymbol(Eight)
unregistersymbol(Nine)
unregistersymbol(Ten)
unregistersymbol(Eleven)
unregistersymbol(Twelve)

dealloc(newmemOne)
dealloc(newmemTwo)
dealloc(newmemThree)
dealloc(newmemFour)
dealloc(Five)
dealloc(Six)
dealloc(Seven)
dealloc(Eight)
dealloc(Nine)
dealloc(Ten)
dealloc(Eleven)
dealloc(Twelve)
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>18</ID>
          <Description>"==== Player 1 ===="</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C080FF</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>2149</ID>
              <Description>"Freeze Time (needs a check added for when a round ends)"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

aobscanmodule(Time,KingOfFighters98UM_x64.exe,88 05 62 51 93 01)
alloc(newmem,$1000,Time)

label(code)
label(return)

newmem:
  cmp byte ptr [KingOfFighters98UM_x64.exe+19E32F3],0
  je return

code:
  mov [KingOfFighters98UM_x64.exe+19F1128],al
  jmp return

Time:
  jmp newmem
  nop

return:
registersymbol(Time)

[DISABLE]

Time:
  db 88 05 62 51 93 01

unregistersymbol(Time)
dealloc(newmem)
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2192</ID>
              <Description>"⬆Needs to be disabled for the round to end."</Description>
              <Color>C0C0C0</Color>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
            <CheatEntry>
              <ID>2100</ID>
              <Description>"Infinite Health"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Five:
  db 1

[DISABLE]

Five:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2175</ID>
              <Description>"Infinite Power (only for adv?)"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Nine:
  db 1

[DISABLE]

Nine:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2109</ID>
              <Description>"Opponent Zero Power"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Twelve:
  db 1

[DISABLE]

Twelve:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2103</ID>
              <Description>"Quick Win"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Eight:
  db 1

[DISABLE]

Eight:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2182</ID>
              <Description>"Health"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <Color>C08000</Color>
              <VariableType>2 Bytes</VariableType>
              <Address>KingOfFighters98UM_x64.exe+19EB3B8</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>2189</ID>
              <Description>"Power"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <Color>C08000</Color>
              <VariableType>2 Bytes</VariableType>
              <Address>KingOfFighters98UM_x64.exe+19EB368</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>2185</ID>
              <Description>"Power Stocks"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <Color>C08000</Color>
              <VariableType>Byte</VariableType>
              <Address>KingOfFighters98UM_x64.exe+19EB463</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>21</ID>
          <Description>"==== Player 2 ===="</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C080FF</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>2101</ID>
              <Description>"Infinite Health"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Six:
  db 1

[DISABLE]

Six:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2176</ID>
              <Description>"Infinite Power (only for advanced?)"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Ten:
  db 1

[DISABLE]

Ten:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2108</ID>
              <Description>"Opponent Zero Power"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Eleven:
  db 1

[DISABLE]

Eleven:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2102</ID>
              <Description>"Quick Win"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Seven:
  db 1

[DISABLE]

Seven:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2184</ID>
              <Description>"Health"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <Color>C08000</Color>
              <VariableType>2 Bytes</VariableType>
              <Address>KingOfFighters98UM_x64.exe+19EB5B8</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>2190</ID>
              <Description>"Power"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <Color>C08000</Color>
              <VariableType>2 Bytes</VariableType>
              <Address>KingOfFighters98UM_x64.exe+19EB568</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>2186</ID>
              <Description>"Power Stocks"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <Color>C08000</Color>
              <VariableType>Byte</VariableType>
              <Address>KingOfFighters98UM_x64.exe+19EB663</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>1054</ID>
          <Description>"==== Extras ====="</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C080FF</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>2072</ID>
              <Description>"Player ➜"</Description>
              <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">*:Waiting
3:Off
2:Player 1
1:Player 2
0:Both Players
</DropDownList>
              <ShowAsSigned>0</ShowAsSigned>
              <Color>C08000</Color>
              <VariableType>Byte</VariableType>
              <Address>KingOfFighters98UM_x64.exe+19F057B</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>2088</ID>
              <Description>"⬆Lock and select at the character select screen."</Description>
              <Color>C0C0C0</Color>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
            <CheatEntry>
              <ID>2177</ID>
              <Description>"⬆It needs to be turned off before the end of a match to advance, and also turned off if you want to pause. If left on until the end of the match, the game will lock up."</Description>
              <Color>C0C0C0</Color>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
            <CheatEntry>
              <ID>2193</ID>
              <Description>"⬆Need to create a script to check for the end of the match and pauses."</Description>
              <Color>C0C0C0</Color>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
