Function at 0x1000c079
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10058040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x11c], ecx
test edi, edi
jne 0x1000c0b1
push dword [0x100580c4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1000c309
call fcn.10009db5
test eax, eax
je 0x1000c2f8
or ebx, 0xffffffff
cmp dword [0x100580b4], ebx
jne 0x1000c0f4
cmp dword [0x100589b8], 0
je 0x1000c309
mov eax, dword [0x100580c0]
push ecx
mov dword [0x1005942c], eax
call fcn.1000be98
mov dword [0x100580b4], eax
pop ecx
cmp eax, ebx
je 0x1000c309
cmp dword [0x100589b8], 0
je 0x1000c309
mov ecx, dword [0x100ce8d8]
mov eax, dword [ecx]
call dword [eax + 0xec]
and dword [ebp - 0x128], 0
mov esi, eax
and dword [ebp - 0x124], 0
mov ecx, esi
and dword [ebp - 0x120], 0
call fcn.10009d2c
test eax, eax
je 0x1000c309
mov ecx, dword [esi + 0x184]
mov eax, dword [0x100580b4]
mov esi, dword [ecx + eax*4]
mov ecx, esi
call fcn.10009d2c
test eax, eax
je 0x1000c2ce
mov eax, dword [0x100ce854]
xor edx, edx
inc edx
cmp eax, edx
jne 0x1000c18b
mov ecx, dword [0x100ce8cc]
push edx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ecx]
push 8
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x114]
addss xmm0, dword [0x100535d0]
jmp 0x1000c239
cmp eax, 2
jne 0x1000c19c
push edx
lea edx, [ebp - 0x118]
push edx
push 7
jmp 0x1000c1fc
cmp eax, 3
jne 0x1000c1ad
push edx
lea edx, [ebp - 0x118]
push edx
push 6
jmp 0x1000c1fc
cmp eax, 4
jne 0x1000c1dc
mov ecx, dword [0x100ce8cc]
push edx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ecx]
push 4
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x114]
subss xmm0, dword [0x100535d0]
jmp 0x1000c239
cmp eax, 5
jne 0x1000c1ed
push edx
lea edx, [ebp - 0x118]
push edx
push 0x22
jmp 0x1000c1fc
cmp eax, 6
jne 0x1000c20c
push edx
lea edx, [ebp - 0x118]
push edx
push 0x15
mov ecx, dword [0x100ce8cc]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
jmp 0x1000c241
cmp eax, 7
jne 0x1000c241
mov ecx, dword [0x100ce8cc]
push edx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ecx]
push 8
push dword [esi + 0x10]
call dword [eax + 0x40]
movss xmm0, dword [ebp - 0x114]
addss xmm0, dword [0x100580bc]
movss dword [ebp - 0x114], xmm0
mov ebx, dword [0x100cea64]
lea ecx, [ebp - 0x128]
sub esp, 0xc
mov edi, esp
sub esp, 0xc
mov esi, dword [ebx + 0x13c]
add esi, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x118]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1000b34a
movss xmm0, dword [ebp - 0x124]
add esp, 0x18
cmp dword [ebp + 0xc], 0
mulss xmm0, dword [0x100534e4]
movss dword [ebx + 0x58], xmm0
movss xmm0, dword [ebp - 0x128]
mulss xmm0, dword [0x100534e4]
movss dword [ebx + 0x54], xmm0
je 0x1000c2bc
mov esi, dword [sym.imp.USER32.dll_mouse_event]
xor edi, edi
push edi
push edi
push edi
push edi
push 2
call esi
push edi
push edi
push edi
push edi
push 4
call esi
xor eax, eax
inc eax
cmp dword [ebp - 0x11c], eax
jne 0x1000c309
mov dword [0x100589b8], eax
jmp 0x1000c302
cmp dword [ebp + 0x14], 0
jne 0x1000c2e6
test edi, edi
jne 0x1000c2e6
and dword [0x100589b8], edi
mov dword [0x100580b4], ebx
jmp 0x1000c309
mov dword [0x100580b4], ebx
mov dword [0x100589b8], 1
jmp 0x1000c309
mov dword [0x100589b8], 1
or dword [0x100580b4], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046e52
leave
ret