Function at 0x10005d90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1009f040]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x124], ecx
jne 0x10005dc9
push dword [0x100ac5ec]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10006003
cmp dword [0x100ac5d8], 0xffffffff
jne 0x10005e04
cmp dword [0x100ac5fc], 0
je 0x10005fef
mov eax, dword [0x100ac5e8]
mov edx, dword [ebp + 0x18]
push esi
push ecx
mov dword [0x100acf8c], eax
call fcn.10005870
add esp, 8
mov dword [0x100ac5d8], eax
cmp eax, 0xffffffff
je 0x10005fef
cmp dword [0x100ac5fc], 0
je 0x10005fef
mov ecx, dword [0x101224c0]
mov eax, dword [ecx]
call dword [eax + 0xec]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, eax
push 4
push esi
call ebx
test eax, eax
jne 0x10006003
test esi, esi
je 0x10006003
mov ecx, dword [esi + 0x184]
mov eax, dword [0x100ac5d8]
push 4
mov esi, dword [ecx + eax*4]
push esi
call ebx
test eax, eax
jne 0x10005fd9
test esi, esi
je 0x10005fd9
mov eax, dword [esi + 0x10]
push 4
push eax
mov dword [ebp - 0x120], eax
call ebx
test eax, eax
jne 0x10005fd9
cmp dword [ebp - 0x120], eax
je 0x10005fd9
mov eax, dword [0x10122498]
cmp eax, 1
jne 0x10005ebe
mov ecx, dword [0x101224b0]
lea edx, [ebp - 0x11c]
push 1
push edx
push 8
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x118]
addss xmm0, dword [0x1009b408]
movss dword [ebp - 0x118], xmm0
jmp 0x10005f38
cmp eax, 2
jne 0x10005ed0
push 1
lea edx, [ebp - 0x11c]
push edx
push 6
jmp 0x10005f2a
cmp eax, 3
jne 0x10005f08
mov ecx, dword [0x101224b0]
lea edx, [ebp - 0x11c]
push 1
push edx
push 4
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x118]
subss xmm0, dword [0x1009b408]
movss dword [ebp - 0x118], xmm0
jmp 0x10005f38
cmp eax, 4
jne 0x10005f1a
push 1
lea edx, [ebp - 0x11c]
push edx
push 0x15
jmp 0x10005f2a
cmp eax, 5
jne 0x10005f38
push 1
lea edx, [ebp - 0x11c]
push edx
push 0x24
mov ecx, dword [0x101224b0]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, dword [0x10122650]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov eax, dword [esi + 0x13c]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x11c]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [ebp - 0x114]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x130]
call fcn.10005520
movss xmm0, dword [ebp - 0x12c]
add esp, 0x18
cmp dword [ebp + 0xc], 0
mulss xmm0, dword [0x1009b320]
movss dword [esi + 0x58], xmm0
movss xmm0, dword [ebp - 0x130]
mulss xmm0, dword [0x1009b320]
movss dword [esi + 0x54], xmm0
je 0x10005fce
mov esi, dword [sym.imp.USER32.dll_mouse_event]
push 0
push 0
push 0
push 0
push 2
call esi
push 0
push 0
push 0
push 0
push 4
call esi
cmp dword [ebp - 0x124], 1
jne 0x10006003
jmp 0x10005fef
cmp dword [ebp + 0x1c], 0
jne 0x10005fef
cmp dword [ebp + 8], 0
mov dword [0x100ac5fc], 0
je 0x10005ff9
mov dword [0x100ac5fc], 1
mov dword [0x100ac5d8], 0xffffffff
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d170
mov esp, ebp
pop ebp
ret