Function at 0x4023f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x4c]
mov eax, dword [ebx]
cmp eax, dword [esi]
jne 0x402411
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x4025f7
mov edx, dword [esp + 0x44]
push ebp
push edi
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [0x411418]
push 0
push ebp
push ebp
push ebx
mov edi, eax
call fcn.004021a0
push 0
push ebp
push ebp
push esi
call fcn.004021a0
add esp, 0x20
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x402458
mov eax, dword [0x4113e0]
push 6
push eax
call dword [sym.imp.GDI32.dll_SetROP2]
mov ecx, dword [0x41141c]
mov edx, dword [0x411418]
push ecx
push edx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x2c], eax
call ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x41141c]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push edi
mov dword [esp + 0x28], eax
call ebp
mov dword [esp + 0x18], eax
mov eax, dword [0x411418]
mov edx, dword [esi]
lea ecx, [eax + 0xa]
add eax, 0x1e
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov ebp, edx
fild qword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
fstp qword [esp + 0x28]
mov ebx, dword [esi + 4]
mov dword [esp + 0x14], ecx
fild qword [esp + 0x10]
cmp ebp, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
jne 0x4024fc
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
cmp ebx, eax
mov dword [esp + 0x50], eax
jle 0x4024f4
fld qword [0x40e318]
jmp 0x40251f
fld qword [0x40e310]
jmp 0x40251f
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + 4]
mov edx, ebx
sub edx, ecx
sub eax, ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
fild dword [esp + 0x54]
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fpatan
fmul qword [0x40e308]
fld st(0)
fsub qword [esp + 0x28]
fmul qword [0x40e300]
fld st(0)
fcos
fmul st(3)
call fcn.00406ce8
fsin
add eax, ebp
mov dword [esp + 0x38], eax
fmul st(2)
call fcn.00406ce8
fadd qword [esp + 0x28]
mov ecx, ebx
sub ecx, eax
fmul qword [0x40e300]
mov dword [esp + 0x3c], ecx
fld st(0)
fcos
fmul st(2)
call fcn.00406ce8
fsin
add eax, ebp
mov dword [esp + 0x40], eax
fmul st(1)
call fcn.00406ce8
mov edx, dword [esp + 0x50]
sub ebx, eax
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push edi
mov dword [esp + 0x54], ebx
fstp st(0)
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
lea eax, [esp + 0x30]
push 3
push eax
push edi
call dword [sym.imp.GDI32.dll_Polygon]
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
mov dword [0x411420], ecx
mov edx, dword [esi + 4]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [0x411424], edx
call esi
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call esi
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x4c]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x38
ret