Function at 0x403250
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x210
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x423694]
movsx eax, ax
cmp eax, ecx
je 0x403288
mov dword [0x40f980], 9
mov dword [0x40f978], 1
xor eax, eax
add esp, 0x210
ret
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [esp + 0x224]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [0x40f974], eax
call edi
mov ecx, dword [0x4236d0]
mov edx, dword [0x4236cc]
mov eax, dword [0x4236c8]
mov ebp, dword [sym.imp.GDI32.dll_Rectangle]
push ecx
mov ecx, dword [0x4236c4]
push edx
push eax
push ecx
push ebx
call ebp
mov edx, dword [0x40f974]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [0x40f8a4], eax
call edi
mov ecx, dword [0x40efd0]
mov dword [0x423698], eax
mov eax, dword [0x40efd4]
mov edx, dword [0x40efcc]
sub eax, esi
sub ecx, esi
add eax, 0xc
add ecx, 0xc
push eax
push ecx
mov ecx, dword [0x40efc8]
lea eax, [edx + esi - 0xc]
push eax
lea edx, [ecx + esi - 0xc]
push edx
push ebx
call ebp
mov eax, dword [0x40efe4]
mov ecx, dword [0x40efe0]
mov edx, dword [0x40efdc]
sub eax, esi
sub ecx, esi
add eax, 0xc
add ecx, 0xc
push eax
push ecx
mov ecx, dword [0x40efd8]
lea eax, [edx + esi - 0xc]
lea edx, [ecx + esi - 0xc]
push eax
push edx
push ebx
call ebp
mov eax, dword [0x40eff4]
mov ecx, dword [0x40eff0]
mov edx, dword [0x40efec]
sub eax, esi
sub ecx, esi
add eax, 0xc
add ecx, 0xc
push eax
push ecx
mov ecx, dword [0x40efe8]
lea eax, [edx + esi - 0xc]
lea edx, [ecx + esi - 0xc]
push eax
push edx
push ebx
call ebp
mov eax, dword [0x40f004]
mov ecx, dword [0x40f000]
mov edx, dword [0x40effc]
sub eax, esi
sub ecx, esi
add eax, 0xc
add ecx, 0xc
push eax
push ecx
mov ecx, dword [0x40eff8]
lea eax, [edx + esi - 0xc]
lea edx, [ecx + esi - 0xc]
push eax
push edx
push ebx
call ebp
mov eax, dword [0x40f014]
mov ecx, dword [0x40f010]
sub eax, esi
sub ecx, esi
add eax, 0xc
add ecx, 0xc
push eax
push ecx
mov edx, dword [0x40f00c]
mov ecx, dword [0x40f008]
lea eax, [edx + esi - 0xc]
lea edx, [ecx + esi - 0xc]
push eax
push edx
push ebx
call ebp
mov eax, dword [0x40f024]
mov ecx, dword [0x40f020]
mov edx, dword [0x40f01c]
sub eax, esi
sub ecx, esi
add eax, 0xc
add ecx, 0xc
push eax
push ecx
mov ecx, dword [0x40f018]
lea eax, [edx + esi - 0xc]
lea edx, [ecx + esi - 0xc]
push eax
push edx
push ebx
call ebp
mov eax, dword [0x40f034]
mov ecx, dword [0x40f030]
mov edx, dword [0x40f02c]
sub eax, esi
sub ecx, esi
add eax, 0xc
add ecx, 0xc
push eax
push ecx
mov ecx, dword [0x40f028]
lea eax, [edx + esi - 0xc]
lea edx, [ecx + esi - 0xc]
push eax
push edx
push ebx
call ebp
mov eax, dword [0x423698]
push eax
push ebx
call edi
mov ecx, dword [0x40f8a4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
inc esi
cmp esi, 0xc
jl 0x4032dd
mov eax, dword [0x40f980]
mov esi, 1
cmp eax, esi
jne 0x4034ce
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
mov dword [0x40f974], eax
call edi
mov edx, dword [0x40f014]
mov eax, dword [0x40f010]
mov ecx, dword [0x40f00c]
push edx
mov edx, dword [0x40f008]
push eax
push ecx
push edx
push ebx
call ebp
mov eax, dword [0x40f024]
mov ecx, dword [0x40f020]
mov edx, dword [0x40f01c]
push eax
mov eax, dword [0x40f018]
push ecx
push edx
push eax
push ebx
call ebp
mov ecx, dword [0x40f974]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x423690]
repne scasb al, byte es:[edi]
not ecx
push 0xcc0020
dec ecx
mov eax, dword [0x40f028]
push 0
push 0
mov dword [0x4236c0], ecx
mov ecx, dword [0x40f02c]
push edx
mov edx, dword [0x40f034]
sub edx, ecx
push edx
mov edx, dword [0x40f030]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [0x40f980], esi
jle 0x40364f
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [0x40f974], eax
call esi
mov eax, dword [0x40efd4]
mov ecx, dword [0x40efd0]
mov edx, dword [0x40efcc]
push eax
mov eax, dword [0x40efc8]
push ecx
push edx
push eax
push ebx
call ebp
mov ecx, dword [0x40efe4]
mov edx, dword [0x40efe0]
mov eax, dword [0x40efdc]
push ecx
mov ecx, dword [0x40efd8]
push edx
push eax
push ecx
push ebx
call ebp
mov edx, dword [0x40eff4]
mov eax, dword [0x40eff0]
mov ecx, dword [0x40efec]
push edx
mov edx, dword [0x40efe8]
push eax
push ecx
push edx
push ebx
call ebp
mov eax, dword [0x40f004]
mov ecx, dword [0x40f000]
mov edx, dword [0x40effc]
push eax
mov eax, dword [0x40eff8]
push ecx
push edx
push eax
push ebx
call ebp
mov ecx, dword [0x40f024]
mov edx, dword [0x40f020]
mov eax, dword [0x40f01c]
push ecx
mov ecx, dword [0x40f018]
push edx
push eax
push ecx
push ebx
call ebp
mov edx, dword [0x40f974]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call edi
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
mov dword [0x40f974], eax
call esi
mov eax, dword [0x40f014]
mov ecx, dword [0x40f010]
mov edx, dword [0x40f00c]
push eax
mov eax, dword [0x40f008]
push ecx
push edx
push eax
push ebx
call ebp
mov ecx, dword [0x40f974]
push ecx
call edi
push 0xcc0020
mov ecx, dword [0x40efd4]
mov eax, dword [0x40efcc]
mov edx, dword [0x4236ac]
push 0
push 0
sub ecx, eax
push edx
mov edx, dword [0x40efd0]
push ecx
mov ecx, dword [0x40efc8]
sub edx, ecx
inc edx
inc ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40365b
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x40f980], 2
jle 0x4036f6
mov eax, dword [0x40f968]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x4036f6
mov dword [esp + 0x10], 0x40f8a8
mov esi, 0x40f8f8
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
mov dword [0x40f974], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [0x40f964]
mov ecx, dword [ecx]
lea edi, [eax + edx]
add edx, ecx
push edi
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_Ellipse]
mov eax, dword [0x40f974]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
add esi, 4
cmp esi, 0x40f918
jl 0x403686
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x40f968]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x403681
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x40f980], 3
jle 0x403737
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
mov dword [0x40f974], eax
call esi
mov ecx, dword [0x40efe4]
mov edx, dword [0x40efe0]
mov eax, dword [0x40efdc]
push ecx
mov ecx, dword [0x40efd8]
push edx
push eax
push ecx
push ebx
call ebp
mov edx, dword [0x40f974]
push edx
call edi
cmp dword [0x40f980], 4
jle 0x4037ae
mov eax, dword [0x42368c]
mov ecx, dword [0x40eff4]
push 0xcc0020
push 0
mov edx, dword [0x40eff0]
push 0
push eax
mov eax, dword [0x40efec]
sub ecx, eax
push ecx
mov ecx, dword [0x40efe8]
sub edx, ecx
inc edx
inc ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
mov dword [0x40f974], eax
call esi
mov eax, dword [0x40f004]
mov ecx, dword [0x40f000]
mov edx, dword [0x40effc]
push eax
mov eax, dword [0x40eff8]
push ecx
push edx
push eax
push ebx
call ebp
mov ecx, dword [0x40f974]
push ecx
call edi
cmp dword [0x40f980], 5
jle 0x403907
mov eax, dword [0x40f004]
mov ecx, dword [0x40eff8]
mov edi, dword [0x40f000]
mov edx, dword [0x40effc]
mov dword [esp + 0x20], eax
mov eax, dword [0x40f09c]
cmp eax, 0x320
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], 8
jle 0x4037fe
mov dword [esp + 0x10], 0x10
jne 0x403808
mov dword [esp + 0x10], 0xc
mov eax, dword [esp + 0x10]
push 0
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ebp, eax
sub edi, edx
mov edx, dword [esp + 0x28]
sub edi, ecx
sar ebp, 1
add ecx, ebp
mov dword [esp + 0x18], edi
lea eax, [edx + ebp]
mov dword [esp + 0x1c], ecx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [0x40f8a4], eax
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x423698], eax
mov eax, dword [esp + 0x28]
sub esi, edx
sub edi, eax
mov eax, dword [esp + 0x1c]
mov edx, ecx
add esi, ecx
mov ecx, dword [esp + 0x20]
sub edi, edx
add edi, ecx
mov dword [esp + 0x1c], 9
add edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, ecx
push esi
push eax
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x20]
lea eax, [edi + esi]
push eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
lea eax, [edi + esi]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x18]
lea ecx, [esi + ebp]
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub edx, eax
sub edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
add esi, ebp
add edx, ebp
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jne 0x40387f
mov eax, dword [0x423698]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x40f8a4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x40f980], 6
jle 0x403949
mov eax, dword [0x40efcc]
mov edx, dword [0x40efd4]
mov ecx, dword [0x40efc8]
push 0xcc0020
push eax
sub edx, eax
mov eax, dword [0x40efd0]
push ecx
push ebx
sub eax, ecx
mov ecx, dword [0x40f01c]
push edx
mov edx, dword [0x40f018]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret