Function at 0x425540
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a451
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push ecx
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
push ecx
push edx
call fcn.00423920
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
jne 0x42559c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
mov dword [0x43601c], eax
mov dword [0x436020], eax
mov eax, dword [0x442fc4]
mov dword [eax + 4], ecx
mov edx, dword [0x442fc4]
mov dword [edx + 8], ecx
mov eax, dword [0x43601c]
cmp eax, ecx
je 0x425fc6
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.Engine.dll_void___cdecl_CPrintF_char_const__]
mov edi, dword [sym.imp.Engine.dll_char____cdecl_Translate_char___long_int_]
push 0x443074
mov ecx, 0x442fb0
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x425fc6
push 1
push 0
push 0
lea eax, [ebp - 0x30]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x425e8d
xor esi, esi
mov edi, 1
jmp 0x425623
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 1
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp eax, 0x200
jb 0x425634
cmp eax, 0x209
jbe 0x425665
cmp eax, 0x100
jne 0x425647
cmp dword [ebp - 0x28], 0x79
je 0x4258bb
jmp 0x42564e
cmp eax, 0x104
je 0x425665
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x112
jne 0x4257ba
mov ecx, dword [ebp - 0x28]
and ecx, 0xfffffff0
sub ecx, 0xf020
je 0x425742
sub ecx, 0x10
je 0x4256f6
sub ecx, 0xf0
jne 0x4258e5
cmp dword [0x437270], esi
jne 0x4258e5
mov eax, dword [0x436030]
mov dword [0x437270], edi
cmp eax, esi
mov dword [0x442fd0], edi
push edi
je 0x425739
mov eax, dword [0x437274]
push eax
call ebx
mov ecx, dword [0x436030]
mov edx, dword [0x442fe0]
mov eax, dword [0x436038]
push ecx
mov ecx, dword [0x436034]
push edx
mov edx, dword [0x442fe4]
push eax
mov eax, dword [0x442fe8]
push ecx
push edx
push eax
call fcn.00426780
add esp, 0x18
jmp 0x4257b7
cmp dword [0x437270], esi
jne 0x4258e5
mov edx, dword [0x442fe0]
mov eax, dword [0x436038]
mov ecx, dword [0x436034]
push edi
push edx
mov edx, dword [0x442fe4]
push eax
mov eax, dword [0x442fe8]
push ecx
push edx
push eax
mov dword [0x437270], edi
mov dword [0x442fd0], edi
call fcn.00426780
add esp, 0x18
push edi
mov ecx, dword [0x437274]
push ecx
jmp 0x4257b5
cmp dword [0x437270], esi
jne 0x4258e5
mov eax, dword [0x43602c]
mov dword [0x437270], edi
cmp eax, esi
mov dword [0x442fd0], edi
je 0x42578a
mov edx, dword [sym.imp.Engine.dll_class_CNetworkLibrary___pNetwork]
mov ecx, dword [edx]
call dword [sym.imp.Engine.dll_public:_int___thiscall_CNetworkLibrary::IsPaused_void_]
test eax, eax
jne 0x42578a
cmp dword [0x442bf4], edi
jne 0x42578a
mov eax, dword [sym.imp.Engine.dll_class_CNetworkLibrary___pNetwork]
mov ecx, dword [eax]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CNetworkLibrary::TogglePause_void_]
cmp dword [0x436030], esi
je 0x4257ad
mov ecx, dword [sym.imp.Engine.dll_class_CGfxLibrary___pGfx]
push 9
mov ecx, dword [ecx]
call dword [sym.imp.Engine.dll_public:_int___thiscall_CGfxLibrary::ResetDisplayMode_enum_GfxAPIType_]
mov edx, dword [0x437274]
push 6
push edx
jmp 0x4257b5
mov eax, dword [0x437274]
push 6
push eax
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0x104
jne 0x425816
cmp dword [ebp - 0x28], 0xd
jne 0x4258e5
mov ecx, dword [0x437274]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x425813
mov ecx, dword [0x436030]
mov eax, dword [0x442fe0]
xor edx, edx
cmp ecx, esi
mov ecx, dword [0x436038]
sete dl
push edx
mov edx, dword [0x436034]
push eax
mov eax, dword [0x442fe4]
push ecx
mov ecx, dword [0x442fe8]
push edx
push eax
push ecx
call fcn.00426780
add esp, 0x18
mov eax, dword [ebp - 0x2c]
cmp eax, 0x12
je 0x425820
cmp eax, 0x10
jne 0x42582c
mov dword [0x43601c], esi
mov dword [0x436020], esi
mov ecx, dword [ebp - 0x28]
cmp eax, 6
jne 0x425850
cmp cx, si
je 0x425878
mov edx, ecx
shr edx, 0x10
jne 0x425878
cmp cx, di
je 0x425870
cmp cx, 2
je 0x425870
jmp 0x4258e5
cmp eax, 0x1f
je 0x425878
cmp eax, 8
je 0x425878
cmp eax, 0x1c
jne 0x42586b
cmp ecx, esi
je 0x425878
mov dword [0x442fd0], edi
jmp 0x4258b4
cmp eax, 7
jne 0x4258b4
mov dword [0x442fd0], edi
jmp 0x4258b4
cmp dword [0x437270], esi
jne 0x4258b4
cmp dword [0x43601c], esi
je 0x4258b4
cmp dword [0x436030], esi
je 0x4258a4
push esi
push 0xf020
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4258b1
mov eax, dword [sym.imp.Engine.dll_class_CInput___pInput]
mov ecx, dword [eax]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CInput::DisableInput_void_]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x100
jne 0x4258e5
cmp dword [ebp - 0x28], 0x1b
jne 0x4258e5
mov ecx, dword [0x442bf4]
cmp ecx, 4
je 0x4258d1
cmp ecx, 5
jne 0x4258e5
mov ecx, dword [0x442fc4]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov eax, dword [ebp - 0x2c]
mov dword [0x442bf4], esi
mov ecx, dword [0x442fc4]
cmp dword [ecx + 4], 5
jne 0x42590c
cmp eax, 0x100
jne 0x42590c
cmp dword [ebp - 0x28], 0x1b
jne 0x42590c
xor eax, eax
mov dword [ecx + 4], esi
mov ecx, dword [0x442fc4]
mov dword [ebp - 0x2c], eax
cmp dword [0x442bf4], esi
jne 0x425924
mov ecx, dword [ecx + 4]
cmp ecx, esi
je 0x425920
cmp ecx, 3
jne 0x425924
mov edx, edi
jmp 0x425926
xor edx, edx
cmp eax, 0x100
jne 0x425949
cmp dword [ebp - 0x28], 0x1b
jne 0x425949
mov ecx, dword [0x442fc4]
mov ecx, dword [ecx + 8]
cmp ecx, esi
je 0x425945
cmp ecx, 4
jne 0x425949
mov ecx, edi
jmp 0x42594b
xor ecx, ecx
cmp dword [0x442fc8], esi
jne 0x42598f
cmp edx, esi
jne 0x42595b
cmp ecx, esi
je 0x4259af
mov ecx, dword [0x442fc4]
mov eax, dword [ecx + 4]
cmp eax, edi
je 0x42596d
cmp eax, 2
jne 0x42597a
mov dword [ecx + 4], 3
mov dword [0x443010], esi
push 0x443078
mov dword [ebp - 0x2c], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
jmp 0x4259a7
cmp edx, esi
je 0x4259a7
cmp ecx, esi
je 0x4259a7
mov edx, dword [0x442c2c]
cmp dword [edx + 0x10], esi
jne 0x4259a7
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [0x442fc8], esi
jne 0x4259da
mov ecx, dword [0x442fc4]
mov ecx, dword [ecx + 4]
cmp ecx, esi
je 0x4259c1
cmp ecx, 3
jne 0x4259da
call fcn.00408880
test eax, eax
jne 0x4259d7
push 0x44307c
call fcn.004085d0
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [0x442ff8], esi
je 0x4259f8
push str.save
mov dword [0x442ff8], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x442ffc], esi
je 0x425a16
push str.load
mov dword [0x442ffc], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x443000], esi
je 0x425a34
push str.controls
mov dword [0x443000], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x443004], esi
je 0x425a52
push str.hiscore
mov dword [0x443004], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x443010], esi
jne 0x425b46
cmp eax, 0x100
jne 0x425aa4
mov edx, dword [0x442fc4]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov eax, dword [edx]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [eax + 0x24]
mov eax, dword [0x442fc4]
cmp dword [eax + 4], 1
je 0x425af0
mov edx, dword [eax]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call dword [edx + 0x38]
jmp 0x425af0
cmp eax, 0x101
jne 0x425ace
cmp dword [ebp - 0x28], 0xd
jne 0x425b46
mov ecx, dword [0x442fc4]
cmp dword [ecx + 4], 5
jne 0x425b46
mov dword [ecx + 4], 0
jmp 0x425af0
cmp eax, 0x102
jne 0x425af3
mov eax, dword [0x442fc4]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edx, dword [eax]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x201
je 0x425b1d
cmp eax, 0x204
je 0x425b1d
cmp eax, 0x203
je 0x425b1d
cmp eax, 0x206
je 0x425b1d
cmp eax, 0x202
je 0x425b1d
cmp eax, 0x205
jne 0x425b46
mov ecx, dword [0x442fc4]
cmp dword [ecx + 4], 1
je 0x425b46
mov eax, dword [ecx]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x442fc4]
call dword [eax + 0x38]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x442fc8]
xor ebx, ebx
cmp ecx, ebx
je 0x425bfd
mov ecx, dword [sym.imp.Engine.dll_class_CInput___pInput]
mov edx, dword [ecx]
cmp dword [edx + 4], ebx
jne 0x425bfd
cmp eax, 0x100
jne 0x425b74
mov eax, dword [ebp - 0x28]
push eax
jmp 0x425bf2
cmp eax, 0x201
je 0x425bf0
cmp eax, 0x203
je 0x425bf0
cmp eax, 0x204
je 0x425bec
cmp eax, 0x206
je 0x425bec
cmp eax, 0x200
jne 0x425bb0
mov eax, dword [ebp - 0x24]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
call fcn.0040d680
add esp, 8
jmp 0x425bfa
cmp eax, 0x20a
jne 0x425bcc
mov ecx, dword [ebp - 0x28]
shr ecx, 0x10
cmp cx, bx
jle 0x425bc6
push 0xb
jmp 0x425bf2
jge 0x425bfd
push 0xa
jmp 0x425bf2
cmp eax, 0x102
jne 0x425bfd
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d650
add esp, 0x1c
jmp 0x425bfa
push 2
jmp 0x425bf2
push 1
call fcn.0040d5c0
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [0x443008], ebx
jne 0x425c36
cmp eax, 0x100
jne 0x425c9b
mov edx, dword [ebp - 0x28]
push ebx
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp eax, 0x29
je 0x425c36
mov eax, dword [ebp - 0x28]
cmp eax, 0x70
je 0x425c36
cmp eax, 0x1b
jne 0x425c9b
cmp dword [0x443010], 3
jne 0x425c9b
cmp dword [0x442e90], ebx
jne 0x425c9b
mov eax, dword [0x443010]
mov edx, 3
cmp eax, edx
mov dword [0x443008], ebx
jne 0x425c58
mov dword [0x443010], ebx
mov ecx, dword [0x442fc4]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x425c78
cmp eax, edx
je 0x425c78
cmp eax, 1
je 0x425c73
cmp eax, 2
jne 0x425c9b
mov dword [ecx + 4], edx
jmp 0x425c9b
push ebx
mov dword [ecx + 4], 2
call dword [sym.imp.Engine.dll_void___cdecl_IFeel_StopEffect_char__]
mov eax, dword [0x442fc8]
add esp, 4
cmp eax, ebx
je 0x425c9b
push ebx
call fcn.00408830
add esp, 4
push 0x436be8
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
add esp, 4
mov dword [ebp + 0x14], eax
mov ecx, dword [sym.imp.Engine.dll_class_CShell___pShell]
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 4], ebx
mov ecx, dword [ecx]
call dword [sym.imp.Engine.dll_public:_long_int___thiscall_CShell::GetINDEX_class_CTString_const__]
test eax, eax
je 0x425cd9
mov edx, dword [0x442fc4]
cmp dword [edx + 4], ebx
sete al
test al, al
je 0x425cd9
mov bl, 1
jmp 0x425cdb
xor bl, bl
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.Engine.dll_void___cdecl_FreeMemory_void__]
or edi, 0xffffffff
push eax
mov dword [ebp - 4], edi
call esi
add esp, 4
test bl, bl
je 0x425d3c
push str.con_bTalk
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
add esp, 4
mov dword [ebp + 8], eax
mov edx, dword [sym.imp.Engine.dll_class_CShell___pShell]
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ecx
mov ecx, dword [edx]
mov dword [ebp - 4], 1
call dword [sym.imp.Engine.dll_public:_void___thiscall_CShell::SetINDEX_class_CTString_const___long_int_]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
push eax
call esi
mov ecx, dword [0x442fc4]
add esp, 4
mov dword [ecx + 4], 5
jmp 0x425d3e
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0x100
jne 0x425d61
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x13
jne 0x425d97
mov edx, dword [sym.imp.Engine.dll_class_CNetworkLibrary___pNetwork]
mov ecx, dword [edx]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CNetworkLibrary::TogglePause_void_]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x111
jne 0x425d97
cmp ecx, 0x3e9
jne 0x425d97
mov eax, dword [ebp - 0x24]
push eax
call fcn.00425060
add esp, 4
push ebx
push 0xf120
push 0x112
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov edx, dword [0x442bf4]
cmp edx, 4
je 0x425dab
cmp edx, 5
jne 0x425e64
cmp eax, 0x100
jne 0x425dbe
cmp ecx, 0x1b
jne 0x425dbe
mov esi, 1
jmp 0x425dcc
xor esi, esi
cmp eax, 0x100
jne 0x425de6
cmp ecx, 0x70
je 0x425ddf
push ebx
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x29
mov eax, dword [ebp - 0x2c]
jne 0x425de6
mov edx, 1
jmp 0x425de8
xor edx, edx
cmp eax, 0x100
jne 0x425dfd
cmp ecx, 0x20
je 0x425e0f
cmp ecx, 0xd
je 0x425e0f
xor eax, eax
jmp 0x425e14
cmp eax, 0x201
je 0x425e0f
cmp eax, 0x204
je 0x425e0f
xor eax, eax
jmp 0x425e14
mov eax, 1
cmp esi, ebx
je 0x425e31
mov ecx, dword [0x442fc4]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov dword [0x436054], ebx
mov dword [0x442bf4], ebx
jmp 0x425e64
cmp eax, ebx
je 0x425e64
cmp edx, ebx
jne 0x425e64
cmp dword [0x442fc8], ebx
jne 0x425e64
cmp dword [0x442fcc], ebx
jne 0x425e64
mov ecx, dword [0x442fc4]
cmp dword [ecx + 4], ebx
jne 0x425e64
mov eax, dword [ecx]
call dword [eax + 0x60]
mov dword [0x442bf4], ebx
call fcn.00422e50
push 1
push ebx
push ebx
lea ecx, [ebp - 0x30]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x425616
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.Engine.dll_void___cdecl_CPrintF_char_const__]
mov edi, dword [sym.imp.Engine.dll_char____cdecl_Translate_char___long_int_]
mov edx, dword [0x442fc4]
mov dword [0x437270], 0
mov eax, dword [edx + 8]
test eax, eax
je 0x425ed7
cmp eax, 4
je 0x425ed7
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x437274]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x442fc4]
push edx
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov eax, dword [0x443010]
cmp eax, 1
jne 0x425f12
mov eax, dword [0x442fa0]
push eax
push 4
push str.ETRS_____Executing_addon:__s_n
call edi
add esp, 8
push eax
call esi
add esp, 8
mov dword [0x443008], 1
mov dword [0x443010], 2
jmp 0x425f93
cmp eax, 2
jne 0x425f93
mov ecx, dword [0x442fc4]
cmp dword [ecx + 4], 1
jne 0x425f93
push 0x4370b4
call dword [sym.imp.Engine.dll_char____cdecl_StringDuplicate_char_const__]
add esp, 4
mov dword [ebp + 0x10], eax
mov edx, dword [0x442fa0]
lea eax, [ebp + 0x10]
push edx
push 0x436c20
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.Engine.dll_public:_long_int___cdecl_CTString::PrintF_char_const__]
mov edx, dword [sym.imp.Engine.dll_class_CShell___pShell]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [edx]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CShell::Execute_class_CTString_const__]
push 4
push str.ETRSAddon_done__press_Escape_to_close_console_n
call edi
add esp, 8
push eax
call esi
mov eax, dword [ebp + 0x10]
mov dword [0x443010], 3
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Engine.dll_void___cdecl_FreeMemory_void__]
add esp, 8
call fcn.00422be0
call fcn.00422c90
mov ecx, dword [0x442fc4]
mov edx, dword [0x442fc8]
mov dword [ecx + 0xf58], edx
call fcn.00424d50
call fcn.00422d00
mov eax, dword [0x43601c]
test eax, eax
jne 0x4255db
mov eax, dword [sym.imp.Engine.dll_class_CInput___pInput]
mov ecx, dword [eax]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CInput::DisableInput_void_]
mov ecx, dword [0x442fc4]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov eax, dword [0x436020]
test eax, eax
je 0x426000
push 0x443080
mov ecx, 0x442fb0
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x426000
call fcn.004253a0
call fcn.004249b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret