Function at 0x10005de0
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 0x10005e19
push dword [0x100ac5ec]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10006053
cmp dword [0x100ac5d8], 0xffffffff
jne 0x10005e54
cmp dword [0x100ac5fc], 0
je 0x1000603f
mov eax, dword [0x100ac5e8]
mov edx, dword [ebp + 0x18]
push esi
push ecx
mov dword [0x100acf8c], eax
call fcn.100058c0
add esp, 8
mov dword [0x100ac5d8], eax
cmp eax, 0xffffffff
je 0x1000603f
cmp dword [0x100ac5fc], 0
je 0x1000603f
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 0x10006053
test esi, esi
je 0x10006053
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 0x10006029
test esi, esi
je 0x10006029
mov eax, dword [esi + 0x10]
push 4
push eax
mov dword [ebp - 0x120], eax
call ebx
test eax, eax
jne 0x10006029
cmp dword [ebp - 0x120], eax
je 0x10006029
mov eax, dword [0x10122498]
cmp eax, 1
jne 0x10005f0e
mov ecx, dword [0x101224b4]
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 [0x1009b458]
movss dword [ebp - 0x118], xmm0
jmp 0x10005f88
cmp eax, 2
jne 0x10005f20
push 1
lea edx, [ebp - 0x11c]
push edx
push 6
jmp 0x10005f7a
cmp eax, 3
jne 0x10005f58
mov ecx, dword [0x101224b4]
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 [0x1009b458]
movss dword [ebp - 0x118], xmm0
jmp 0x10005f88
cmp eax, 4
jne 0x10005f6a
push 1
lea edx, [ebp - 0x11c]
push edx
push 0x15
jmp 0x10005f7a
cmp eax, 5
jne 0x10005f88
push 1
lea edx, [ebp - 0x11c]
push edx
push 0x24
mov ecx, dword [0x101224b4]
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.10005570
movss xmm0, dword [ebp - 0x12c]
add esp, 0x18
cmp dword [ebp + 0xc], 0
mulss xmm0, dword [0x1009b370]
movss dword [esi + 0x58], xmm0
movss xmm0, dword [ebp - 0x130]
mulss xmm0, dword [0x1009b370]
movss dword [esi + 0x54], xmm0
je 0x1000601e
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 0x10006053
jmp 0x1000603f
cmp dword [ebp + 0x1c], 0
jne 0x1000603f
cmp dword [ebp + 8], 0
mov dword [0x100ac5fc], 0
je 0x10006049
mov dword [0x100ac5fc], 1
mov dword [0x100ac5d8], 0xffffffff
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d560
mov esp, ebp
pop ebp
ret