Function at 0x10004720
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10045010]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x1006db1d]
mov byte [ebp - 0x11b], al
mov al, byte [0x1006db1e]
push ebx
mov byte [ebp - 0x119], al
mov al, byte [0x100468bb]
mov byte [ebp - 0x11a], cl
mov byte [ebp - 0x11c], al
push esi
mov esi, dword [ebp + 0x24]
push edi
test al, al
jne 0x10004779
push dword [0x100462f8]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x100049ec
cmp dword [0x1004502c], 0xffffffff
jne 0x100047d4
cmp dword [0x10045440], 0
je 0x10004a00
mov eax, dword [0x1006dc90]
test eax, eax
jne 0x100047ab
cvttss2si eax, dword [0x10045438]
push eax
call fcn.10004060
add esp, 4
jmp 0x100047c6
cmp eax, 1
jne 0x10004a00
cvttss2si eax, dword [0x10045438]
push esi
push eax
call fcn.10004380
add esp, 8
mov dword [0x1004502c], eax
cmp eax, 0xffffffff
je 0x10004a00
cmp dword [0x10045440], 0
je 0x10004a00
mov ecx, dword [0x1006dafc]
mov eax, dword [ecx]
call dword [eax + 0xf4]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, eax
push 4
push esi
call ebx
test eax, eax
jne 0x100049d0
test esi, esi
je 0x100049d0
mov ecx, dword [esi + 0x184]
mov eax, dword [0x1004502c]
push 4
mov esi, dword [ecx + eax*4]
push esi
call ebx
test eax, eax
jne case.default.0x10004855
test esi, esi
je case.default.0x10004855
mov edi, dword [esi + 0x10]
push 4
push edi
call ebx
test eax, eax
jne case.default.0x10004855
test edi, edi
je case.default.0x10004855
mov eax, dword [0x1006dc98]
cmp eax, 0xa
ja case.default.0x10004855
jmp dword [eax*4 + 0x10004a14]
mov ecx, dword [0x1006daec]
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 [0x10041f08]
movss dword [ebp - 0x114], xmm0
jmp case.default.0x10004855
push 1
lea edx, [ebp - 0x118]
push edx
push 6
jmp 0x1000491e
mov ecx, dword [0x1006daec]
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 [0x10041f08]
movss dword [ebp - 0x114], xmm0
jmp case.default.0x10004855
push 1
lea edx, [ebp - 0x118]
push edx
push 0x22
jmp 0x1000491e
push 1
lea edx, [ebp - 0x118]
push edx
push 0x15
jmp 0x1000491e
push 1
lea edx, [ebp - 0x118]
push edx
push 0x24
jmp 0x1000491e
push 1
lea edx, [ebp - 0x118]
push edx
push 0x17
jmp 0x1000491e
push 1
lea edx, [ebp - 0x118]
push edx
push 0x37
jmp 0x1000491e
push 1
lea edx, [ebp - 0x118]
push edx
push 0x38
mov ecx, dword [0x1006daec]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, dword [0x1006db18]
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 byte [ebp - 0x119], 0
mulss xmm0, dword [0x10041e84]
movss dword [esi + 0x58], xmm0
movss xmm0, dword [ebp - 0x128]
mulss xmm0, dword [0x10041e84]
movss dword [esi + 0x54], xmm0
je 0x100049c5
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 byte [ebp - 0x11a], 1
jne 0x10004a00
jmp 0x100049ec
cmp byte [ebp - 0x11b], 0
jne 0x100049ec
cmp byte [ebp - 0x11c], 0
mov dword [0x10045440], 0
je 0x100049f6
mov dword [0x10045440], 1
mov dword [0x1004502c], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10034b20
mov esp, ebp
pop ebp
ret