Function at 0x420660
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov edi, eax
cmp dword [0x566664], esi
je 0x42072a
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [esp + 0x20]
push 1
push esi
push esi
push esi
push eax
call ebx
test eax, eax
je 0x42072a
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
mov ecx, dword [0x57cf74]
test ecx, ecx
je 0x4206ca
mov eax, dword [esp + 0x2c]
cdq
push edx
push eax
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [0x57cf78]
call ecx
add esp, 0x1c
cmp dword [esp + 0x24], 0x200
jne 0x4206f0
mov eax, dword [0x57e4a4]
test eax, eax
je 0x4206f0
sub eax, dword [esp + 0x30]
inc eax
test eax, eax
jg 0x420713
mov dword [0x57e4a4], 0
lea eax, [esp + 0x20]
push eax
call ebp
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [edi + 1]
sub eax, dword [esp + 0x30]
test eax, eax
jg 0x420713
inc esi
cmp esi, 3
jg 0x42072a
push 1
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x4206a0
push 0
call fcn.00441c30
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, eax
add esp, 4
cmp byte [esi + 0xe1], 1
jne 0x420760
push 0xa0
call edi
test ax, ax
js 0x420760
push 0xe1
push 0
call fcn.00442250
add esp, 8
cmp byte [esi + 0xe5], 1
jne 0x420784
push 0xa1
call edi
test ax, ax
js 0x420784
push 0xe5
push 0
call fcn.00442250
add esp, 8
call fcn.00441c20
test eax, eax
je 0x420796
test dword [eax + 0x30], 0x100000
jne 0x4207d8
cmp byte [esi + 0xe3], 1
jne 0x4207b7
push 0x5b
call edi
test ax, ax
js 0x4207b7
push 0xe3
push 0
call fcn.00442250
add esp, 8
cmp byte [esi + 0xe7], 1
jne 0x4207d8
push 0x5c
call edi
test ax, ax
js 0x4207d8
push 0xe7
push 0
call fcn.00442250
add esp, 8
call fcn.00445ad0
mov esi, eax
call fcn.0045fdd0
mov edi, eax
test esi, esi
je 0x42082c
mov esi, dword [esi + 0x190]
test esi, esi
je 0x42082c
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x420822
cmp dword [ecx + 0x48], 0
je 0x42080d
mov dword [ecx + 0x48], 0
jmp 0x420819
mov eax, edi
sub eax, dword [ecx + 0x4c]
cmp eax, 0xbb8
jb 0x420822
push esi
call fcn.00476330
add esp, 4
mov esi, dword [esi + 0xac]
test esi, esi
jne 0x4207f4
call fcn.00441c20
test eax, eax
je 0x42096c
test dword [eax + 0x30], 0x4000
je 0x42096c
mov ebp, dword [eax + 0xa4]
cmp dword [ebp + 0x74], 0
jne 0x42096c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x42096c
lea eax, [esp + 0x18]
push eax
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x42096c
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
call fcn.0044a360
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [eax + 0x28]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [ebp]
mov dword [esp + 0x20], edx
call fcn.00475280
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0
push ebx
push dword [ebp]
call fcn.0044b3d0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 0x20
test esi, esi
setne al
lea eax, [eax*2 + 1]
push eax
push 1
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [ebp]
call fcn.0044b3b0
add esp, 0x10
test esi, esi
sete al
lea eax, [eax*2 + 1]
push eax
push 2
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [ebp]
call fcn.0044b3b0
add esp, 0x10
push 2
push 4
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [ebp]
call fcn.0044b3b0
add esp, 0x10
push 4
push 5
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [ebp]
call fcn.0044b3b0
add esp, 0x10
push 5
push 6
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [ebp]
call fcn.0044b3b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret