Function at 0x1005b530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10449004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], esi
call fcn.100368f0
test eax, eax
je case.0x1005b91a.527
call fcn.10036c10
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call fcn.100368f0
test eax, eax
je 0x1005b573
call fcn.10036c10
mov edi, dword [eax + 0x6c]
jmp 0x1005b575
xor edi, edi
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x200
ja 0x1005b902
je 0x1005b891
lea eax, [ecx - 7]
cmp eax, 0xfe
ja case.0x1005b91a.527
movzx eax, byte [eax + 0x1005bb08]
jmp dword [eax*4 + 0x1005baf4]
cmp ecx, 0x100
je 0x1005b5ba
cmp ecx, 0x104
je 0x1005b5ba
xor bl, bl
jmp 0x1005b5bc
mov bl, 1
cmp dword [ebp + 0x10], 0x100
mov byte [ebp - 8], bl
jae case.0x1005b91a.527
call fcn.10036c10
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, eax
push 0x11
call edi
shr eax, 0xf
and al, 1
movzx ecx, al
push ecx
push 0x1000
mov ecx, esi
call fcn.1002f170
push 0x10
call edi
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.1002f170
push 0x12
call edi
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.1002f170
push 0x5d
call edi
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.1002f170
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp esi, 0xd
jne 0x1005b65a
mov eax, ecx
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
push esi
call fcn.1005af80
shr ecx, 0x10
add esp, 4
movzx edi, cl
test eax, eax
je 0x1005b67b
push edi
push esi
push dword [ebp - 8]
push eax
call fcn.1005a4b0
add esp, 0x10
cmp esi, 0x10
jne 0x1005b6ea
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x1005b6ab
push edi
push 0xa0
push esi
push 0x210
call fcn.1005a4b0
add esp, 0x10
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1005b91a.527
push edi
push 0xa1
push esi
push 0x214
call fcn.1005a4b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1005b759
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x1005b71a
push edi
push 0xa2
push esi
push 0x20f
call fcn.1005a4b0
add esp, 0x10
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1005b91a.527
push edi
push 0xa3
push esi
push 0x213
call fcn.1005a4b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1005b91a.527
push 0xa4
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x1005b78d
push edi
push 0xa4
push esi
push 0x211
call fcn.1005a4b0
add esp, 0x10
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1005b91a.527
push edi
push 0xa5
push esi
push 0x215
call fcn.1005a4b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
cmp ecx, 7
mov ecx, ebx
sete al
movzx eax, al
push eax
call fcn.1002ee10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1005b827
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1005b91a.527
push ecx
mov ecx, ebx
call fcn.1002eef0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 8]
mov ecx, ebx
push eax
call fcn.1002ee90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x14], 1
jne case.0x1005b91a.527
call fcn.1005ae40
test al, al
je case.0x1005b91a.527
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
cmp byte [edi + 8], 0
mov dword [edi + 4], esi
jne 0x1005b8c0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [edi + 8], 1
mov ecx, dword [ebp + 0x14]
sub esp, 8
mov eax, ecx
shr eax, 0x10
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, cx
mov ecx, ebx
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.1002f250
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x201]
cmp eax, 0xa2
ja case.0x1005b91a.527
movzx eax, byte [eax + 0x1005bc24]
jmp dword [eax*4 + 0x1005bc08]
cmp dword [edi + 4], esi
jne 0x1005b92d
mov dword [edi + 4], 0
sub esp, 8
mov byte [edi + 8], 0
mov ecx, ebx
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.1002f250
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
cmp ecx, 0x204
je 0x1005b96f
xor esi, esi
cmp ecx, 0x206
jne 0x1005b974
mov esi, 1
cmp ecx, 0x207
je 0x1005b984
cmp ecx, 0x209
jne 0x1005b989
mov esi, 2
cmp ecx, 0x20b
je 0x1005b999
cmp ecx, 0x20d
jne 0x1005b9a9
mov esi, dword [ebp + 0x10]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
cmp dword [edi + 0xc], 0
jne 0x1005b9c2
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1005b9c2
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0xc]
mov ecx, ebx
push 1
bts eax, esi
push esi
mov dword [edi + 0xc], eax
call fcn.1002f1c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp ecx, 0x205
sete bl
cmp ecx, 0x208
jne 0x1005ba02
mov ebx, 2
jmp 0x1005ba1a
cmp ecx, 0x20c
jne 0x1005ba1a
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
dec ebx
neg ebx
sbb ebx, ebx
neg ebx
add ebx, 3
mov eax, dword [edi + 0xc]
btr eax, ebx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x1005ba37
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
jne 0x1005ba37
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x1c]
push 0
push ebx
call fcn.1002f1c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
mov ecx, ebx
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x10190e9c]
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.1002f370
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
mov ecx, ebx
cwde
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x10190e9c]
movss dword [esp], xmm0
call fcn.1002f370
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab082
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 7
jne case.0x1005b91a.527
mov byte [edi + 0x25], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ab082
mov esp, ebp
pop ebp
ret