Function at 0x5d5e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100c068]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [ebx + 0xa0], 0
mov edi, edx
mov dword [ebp - 0x70], ebx
je 0x5d5f0b
movsx eax, si
mov dword [ebp - 0xc], eax
mov eax, esi
shr eax, 0x10
cwde
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x5d5e61
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
push dword [ebp - 0x10]
lea eax, [ebp - 0x5c]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [ebx + 0xa4]
test eax, eax
je 0x5d5ee3
test ecx, ecx
jne 0x5d5f0b
mov eax, dword [ebx + 0x64]
push ecx
push ebx
mov dword [ebx + 0xa4], 1
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
jmp 0x5d5f0b
test ecx, ecx
je 0x5d5f0b
mov eax, dword [ebx + 0x64]
push 1
push ebx
mov dword [ebx + 0xa4], 0
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
lea ecx, [ebx + 0x84]
call fcn.005b0ec0
mov eax, dword [ebx + 0xac]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
movss xmm0, dword [ebp - 0xc]
movsx eax, si
shr esi, 0x10
cvtps2pd xmm0, xmm0
movd xmm2, eax
cvtdq2pd xmm2, xmm2
movsx eax, si
movd xmm3, eax
mulsd xmm2, qword [0xfd87d0]
mov eax, dword [ebx + 0x68]
cvtdq2pd xmm3, xmm3
divsd xmm2, xmm0
movss xmm0, dword [ebp - 0x10]
mulsd xmm3, qword [0xfd87d0]
movsd qword [ebp - 0x4c], xmm2
cvtps2pd xmm0, xmm0
divsd xmm3, xmm0
movsd qword [ebp - 0x44], xmm3
test eax, eax
je 0x5d5f98
movd xmm0, dword [ebx + 0x74]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm2
movsd qword [ebp - 0x4c], xmm0
movd xmm0, dword [ebx + 0x78]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm3
movsd qword [ebp - 0x44], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
test eax, eax
jne 0x5d5fcf
mov eax, dword [ebx + 0xac]
lea edx, [ebp - 0x64]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x3c], xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x34], xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
test edi, edi
je 0x5d60cf
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x25
call esi
cdq
sub eax, edx
mov edi, eax
push 0x24
sar edi, 1
call esi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_GetMessageTime]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
cvttsd2si eax, qword [ebp - 0x44]
cmp edx, dword [ebx + 0x84]
je 0x5d6029
xor ecx, ecx
jmp 0x5d602f
mov ecx, dword [ebx + 0x9c]
cvttsd2si edx, qword [ebp - 0x4c]
mov dword [ebp - 0xc], 0
cmp edx, dword [ebx + 0x88]
cmovl ecx, dword [ebp - 0xc]
cmp eax, dword [ebx + 0x8c]
mov dword [ebp - 0xc], 0
cmovl ecx, dword [ebp - 0xc]
cmp edx, dword [ebx + 0x90]
mov dword [ebp - 0xc], 0
cmovge ecx, dword [ebp - 0xc]
xor edx, edx
cmp eax, dword [ebx + 0x94]
mov eax, dword [ebp - 0x10]
cmovge ecx, edx
sub eax, dword [ebx + 0x98]
cmp eax, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x98], eax
cmova ecx, edx
mov edx, dword [ebp - 0x2c]
inc ecx
cvttsd2si eax, qword [ebp - 0x4c]
mov dword [ebx + 0x84], edx
mov dword [ebx + 0x9c], ecx
mov dword [ebp - 0x24], ecx
cvttsd2si edx, qword [ebp - 0x44]
sub eax, esi
mov dword [ebx + 0x88], eax
mov eax, edx
sub eax, edi
mov dword [ebx + 0x8c], eax
cvttsd2si eax, qword [ebp - 0x4c]
add eax, esi
mov dword [ebx + 0x90], eax
lea eax, [edx + edi]
mov dword [ebx + 0x94], eax
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
mov si, ax
shr esi, 7
push 0x12
and esi, 1
call ebx
mov edi, esi
or edi, 2
and al, 0x80
push 0x10
cmove edi, esi
call ebx
mov esi, edi
or esi, 4
and al, 0x80
push 0x5b
cmove esi, edi
call ebx
mov edi, esi
or edi, 8
and al, 0x80
push 0x5c
cmove edi, esi
call ebx
mov esi, dword [ebp - 0x2c]
mov ecx, edi
mov ebx, dword [ebp + 0xc]
or ecx, 8
and al, 0x80
mov edx, esi
xorps xmm0, xmm0
cmove ecx, edi
movlpd qword [ebp - 0x1c], xmm0
mov edi, dword [ebp - 0x28]
test esi, esi
mov dword [ebp - 0x20], ecx
cmove edx, edi
cmp edx, 1
je 0x5d614e
test bl, 1
je 0x5d614e
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x5d6154
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp edx, 2
je 0x5d6167
test bl, 0x10
je 0x5d6167
or eax, 2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp edx, 3
je 0x5d617a
test bl, 2
je 0x5d617a
or eax, 4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp edx, 4
je 0x5d618d
test bl, 0x20
je 0x5d618d
or eax, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp edx, 5
je 0x5d61a0
test bl, 0x40
je 0x5d61a0
or eax, 0x10
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
test esi, esi
mov esi, dword [ebp - 0x70]
je 0x5d6202
cmp dword [esi + 0xa0], 0
jne 0x5d6202
cmp dword [esi + 0xa8], 0
mov dword [esi + 0xa0], 1
je 0x5d61f0
mov eax, dword [esi + 0x60]
lea ecx, [ebp - 0x6c]
mov dword [esi + 0xa8], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x68], Ordinal_5
mov dword [ebp - 0x64], eax
call fcn.005d5c40
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x5d621e
or eax, ecx
jne 0x5d621e
cmp dword [esi + 0xa0], eax
je 0x5d621e
mov dword [esi + 0xa0], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x64]
lea ecx, [ebp - 0x4c]
push ecx
push esi
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00f49793
mov esp, ebp
pop ebp
ret