Function at 0x409d70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
test eax, eax
je 0x409ef1
mov ecx, dword [esi + 0x54]
mov edx, dword [eax + 4]
cmp ecx, edx
jne 0x409ef1
push 0xa3
call ebx
test al, 0xfe
je 0x409ef1
mov edx, dword [0x492c54]
push 2
fld dword [edx]
fmul dword [0x47d450]
fstp dword [esp + 0x10]
call fcn.0042bc40
add esp, 4
test al, al
je 0x409dd3
fld dword [esp + 0xc]
fmul dword [0x47d450]
fstp dword [esp + 0xc]
push edi
push 1
call fcn.0042bc40
mov edi, dword [esp + 0x14]
add esp, 4
test al, al
jne 0x409e32
mov eax, dword [0x4954ec]
fld dword [eax + 0x1c]
fadd dword [eax + 0x18]
fcom dword [0x47d338]
fnstsw ax
test ah, 0x44
jnp 0x409e66
fcom dword [0x47d338]
mov dword [esp + 0x10], 0x3f800000
fnstsw ax
and eax, 0x4100
je 0x409e1d
mov dword [esp + 0x10], 0xbf800000
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x48]
fabs
fstp dword [esp]
push eax
call fcn.00412820
jmp 0x409e68
push 0x26
call fcn.0042bc40
add esp, 4
test al, al
je 0x409e4b
mov ecx, dword [esi + 0x48]
push edi
push 1
call fcn.00412650
push 0x28
call fcn.0042bc40
add esp, 4
test al, al
je 0x409e68
mov ecx, dword [esi + 0x48]
push edi
push 0xffffffffffffffff
call fcn.00412650
jmp 0x409e68
fstp st(0)
push 0x25
call fcn.0042bc40
add esp, 4
test al, al
je 0x409e81
mov ecx, dword [esi + 0x48]
push edi
push 1
call fcn.00412720
push 0x27
call fcn.0042bc40
add esp, 4
test al, al
je 0x409e9a
mov ecx, dword [esi + 0x48]
push edi
push 0xffffffffffffffff
call fcn.00412720
mov ecx, dword [0x4954ec]
xor dl, dl
pop edi
fld dword [ecx + 0xc]
fadd dword [ecx + 8]
fst dword [esp + 0xc]
fcomp dword [0x47d338]
fnstsw ax
test ah, 0x44
jnp 0x409ebc
mov dl, 1
fld dword [ecx + 0x14]
fadd dword [ecx + 0x10]
fcom dword [0x47d338]
fnstsw ax
test ah, 0x44
jp 0x409ed3
test dl, dl
je 0x409eef
fld dword [esp + 0xc]
mov ecx, dword [esi + 0x48]
sub esp, 8
fchs
fstp dword [esp + 4]
fchs
fstp dword [esp]
call fcn.004127f0
jmp 0x409ef1
fstp st(0)
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + ecx*4]
test eax, eax
je 0x40a06f
mov cl, byte [eax + 0x18c]
test cl, cl
jne 0x40a06f
push 0xa3
call ebx
test al, 0xfe
jne 0x40a06f
mov ecx, dword [0x4954ec]
xor bl, bl
mov byte [esp + 0xb], 0
fld dword [ecx + 0x1c]
fadd dword [ecx + 0x18]
fcom dword [0x47d338]
fnstsw ax
test ah, 0x44
jnp 0x409f84
fcom dword [0x47d338]
mov byte [esp + 0xb], 1
mov dword [esp + 0xc], 0x3f800000
fnstsw ax
and eax, 0x4100
je 0x409f63
mov dword [esp + 0xc], 0xbf800000
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x4c]
fabs
fstp dword [esp]
mov ecx, dword [edx + ecx*4]
push eax
call fcn.004233b0
mov ecx, dword [0x4954ec]
jmp 0x409f86
fstp st(0)
fld dword [ecx + 0xc]
fadd dword [ecx + 8]
fcom dword [0x47d338]
fnstsw ax
test ah, 0x44
jnp 0x409fb7
mov eax, dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x1c]
mov bl, 1
fchs
mov ecx, dword [ecx + eax*4]
fstp dword [esp]
call fcn.004219c0
mov ecx, dword [0x4954ec]
jmp 0x409fb9
fstp st(0)
fld dword [ecx + 0x14]
fadd dword [ecx + 0x10]
fcom dword [0x47d338]
fnstsw ax
test ah, 0x44
jnp 0x409fea
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x1c]
push ecx
mov bl, 1
mov ecx, dword [eax + edx*4]
fchs
fstp dword [esp]
call fcn.00421890
mov ecx, dword [0x4954ec]
jmp 0x409fec
fstp st(0)
mov al, byte [esp + 0xb]
test al, al
je 0x40a00c
test bl, bl
jne 0x40a00c
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x1c]
mov ecx, dword [edx + ecx*4]
call fcn.00423190
mov ecx, dword [0x4954ec]
mov al, byte [ecx + 4]
test al, al
je 0x40a02f
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
push 1
mov ecx, dword [edx + ecx*4]
push 1
push eax
call fcn.00421a30
mov ecx, dword [0x4954ec]
mov al, byte [ecx + 5]
test al, al
je 0x40a052
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
push 1
mov ecx, dword [edx + ecx*4]
push 2
push eax
call fcn.00421a30
mov ecx, dword [0x4954ec]
mov al, byte [ecx + 6]
test al, al
je 0x40a06f
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
push 1
mov ecx, dword [edx + ecx*4]
push 3
push eax
call fcn.00421a30
pop esi
pop ebx
add esp, 8
ret