Function at 0x429c00
Capabilities:
Check for foreground window switch
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47911b
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4951c0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x4951c0]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x4ebfd0]
mov esi, ecx
cmp edi, 0xffffffff
jne 0x429c68
cmp eax, 0xfffffffe
je 0x42a636
xor ebx, ebx
cmp dword [0x4ed54c], ebx
je 0x42a636
jmp 0x429c6a
xor ebx, ebx
mov ecx, 1
cmp dword [0x58fb10], ecx
je 0x42a636
mov dword [0x58fb10], ecx
mov dword [esp + 0x180], ebx
cmp eax, 2
jne 0x429ce4
cmp edi, 0xffffffff
jne 0x42a630
cmp dword [0x4ab5a4], 0x3e7
mov dword [0x58faa4], ecx
jle 0x429cba
push 0x47fa80
push 0x47faac
call fcn.00458fe0
add esp, 8
mov eax, dword [0x4ab5a4]
mov ecx, dword [0x4ec0a0]
mov dword [eax*4 + 0x4ac810], ecx
inc eax
push 0x544750
mov dword [0x4ab5a4], eax
call fcn.00459840
add esp, 4
jmp 0x42a630
cmp eax, 0xffffffff
jne 0x429cf5
mov ecx, esi
call fcn.004481f0
jmp 0x42a630
cmp eax, ecx
je 0x429d01
cmp edi, ebx
jl 0x429f81
call fcn.00404400
jmp 0x429d10
mov dword [0x58faf8], ebx
mov dword [0x53b590], ebx
cmp edi, 0xffffffff
jne 0x429dc8
mov edx, dword [0x4967f0]
mov eax, dword [0x4965ec]
push ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov byte [0x4985c0], bl
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, eax
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x4987d8]
push eax
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edx
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [0x4965ec]
imul edx, dword [0x4967f0]
mov eax, dword [0x58fb28]
push edx
push ebx
push eax
call fcn.004112a0
mov ecx, dword [0x52dea4]
add esp, 0xc
push 0x648310
push ebx
push ebx
push ecx
push esi
call fcn.0044b1f0
cmp dword [0x58fe6c], ebx
jne 0x42a630
cmp eax, 0xffffffff
je 0x42a3b0
mov eax, dword [eax*4 + 0x4ebfd8]
jmp 0x429dca
mov eax, edi
mov edi, 1
cmp eax, edi
je 0x429f72
cmp eax, ebx
je 0x42a1aa
cmp eax, 5
je 0x42a1f3
cmp eax, 6
je 0x42a20f
cmp eax, 7
je 0x42a233
cmp eax, 3
je 0x42a257
cmp eax, 2
je 0x42a3ce
cmp eax, 4
jne 0x429ebf
mov edx, dword [0x49b484]
mov eax, dword [0x4967f0]
mov ecx, dword [0x4965ec]
push ebx
mov dword [esp + 0x20], edx
mov dword [0x58faf8], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov byte [0x4985c0], bl
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], edx
mov edx, dword [0x4987d8]
push ecx
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4965ec]
imul eax, dword [0x4967f0]
mov ecx, dword [0x58fb28]
push eax
push ebx
push ecx
call fcn.004112a0
add esp, 0xc
mov ecx, 0x47fb2c
mov ebx, esi
call fcn.00447b60
cmp eax, 1
je 0x42a527
cmp dword [ebp + 8], 0xffffffff
jne 0x42a54c
mov edi, dword [ebp + 8]
xor ebx, ebx
jmp 0x429d10
cmp eax, 0xa
jne 0x42a5e5
mov edx, dword [0x49b484]
mov eax, dword [0x4967f0]
mov ecx, dword [0x4965ec]
push ebx
mov dword [esp + 0x20], edx
mov dword [0x58faf8], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov byte [0x4985c0], bl
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], edx
mov edx, dword [0x4987d8]
push ecx
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4965ec]
imul eax, dword [0x4967f0]
mov ecx, dword [0x58fb28]
push eax
push ebx
push ecx
call fcn.004112a0
add esp, 0xc
mov ecx, 0x47fb50
mov ebx, esi
call fcn.00447b60
cmp eax, 1
je 0x42a588
cmp dword [ebp + 8], 0xffffffff
jne 0x42a5ac
mov edi, dword [ebp + 8]
xor ebx, ebx
jmp 0x429d10
cmp dword [ebp + 8], 0xffffffff
jne 0x42a07f
call fcn.004044a0
cmp dword [0x53b590], ebx
je 0x42a630
mov edx, dword [0x49b484]
mov ecx, dword [0x58fcb8]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x14], edx
mov dword [0x49b484], ebx
mov dword [0x58fa88], 1
jle 0x429fc6
mov edx, dword [eax*4 + 0x54b128]
inc eax
cmp eax, ecx
mov dword [edx*4 + 0x53a1c8], ebx
jl 0x429fb3
xor eax, eax
call fcn.004566d0
mov eax, dword [0x4ed874]
mov ecx, dword [0x52dc0c]
push ebx
push eax
push ecx
mov edx, 0x544438
mov ecx, esi
mov dword [0x58fa88], ebx
call fcn.0045f070
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edx, dword [0x49ab6c]
mov eax, dword [edx + 0x10]
push 1
push 0x202
push 0x202
push eax
lea ecx, [esp + 0x60]
push ecx
call edi
test eax, eax
jne 0x429ff3
mov edx, dword [0x49ab6c]
mov eax, dword [edx + 0x10]
push 1
push 0x201
push 0x201
push eax
lea ecx, [esp + 0x60]
push ecx
call edi
test eax, eax
jne 0x42a014
mov dword [0x58faf0], ebx
cmp dword [0x58fe6c], ebx
jne 0x42a630
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [ecx]
push esi
call fcn.00402780
test eax, eax
je 0x42a0bb
cmp dword [0x58faec], ebx
jne 0x42a0d0
cmp dword [0x58faf0], ebx
jne 0x42a0d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x49ab6c]
cmp eax, dword [edx + 0x10]
je 0x42a08a
xor eax, eax
jmp 0x42a091
mov dword [0x53b590], edi
jmp 0x429f8d
push 0x20
call edi
movzx eax, ax
test eax, 0x8000
jne 0x42a0d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
je 0x42a0ad
xor eax, eax
jmp 0x42a0b4
push 0x1b
call edi
movzx eax, ax
test eax, 0x8000
jne 0x42a0d0
push esi
call fcn.00461ed0
cmp dword [0x58fe6c], ebx
je 0x42a050
jmp 0x42a630
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x49ab6c]
cmp eax, dword [edx + 0x10]
je 0x42a0e5
xor eax, eax
jmp 0x42a0ec
push 0x20
call edi
movzx eax, ax
test eax, 0x8000
jne 0x42a116
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
je 0x42a108
xor eax, eax
jmp 0x42a10f
push 0x1b
call edi
movzx eax, ax
test eax, 0x8000
je 0x42a11f
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42a0d0
mov edx, dword [esp + 0x14]
mov dword [0x58faf0], ebx
mov dword [0x58faec], ebx
mov dword [0x49b484], edx
mov edi, 1
mov eax, dword [0x49ab6c]
mov ecx, dword [eax + 0x10]
push edi
push 0x202
push 0x202
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x42a13a
mov ecx, dword [0x58fcb8]
cmp ecx, ebx
jle 0x42a184
jmp 0x42a170
mov edx, dword [eax*4 + 0x54b128]
add eax, edi
cmp eax, ecx
mov dword [edx*4 + 0x53a1c8], edi
jl 0x42a170
xor eax, eax
call fcn.004566d0
mov eax, dword [0x4ed874]
mov ecx, dword [0x52dc0c]
push ebx
push eax
push ecx
mov edx, 0x544438
mov ecx, esi
call fcn.0045f070
jmp 0x42a630
xor eax, eax
call fcn.004566d0
push ebx
push ebx
push edi
xor edx, edx
mov ecx, esi
call fcn.0045f070
cmp dword [ebp + 8], 0xffffffff
jg 0x429ce9
call fcn.004044a0
mov ecx, esi
call fcn.004481f0
test eax, eax
jne 0x42a630
xor eax, eax
call fcn.004566d0
push ebx
push ebx
push edi
xor edx, edx
mov ecx, esi
call fcn.0045f070
jmp 0x42a630
mov edx, dword [esi + 0x10]
push ebx
push 0x9c46
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.004044a0
jmp 0x42a1db
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push ebx
push 0x426360
push eax
push 0x47fabc
push ecx
mov dword [0x54c8f8], edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x42a630
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 8]
push ebx
push 0x426360
push edx
push str.IDD_SAVELOADDIALOG
push eax
mov dword [0x54c8f8], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x42a630
mov edx, dword [0x4967f0]
mov eax, dword [0x4965ec]
mov ecx, dword [0x49b484]
push edx
push eax
push ebx
push ebx
xor eax, eax
mov edi, 0x4985c0
mov dword [esp + 0x24], ecx
mov dword [0x58faf8], ebx
call fcn.00401f90
mov ecx, dword [0x4965ec]
imul ecx, dword [0x4967f0]
mov edx, dword [0x58fb28]
push ecx
push ebx
push edx
call fcn.004112a0
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
push 1
mov ecx, esi
call fcn.00446f80
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x42a39e
jmp 0x42a2c0
mov edx, dword [0x49a31c]
lea ecx, [esp + 0x6c]
push ecx
push 0x47fae4
push edx
call fcn.004081b3
mov eax, dword [0x4967f0]
mov ecx, dword [0x4965ec]
add esp, 0xc
push eax
push ecx
push ebx
push ebx
xor eax, eax
mov edi, 0x4985c0
mov dword [0x58faf8], ebx
call fcn.00401f90
mov edx, dword [0x4965ec]
imul edx, dword [0x4967f0]
mov eax, dword [0x58fb28]
push edx
push ebx
push eax
call fcn.004112a0
mov ecx, dword [0x49a31c]
add esp, 0xc
mov ebx, esi
call fcn.00447b60
cmp eax, 1
je 0x42a38e
xor ebx, ebx
cmp dword [0x58fe6c], ebx
jne 0x42a630
mov ecx, dword [0x4967f0]
mov edx, dword [0x4965ec]
push ecx
push edx
push ebx
push ebx
xor eax, eax
mov dword [0x58faf8], ebx
call fcn.00401f90
mov eax, dword [0x4965ec]
imul eax, dword [0x4967f0]
mov ecx, dword [0x58fb28]
push eax
push ebx
push ecx
call fcn.004112a0
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
push 1
mov ecx, esi
call fcn.00446f80
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x42a2c0
jmp 0x42a39e
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.004446e0
add esp, 4
xor ebx, ebx
cmp dword [0x58fba4], ebx
je 0x42a3b0
mov ecx, dword [esp + 0x14]
mov dword [0x49b484], ecx
call fcn.004044a0
xor eax, eax
call fcn.004566d0
push ebx
push ebx
push 1
xor edx, edx
mov ecx, esi
call fcn.0045f070
jmp 0x42a630
mov eax, dword [0x4967f0]
mov ecx, dword [0x4965ec]
mov edx, dword [0x49b484]
push eax
push ecx
push ebx
push ebx
xor eax, eax
mov edi, 0x4985c0
mov dword [esp + 0x24], edx
mov dword [0x58faf8], ebx
call fcn.00401f90
mov edx, dword [0x4965ec]
imul edx, dword [0x4967f0]
mov eax, dword [0x58fb28]
push edx
push ebx
push eax
call fcn.004112a0
add esp, 0xc
lea ecx, [esp + 0x6c]
push ecx
push ebx
mov ecx, esi
call fcn.00446f80
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x42a39e
mov eax, dword [0x49a31c]
lea edx, [esp + 0x6c]
push edx
push 0x47fb08
push eax
call fcn.004081b3
mov ecx, dword [0x4967f0]
mov edx, dword [0x4965ec]
add esp, 0xc
push ecx
push edx
push ebx
push ebx
xor eax, eax
mov edi, 0x4985c0
mov dword [0x58faf8], ebx
call fcn.00401f90
mov eax, dword [0x4965ec]
imul eax, dword [0x4967f0]
mov ecx, dword [0x58fb28]
push eax
push ebx
push ecx
call fcn.004112a0
mov ecx, dword [0x49a31c]
add esp, 0xc
mov ebx, esi
call fcn.00447b60
cmp eax, 1
je 0x42a500
xor ebx, ebx
cmp dword [0x58fe6c], ebx
jne 0x42a630
mov edx, dword [0x4967f0]
mov eax, dword [0x4965ec]
push edx
push eax
push ebx
push ebx
xor eax, eax
mov dword [0x58faf8], ebx
call fcn.00401f90
mov ecx, dword [0x4965ec]
imul ecx, dword [0x4967f0]
mov edx, dword [0x58fb28]
push ecx
push ebx
push edx
call fcn.004112a0
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
push ebx
mov ecx, esi
call fcn.00446f80
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x42a430
jmp 0x42a39e
mov edx, dword [esp + 0x18]
inc edx
push edx
call fcn.00444e40
add esp, 4
mov dword [0x58fb00], 1
mov dword [0x58fb10], 0
jmp 0x42a636
mov eax, dword [0x49ab6c]
push 1
call fcn.0046fad0
mov dword [0x58fafc], 1
mov dword [0x58fb10], 0
jmp 0x42a636
cmp dword [0x58fba4], 0
je 0x42a55e
mov eax, dword [esp + 0x1c]
mov dword [0x49b484], eax
call fcn.004044a0
xor eax, eax
call fcn.004566d0
push 0
push 0
push 1
xor edx, edx
mov ecx, esi
call fcn.0045f070
mov dword [0x58fb10], 0
jmp 0x42a636
call fcn.00424500
mov ecx, dword [0x49ab6c]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x58fb10], 0
jmp 0x42a636
cmp dword [0x58fba4], 0
je 0x42a5be
mov eax, dword [esp + 0x1c]
mov dword [0x49b484], eax
call fcn.004044a0
xor eax, eax
call fcn.004566d0
push 0
push 0
push 1
xor edx, edx
mov ecx, esi
call fcn.0045f070
mov dword [0x58fb10], 0
jmp 0x42a636
cmp eax, 9
jne 0x42a61e
mov ecx, dword [0x49ab6c]
mov edx, dword [ecx + 0x10]
push 0x24
push 0x496568
push 0x4964e8
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x42a630
mov eax, dword [0x49ab6c]
push edi
call fcn.0046fad0
mov dword [0x58fafc], edi
jmp 0x42a630
push esi
call fcn.00445be0
mov dword [0x49b484], ebx
mov dword [0x53b590], ebx
mov dword [0x58fb10], ebx
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00407f40
mov esp, ebp
pop ebp
ret 4