Function at 0x1007c510
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [0x101e094c], 0
push ebx
push esi
push edi
mov esi, ecx
je case.0x1007c6e8.0
mov ebx, dword [0x101e0948]
mov eax, dword [ebx + 0x258]
cmp eax, 9
je case.0x1007c6e8.0
cmp eax, 8
je case.0x1007c6e8.0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101e14f0]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x101e2744]
cmp eax, dword [edi + 4]
jle 0x1007c592
push 0x101e2744
call fcn.100b5535
add esp, 4
cmp dword [0x101e2744], 0xffffffff
jne 0x1007c592
mov eax, dword [0x101e2734]
push 0x101e2744
mov dword [0x101e271c], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e271c]
test byte [eax + ebx], 0x40
jne case.0x1007c6e8.0
mov eax, dword [0x101e29cc]
mov ebx, dword [0x101e0948]
cmp eax, dword [edi + 4]
jle 0x1007c5e1
push 0x101e29cc
call fcn.100b5535
add esp, 4
cmp dword [0x101e29cc], 0xffffffff
jne 0x1007c5e1
mov eax, dword [0x101e287c]
push 0x101e29cc
mov dword [0x101e29b8], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e29b8]
cmp byte [eax + ebx], 0
jne case.0x1007c6e8.0
mov eax, dword [0x101e07bc]
mov ebx, dword [0x101e0948]
test dword [eax + 0x30], 0x618
mov eax, dword [0x101e27a8]
setne byte [esp + 0xf]
cmp eax, dword [edi + 4]
jle 0x1007c641
push 0x101e27a8
call fcn.100b5535
add esp, 4
cmp dword [0x101e27a8], 0xffffffff
jne 0x1007c641
mov eax, dword [0x101e27a0]
push 0x101e27a8
mov dword [0x101e27a4], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e27a4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
movq xmm0, qword [eax + ebx]
movq qword [esp + 0x1c], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xf]
mov dword [esp + 0x18], eax
call fcn.1007b530
test al, al
jne 0x1007c695
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov word [esi + 0x10], 0
cmp byte [0x101dd653], 0
je case.0x1007c6e8.0
cmp byte [esi + 0x11], 0
jne case.0x1007c6e8.0
mov eax, dword [0x101e253c]
cmp dword [eax], 3
jl case.0x1007c6e8.0
mov eax, dword [0x101e2528]
cmp byte [eax + 0x64769], 0
jne case.0x1007c6e8.0
mov ecx, dword [0x101e2534]
cmp byte [ecx + 0xa], 0
jne case.0x1007c6e8.0
mov ecx, dword [0x101dfe74]
inc ecx
cmp ecx, 3
ja case.default.0x1007c6e8
jmp dword [ecx*4 + 0x1007c7b8]
push dword [0x101dfe70]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x1007c709
push dword [0x101dfe70]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
test al, al
jne case.0x1007c6e8.0
mov eax, dword [0x101e2528]
cmp byte [eax + 0x64767], 0
jne case.0x1007c6e8.0
mov eax, dword [0x101e29e0]
mov esi, dword [0x101e0948]
cmp eax, dword [edi + 4]
jle 0x1007c769
push 0x101e29e0
call fcn.100b5535
add esp, 4
cmp dword [0x101e29e0], 0xffffffff
jne 0x1007c769
mov eax, dword [0x101e2878]
push 0x101e29e0
mov dword [0x101e29d0], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e29d0]
movq xmm0, qword [eax + esi]
movq qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x14]
movss xmm1, dword [esp + 0x10]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [0x1016d678]
comiss xmm0, xmm1
ja case.0x1007c6e8.0
mov eax, dword [0x101e07bc]
test dword [eax + 0x30], 0x618
jne case.0x1007c6e8.0
call fcn.1007b280
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret