Function at 0x10058f54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0xc
call fcn.100704ce
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 8], esp
push 0x2d
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x10058fb1
push 0x4a
push 0x4012cb8
push 6
call fcn.100704da
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10059188
fild qword [0x1012dd13]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x100914dd]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.10001d9a
push edx
push eax
call fcn.1002eebe
push edx
push eax
call fcn.100351dc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10059188
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
fild qword [0x1012dd13]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x100914dd]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.10001d9a
push edx
push eax
call fcn.1002eebe
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 8], ebx
fild qword [0x1012dd13]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x100914c8]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.10001d9a
push edx
push eax
call fcn.1002eebe
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
fild qword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x1008c14a]
fstp qword [ebp - 0x30]
push 1
push 0x20
fld qword [ebp - 0x30]
call fcn.10001d9a
push edx
push eax
call fcn.1002efab
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.1002f85e
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x100590a2
push ebx
call fcn.100704d4
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100590b8
push ebx
call fcn.100704d4
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
push 0x1012dcb3
push 4
mov eax, 2
call fcn.10070db0
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ebx, dword [0x1012dcb3]
mov dword [ebp - 0xc], ebx
call fcn.100028de
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0xc]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10059105
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0xc]
call fcn.100704fe
add esp, 8
mov dword [0x1012dcb3], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x10]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 8]
push edi
push eax
push 0xc
call fcn.100704ce
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10059163
push eax
mov ebx, eax
call fcn.1000176c
inc eax
push eax
call fcn.100704ce
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
mov dword [0x1012dd13], 0
mov dword [0x1012dd17], 0
mov dword [0x1012dd1f], 0
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x1005919f
push ebx
call fcn.100704d4
add esp, 4
pop ebx
call fcn.100704d4
add esp, 4
mov esp, ebp
pop ebp
ret