Function at 0x402240
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ed58
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x14
cmp eax, 0x3039
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x4024d5
mov ecx, dword [esi + 0xe6]
xor ebx, ebx
cmp ecx, ebx
je 0x4024b9
call fcn.00408e10
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp eax, ebx
je 0x4024b9
lea ecx, [esp + 0x34]
push 1
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xe6]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], ebx
call fcn.00408f60
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov ebp, eax
call edi
test ah, 0x80
je 0x4023be
mov eax, dword [0x43dcc0]
mov dword [esp + 0x14], eax
push 0x10
mov dword [esp + 0x30], ebx
call edi
test ah, 0x80
je 0x402319
push 0x5a
call edi
test ah, 0x80
je 0x402319
push 0x59
call edi
test ah, 0x80
je 0x402319
push 0x42
call edi
test ah, 0x80
je 0x402319
lea ecx, [esp + 0x20]
push ecx
push 0x2c
push 0x431870
call fcn.00401a20
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
call fcn.004271c0
jmp 0x402396
mov edx, dword [0x43dcc0]
mov dword [esp + 0x18], edx
push 0x70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.00427418
lea eax, [esp + 0x34]
push ebx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0xe6]
call fcn.00408f60
mov ecx, dword [esi + 0xe6]
mov edi, eax
lea edx, [esp + 0x34]
push 2
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00408f60
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
shr ecx, 0xa
shr edx, 0xa
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push ebp
push edi
push 0x50
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00421063
add esp, 0x20
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.00427037
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x21e]
push edx
call fcn.00403490
mov dword [esi + 0x372], 1
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x402404
cmp dword [esi + 0x372], ebx
je 0x402409
mov eax, dword [0x43dcc0]
mov dword [esp + 0x18], eax
push 0x6a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 2
call fcn.00427418
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esi + 0x21e]
call fcn.00403490
mov dword [esi + 0x372], ebx
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00427037
cmp dword [esi + 0x362], ebp
je 0x4024b9
mov edx, dword [0x43dcc0]
mov dword [esp + 0x20], edx
push 0x6f
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], 3
call fcn.00427418
mov eax, dword [0x43dcc0]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
push ebp
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x38], 4
call fcn.00421063
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push eax
push 0x3ee
call fcn.00425dee
mov edx, dword [esi + 0x21e]
lea edi, [esi + 0x21e]
push 0xff4080
push 0xff8c55
push 0xff8c55
push 0xffffff
mov ecx, edi
call dword [edx + 0xb8]
push ebx
mov ecx, edi
call fcn.00405f20
lea ecx, [esp + 0x1c]
mov dword [esi + 0x362], ebp
mov byte [esp + 0x2c], 3
call fcn.00427037
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00427037
mov ecx, esi
call fcn.00423598
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
cmp eax, 0x1ed2
jne 0x402506
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call fcn.00402060
mov ecx, dword [esi + 0x1c]
push 0
push 0xf020
push 0x112
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4024b9
cmp eax, 0x2b67
jne 0x4024b9
mov eax, dword [esi + 0x376]
xor ebx, ebx
cmp eax, ebx
je 0x4024c0
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x4024c0
mov ecx, esi
call fcn.004026f0
jmp 0x4024c0