Function at 0x10054987
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
fild dword [ebp + 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
call fcn.1000269e
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fadd qword [0x1008b8e0]
fstp qword [ebp - 0x40]
push 1
fld qword [ebp - 0x40]
fstp dword [ebp - 0x44]
push dword [ebp - 0x44]
push 0
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
fld qword [ebp - 0x2c]
call fcn.10001b73
push eax
call fcn.10054e27
fild dword [0x1012dad3]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp + 8]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10001b73
mov dword [ebp + 8], eax
fild dword [0x1012dad7]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10001b73
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push dword [0x1012ddfb]
call fcn.10044f69
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10048263
fild dword [ebp + 0xc]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x1008b8d8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10001b73
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
call fcn.1000269e
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10054e0e
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
mov ebx, dword [ebp + 0x20]
fld dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x1c]
fsub qword [ebp - 0x24]
fcomp qword [0x1008c4d7]
fnstsw ax
test ah, 1
je 0x10054b05
jmp 0x10054e06
inc dword [ebp - 0xc]
mov eax, dword [0x1012ddff]
mov dword [ebp - 0x10], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x1008b8d8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10001b73
push eax
call fcn.1004f942
test eax, eax
je 0x10054bae
push dword [ebp - 4]
call fcn.1004f9b0
test eax, eax
je 0x10054bae
fild dword [ebp + 8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fsub qword [0x1008c27b]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
call fcn.10001b73
push eax
call fcn.1004f979
test eax, eax
je 0x10054bae
fild dword [ebp - 4]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fadd qword [0x1008c11e]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
call fcn.10001b73
push eax
call fcn.1004f9e7
test eax, eax
je 0x10054bae
mov eax, 1
jmp 0x10054bb3
mov eax, 0
test eax, eax
je 0x10054c06
mov eax, dword [0x1012de07]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push 1
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10054bf1
push 0x49e
push 0x4011238
push 6
call fcn.100707a8
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10054c06
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
fild dword [ebp + 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fdiv qword [0x1008c56a]
fstp qword [ebp - 0x24]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [ebp - 0x24]
fcomp qword [0x1008c4d7]
fnstsw ax
test ah, 1
je 0x10054e02
fild dword [ebp + 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x1008b8d8]
fstp qword [ebp - 0x24]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x1008c28e]
fstp qword [ebp - 0x34]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
cmp dword [ebp - 8], eax
mov eax, 0
sete al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
push dword [0x1012de03]
call fcn.10044f69
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x10]
call fcn.10044f69
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x38], 0
je 0x10054caf
mov eax, dword [ebp - 0x40]
jmp 0x10054cb2
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
push 0x10
fld qword [ebp - 0x34]
call fcn.10001b73
push eax
push dword [ebp - 4]
fld qword [ebp - 0x24]
call fcn.10001b73
push eax
call fcn.10048263
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
call fcn.100026b7
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x10054d18
push 0x6a9
push 0x4011238
push 4
call fcn.100707a8
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10054d35
push 0x6a9
push 0x4011238
push 1
call fcn.100707a8
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push 0x10093ed6
mov ecx, 2
call fcn.100015b0
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10054d70
push ebx
call fcn.100707a2
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x1008bb72]
fstp qword [ebp - 0x24]
push 0x80000301
push 0
push 0x36
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10054da5
mov eax, 0x1008924f
push eax
push 2
mov ebx, 0x134
call fcn.10071c50
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push dword [0x1012dddb]
call fcn.10044f69
mov dword [ebp - 0x30], eax
push 0x41800000
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
fld qword [ebp - 0x24]
call fcn.10001b73
push eax
call fcn.10045548
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10054e02
push ebx
call fcn.100707a2
add esp, 4
add dword [ebp - 4], 0x12
pop eax
pop ebx
pop ecx
jmp 0x10054acd
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10054e21
push ebx
call fcn.100707a2
add esp, 4
mov esp, ebp
pop ebp
ret 0x1c