Function at 0x10004ff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10041010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x11c], ecx
jne 0x10005028
push dword [0x10041ab0]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10005298
call fcn.100018a0
test eax, eax
je 0x10005284
cmp dword [0x10041030], 0xffffffff
jne 0x1000508b
cmp dword [0x10041440], 0
je 0x10005298
mov eax, dword [0x10069450]
test eax, eax
jne 0x10005063
cvttss2si edx, dword [0x10041438]
call fcn.10004a40
jmp 0x1000507d
cmp eax, 1
jne 0x10005298
cvttss2si edx, dword [0x10041438]
push esi
call fcn.10004cc0
add esp, 4
mov dword [0x10041030], eax
cmp eax, 0xffffffff
je 0x10005298
cmp dword [0x10041440], 0
je 0x10005298
mov ecx, dword [0x100692b8]
mov eax, dword [ecx]
call dword [eax + 0xf4]
mov esi, eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10005298
test esi, esi
je 0x10005298
mov ecx, dword [esi + 0x184]
mov eax, dword [0x10041030]
push 4
mov esi, dword [ecx + eax*4]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000526e
test esi, esi
je 0x1000526e
mov eax, dword [0x10069458]
cmp eax, 0xa
ja case.default.0x100050f6
jmp dword [eax*4 + 0x100052a8]
mov ecx, dword [0x100692ac]
lea edx, [ebp - 0x118]
push 1
push edx
push 8
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x114]
addss xmm0, dword [0x1003ea50]
movss dword [ebp - 0x114], xmm0
jmp case.default.0x100050f6
push 1
lea edx, [ebp - 0x118]
push edx
push 6
jmp 0x100051bf
mov ecx, dword [0x100692ac]
lea edx, [ebp - 0x118]
push 1
push edx
push 4
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x114]
subss xmm0, dword [0x1003ea50]
movss dword [ebp - 0x114], xmm0
jmp case.default.0x100050f6
push 1
lea edx, [ebp - 0x118]
push edx
push 0x22
jmp 0x100051bf
push 1
lea edx, [ebp - 0x118]
push edx
push 0x15
jmp 0x100051bf
push 1
lea edx, [ebp - 0x118]
push edx
push 0x24
jmp 0x100051bf
push 1
lea edx, [ebp - 0x118]
push edx
push 0x17
jmp 0x100051bf
push 1
lea edx, [ebp - 0x118]
push edx
push 0x37
jmp 0x100051bf
push 1
lea edx, [ebp - 0x118]
push edx
push 0x38
mov ecx, dword [0x100692ac]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, dword [0x100692d8]
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 - 0x118]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [ebp - 0x110]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x128]
call fcn.10003d10
movss xmm0, dword [ebp - 0x124]
add esp, 0x18
cmp dword [ebp + 0xc], 0
mulss xmm0, dword [0x1003e9cc]
movss dword [esi + 0x58], xmm0
movss xmm0, dword [ebp - 0x128]
mulss xmm0, dword [0x1003e9cc]
movss dword [esi + 0x54], xmm0
je 0x10005263
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 - 0x11c], 1
jne 0x10005298
jmp 0x10005284
cmp dword [ebp + 0x14], 0
jne 0x10005284
cmp dword [ebp + 8], 0
mov dword [0x10041440], 0
je 0x1000528e
mov dword [0x10041440], 1
mov dword [0x10041030], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100348e0
mov esp, ebp
pop ebp
ret