Function at 0x1003ca50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10052040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x120], ecx
push esi
mov esi, dword [ebp + 0x20]
push edi
test ebx, ebx
jne 0x1003ca8b
push dword [0x100dfbcc]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1003cd3c
mov eax, dword [0x100dfbc8]
test eax, eax
jne 0x1003ca9b
mov dword [0x100ffb88], eax
jmp 0x1003cb10
cmp eax, 1
jne 0x1003caac
mov dword [0x100ffb88], 0xf
jmp 0x1003cb10
cmp eax, 2
jne 0x1003cabd
mov dword [0x100ffb88], 0x1e
jmp 0x1003cb10
cmp eax, 3
jne 0x1003cace
mov dword [0x100ffb88], 0x2d
jmp 0x1003cb10
cmp eax, 4
jne 0x1003cadf
mov dword [0x100ffb88], 0x3c
jmp 0x1003cb10
cmp eax, 5
jne 0x1003caf0
mov dword [0x100ffb88], 0x78
jmp 0x1003cb10
cmp eax, 6
jne 0x1003cb01
mov dword [0x100ffb88], 0xf0
jmp 0x1003cb10
cmp eax, 7
jne 0x1003cb10
mov dword [0x100ffb88], 0x168
cmp dword [0x10052098], 0xffffffff
jne 0x1003cb46
cmp dword [0x100ff43c], 0
je 0x1003cd28
mov edx, dword [ebp + 0x18]
push esi
push ecx
mov dword [0x100ffb88], eax
call fcn.1003c530
add esp, 8
mov dword [0x10052098], eax
cmp eax, 0xffffffff
je 0x1003cd28
cmp dword [0x100ff43c], 0
je 0x1003cd28
mov ecx, dword [0x1014ddd0]
mov eax, dword [ecx]
call dword [eax + 0xec]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, eax
push 4
push esi
call edi
test eax, eax
jne 0x1003cd3c
test esi, esi
je 0x1003cd3c
mov ecx, dword [esi + 0x184]
mov eax, dword [0x10052098]
push 4
mov esi, dword [ecx + eax*4]
push esi
call edi
test eax, eax
jne 0x1003cd14
test esi, esi
je 0x1003cd14
mov ebx, dword [esi + 0x10]
push 4
push ebx
call edi
test eax, eax
jne 0x1003cd11
test ebx, ebx
je 0x1003cd11
mov eax, dword [0x100ffba0]
cmp eax, 1
jne 0x1003cbf6
mov ecx, dword [0x1014ddc8]
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 [0x1004f1c4]
movss dword [ebp - 0x118], xmm0
jmp 0x1003cc70
cmp eax, 2
jne 0x1003cc08
push 1
lea edx, [ebp - 0x11c]
push edx
push 6
jmp 0x1003cc62
cmp eax, 3
jne 0x1003cc40
mov ecx, dword [0x1014ddc8]
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 [0x1004f1c4]
movss dword [ebp - 0x118], xmm0
jmp 0x1003cc70
cmp eax, 4
jne 0x1003cc52
push 1
lea edx, [ebp - 0x11c]
push edx
push 0x15
jmp 0x1003cc62
cmp eax, 5
jne 0x1003cc70
push 1
lea edx, [ebp - 0x11c]
push edx
push 0x24
mov ecx, dword [0x1014ddc8]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, dword [0x1014ddf4]
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 - 0x12c]
call fcn.1003c1e0
movss xmm0, dword [ebp - 0x128]
add esp, 0x18
cmp dword [ebp + 0xc], 0
mulss xmm0, dword [0x1004f100]
movss dword [esi + 0x58], xmm0
movss xmm0, dword [ebp - 0x12c]
mulss xmm0, dword [0x1004f100]
movss dword [esi + 0x54], xmm0
je 0x1003cd06
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 - 0x120], 1
jne 0x1003cd3c
jmp 0x1003cd28
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x1c], 0
jne 0x1003cd28
mov dword [0x100ff43c], 0
test ebx, ebx
je 0x1003cd32
mov dword [0x100ff43c], 1
mov dword [0x10052098], 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10047260
mov esp, ebp
pop ebp
ret