Function at 0x458480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4b2740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x38], eax
call fcn.0040f470
test eax, eax
je case.0x45894e.527
call fcn.0040f9c0
mov dword [ebp - 0x34], eax
call fcn.0040f470
test eax, eax
je 0x4584c0
call fcn.0040f9c0
mov edi, dword [eax + 0x6c]
jmp 0x4584c2
xor edi, edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], edi
cmp esi, 0x200
ja 0x458936
je case.0x4584ef.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x45894e.527
movzx eax, byte [eax + 0x458b98]
jmp dword [eax*4 + 0x458b7c]
cmp esi, 0x100
je 0x45850a
mov byte [ebp - 0x34], 0
cmp esi, 0x104
jne 0x45850e
mov byte [ebp - 0x34], 1
cmp dword [ebp + 0x10], 0x100
jae case.0x45894e.527
call fcn.0040f9c0
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.004043f0
push 0x10
call edi
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.004043f0
push 0x12
call edi
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.004043f0
push 0x5d
call edi
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.004043f0
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp esi, 0xd
jne 0x4585a9
mov eax, ecx
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
push esi
call fcn.00457e30
shr ecx, 0x10
add esp, 4
mov dword [ebp - 8], eax
movzx edi, cl
cmp eax, 0x262
jne 0x4585da
cmp byte [ebp - 0x34], 0
jne 0x4585de
push edi
push esi
push 1
push eax
call fcn.00457310
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4585de
test eax, eax
je 0x4585ec
push edi
push esi
push dword [ebp - 0x34]
push eax
call fcn.00457310
add esp, 0x10
cmp esi, 0x10
jne 0x45865c
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp - 0x34]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 0x34]
jne 0x45861d
push edi
push 0xa0
push esi
push 0x210
call fcn.00457310
add esp, 0x10
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 0x34]
jne case.0x45894e.527
push edi
push 0xa1
push esi
push 0x214
call fcn.00457310
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x4586cc
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp - 0x34]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 0x34]
jne 0x45868d
push edi
push 0xa2
push esi
push 0x20f
call fcn.00457310
add esp, 0x10
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 0x34]
jne case.0x45894e.527
push edi
push 0xa3
push esi
push 0x213
call fcn.00457310
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x45894e.527
push 0xa4
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp - 0x34]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 0x34]
jne 0x458701
push edi
push 0xa4
push esi
push 0x211
call fcn.00457310
add esp, 0x10
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 0x34]
jne case.0x45894e.527
push edi
push 0xa5
push esi
push 0x215
call fcn.00457310
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
cmp esi, 7
sete al
movzx eax, al
push eax
call fcn.00404100
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
call fcn.00457cb0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x4587b5
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x45894e.527
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00404220
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
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 dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0x34]
push eax
call fcn.004041b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x14], 1
jne case.0x45894e.527
call fcn.00457cf0
test al, al
je case.0x45894e.527
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x458838
mov dword [ebp - 8], 2
jmp 0x458845
xor ecx, ecx
cmp eax, 0xff515780
sete cl
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 8]
xor eax, eax
mov edx, dword [ebp - 0x38]
cmp esi, 0x200
mov dword [edi + 4], edx
setne al
inc eax
mov dword [ebp - 0x3c], eax
cmp ecx, eax
je 0x4588c6
cmp esi, 0x200
mov dword [ebp - 0x40], 0x12
mov eax, 2
mov dword [ebp - 0x20], 0x10
cmovne eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x1c], connect
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
test ecx, ecx
je 0x4588b7
lea ecx, [ebp - 0x20]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [ebp - 0x30]
push ecx
call eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [edi + 8], eax
mov ecx, dword [ebp + 0x14]
movsx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x10], eax
movsx eax, cx
mov dword [ebp - 0xc], eax
cmp esi, 0xa0
jne 0x4588f3
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x45894e.527
push dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
call fcn.00404750
movd xmm0, dword [ebp - 0xc]
sub esp, 8
mov ecx, dword [ebp - 0x34]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, dword [ebp - 0x10]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.00404600
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x45894e.527
movzx eax, byte [eax + 0x458cb4]
jmp dword [eax*4 + 0x458c98]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edi + 8], eax
jne case.0x45894e.527
mov ecx, dword [ebp - 0x38]
cmp dword [edi + 4], ecx
jne 0x458979
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0x34]
sub esp, 8
mov dword [edi + 8], 0
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.00404600
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
call fcn.004572e0
mov dword [ebp - 0x3c], eax
cmp esi, 0x204
je 0x4589c6
xor edi, edi
cmp esi, 0x206
jne 0x4589cb
mov edi, 1
cmp esi, 0x207
je 0x4589db
cmp esi, 0x209
jne 0x4589e0
mov edi, 2
cmp esi, 0x20b
je 0x4589f0
cmp esi, 0x20d
jne 0x458a00
mov edi, dword [ebp + 0x10]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
mov esi, dword [ebp - 8]
cmp dword [esi + 0xc], 0
jne 0x458a1d
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x458a1d
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi + 0xc]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
bts eax, edi
mov dword [esi + 0xc], eax
call fcn.00404750
mov ecx, dword [ebp - 0x34]
push 1
push edi
call fcn.00404540
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
call fcn.004572e0
xor ecx, ecx
mov dword [ebp - 0x3c], eax
cmp esi, 0x205
sete cl
mov dword [ebp - 8], ecx
cmp esi, 0x208
jne 0x458a73
mov ecx, 2
jmp 0x458a8b
cmp esi, 0x20c
jne 0x458a8e
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
btr eax, ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x458aac
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x38]
jne 0x458aac
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
call fcn.00404750
mov ecx, dword [ebp - 0x34]
push 0
push dword [ebp - 8]
call fcn.00404540
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
cwde
mov ecx, dword [ebp - 0x34]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x4a716c]
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.00404770
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
cwde
mov ecx, dword [ebp - 0x34]
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x494460]
divss xmm0, dword [0x4a716c]
movss dword [esp], xmm0
call fcn.00404770
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 7
jne case.0x45894e.527
mov byte [edi + 0x29], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0048cd9a
mov esp, ebp
pop ebp
ret