Function at 0x10004770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [0x100420c8]
push esi
mov esi, dword [0x100b7f88]
push edi
push dword [0x100420cc]
mov edi, dword [0x100b7f8c]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100049ad
cmp dword [0x100420a0], 0xffffffff
jne 0x100047e5
test esi, esi
jne 0x100047c2
mov dl, byte [ebp + 0x10]
push ebx
call fcn.10003eb0
jmp 0x100047d4
cmp esi, 1
jne 0x10004999
mov dl, byte [ebp + 0x10]
push ebx
call fcn.100041b0
add esp, 4
mov dword [0x100420a0], eax
cmp eax, 0xffffffff
je 0x10004999
mov ecx, dword [0x100b7f30]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ecx]
call dword [eax + 0xec]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, eax
push 4
push esi
mov dword [0x10042b78], esi
call ebx
test eax, eax
jne 0x100049ad
test esi, esi
je 0x100049ad
mov eax, dword [0x10042b78]
push 4
mov ecx, dword [eax + 0x184]
mov eax, dword [0x100420a0]
mov esi, dword [ecx + eax*4]
push esi
call ebx
test eax, eax
jne 0x100049ad
test esi, esi
je 0x100049ad
mov eax, dword [esi + 0x10]
push 4
push eax
mov dword [ebp - 0x3c], eax
call ebx
test eax, eax
jne 0x100049ad
cmp dword [ebp - 0x3c], eax
je 0x100049ad
test edi, edi
jne 0x100048a0
mov ecx, dword [0x100b7f28]
lea edx, [ebp - 0x38]
push 1
push edx
push 8
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x34]
addss xmm0, dword [0x1003fbac]
movss dword [ebp - 0x34], xmm0
jmp 0x10004936
cmp edi, 1
jne 0x100048ae
push edi
lea edx, [ebp - 0x38]
push edx
push 7
jmp 0x10004928
cmp edi, 2
jne 0x100048dd
mov ecx, dword [0x100b7f28]
lea edx, [ebp - 0x38]
push 1
push edx
push 6
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x34]
subss xmm0, dword [0x1003fb74]
movss dword [ebp - 0x34], xmm0
jmp 0x10004936
cmp edi, 3
jne 0x1000490c
mov ecx, dword [0x100b7f28]
lea edx, [ebp - 0x38]
push 1
push edx
push 4
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x34]
subss xmm0, dword [0x1003fbac]
movss dword [ebp - 0x34], xmm0
jmp 0x10004936
cmp edi, 4
jne 0x1000491b
push 1
lea edx, [ebp - 0x38]
push edx
push 0x15
jmp 0x10004928
cmp edi, 5
jne 0x10004936
push 1
lea edx, [ebp - 0x38]
push edx
push 0x24
mov ecx, dword [0x100b7f28]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, dword [0x100b7f74]
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 - 0x38]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [ebp - 0x30]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x48]
call fcn.10002e40
movss xmm0, dword [ebp - 0x44]
add esp, 0x18
mulss xmm0, dword [0x1003faec]
movss dword [esi + 0x58], xmm0
movss xmm0, dword [ebp - 0x48]
mulss xmm0, dword [0x1003faec]
movss dword [esi + 0x54], xmm0
mov dword [0x100420a0], 0xffffffff
mov dword [0x100420c4], 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100390f0
mov esp, ebp
pop ebp
ret