Function at 0x4037a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, 0x4bb133
push esi
push edi
call fcn.0048decd
call fcn.00415270
test eax, eax
je case.0x403ba0.527
call fcn.00415a10
mov edi, eax
mov dword [ebp - 0x10], edi
call fcn.00415270
test eax, eax
je 0x4037dc
call fcn.00415a10
mov edx, dword [eax + 0x70]
jmp 0x4037de
xor edx, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edx
cmp esi, 0x200
ja 0x403b88
je case.0x40380b.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x403ba0.527
movzx eax, byte [eax + 0x403d80]
jmp dword [eax*4 + 0x403d68]
cmp esi, 0x100
je 0x403826
mov byte [ebp - 4], 0
cmp esi, 0x104
jne 0x40382a
mov byte [ebp - 4], 1
cmp dword [ebp + 0x10], 0x100
jae case.0x403ba0.527
call fcn.00415a10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, eax
push 0x11
call esi
shr eax, 0xf
and al, 1
movzx ecx, al
push ecx
push 0x1000
mov ecx, edi
call fcn.00408780
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.00408780
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.00408780
push 0x5d
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.00408780
mov esi, dword [ebp + 0x10]
cmp esi, 0xd
jne 0x4038c3
mov eax, dword [ebp + 0x14]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
push esi
call fcn.004031e0
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movzx edi, al
test ecx, ecx
je 0x4038e9
push edi
push esi
push dword [ebp - 4]
push ecx
call fcn.00402280
add esp, 0x10
cmp esi, 0x10
jne 0x403949
push 0xa0
call fcn.00403f40
mov esi, dword [ebp - 4]
add esp, 4
cmp al, byte [ebp - 4]
jne 0x403917
push edi
push 0xa0
push esi
push 0x210
call fcn.00402280
add esp, 0x10
push 0xa1
call fcn.00403f40
add esp, 4
cmp al, byte [ebp - 4]
jne case.0x403ba0.527
push edi
push 0xa1
push esi
push 0x214
call fcn.00402280
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x4039a9
push 0xa2
call fcn.00403f40
mov esi, dword [ebp - 4]
add esp, 4
cmp al, byte [ebp - 4]
jne 0x403977
push edi
push 0xa2
push esi
push 0x20f
call fcn.00402280
add esp, 0x10
push 0xa3
call fcn.00403f40
add esp, 4
cmp al, byte [ebp - 4]
jne case.0x403ba0.527
push edi
push 0xa3
push esi
push 0x213
call fcn.00402280
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x403ba0.527
push 0xa4
call fcn.00403f40
mov esi, dword [ebp - 4]
add esp, 4
cmp al, byte [ebp - 4]
jne 0x4039db
push edi
push 0xa4
push esi
push 0x211
call fcn.00402280
add esp, 0x10
push 0xa5
call fcn.00403f40
add esp, 4
cmp al, byte [ebp - 4]
jne case.0x403ba0.527
push edi
push 0xa5
push esi
push 0x215
call fcn.00402280
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 7
mov ecx, edi
sete al
movzx eax, al
push eax
call fcn.004083f0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x403a54
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x403ba0.527
push ecx
mov ecx, edi
call fcn.004084e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 - 4]
mov ecx, edi
push eax
call fcn.00408480
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x14], 1
jne case.0x403ba0.527
call fcn.004030a0
test al, al
je case.0x403ba0.527
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
xor eax, eax
cmp esi, 0x200
mov dword [edx + 4], ecx
mov edx, dword [edx + 8]
setne al
inc eax
mov dword [ebp - 0x10], eax
cmp edx, eax
je 0x403b2c
cmp esi, 0x200
mov dword [ebp - 8], 0x12
mov eax, 2
mov dword [ebp - 0x20], 0x10
cmovne eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x1c], 0x80000000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
test edx, edx
je 0x403b1a
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 - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
movsx edx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0xa0
jne 0x403b5d
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x403ba0.527
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
movd xmm0, eax
sub esp, 8
cvtdq2ps xmm0, xmm0
mov ecx, edi
movss dword [esp + 4], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.00408960
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x403ba0.527
movzx eax, byte [eax + 0x403e9c]
jmp dword [eax*4 + 0x403e80]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x403ba0.527
mov eax, dword [edx + 4]
cmp eax, dword [ebp + 8]
jne 0x403bcb
mov dword [edx + 4], 0
sub esp, 8
mov dword [edx + 8], 0
mov ecx, edi
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.00408960
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x204
je 0x403c05
xor edi, edi
cmp esi, 0x206
jne 0x403c0a
mov edi, 1
cmp esi, 0x207
je 0x403c1a
cmp esi, 0x209
jne 0x403c1f
mov edi, 2
cmp esi, 0x20b
je 0x403c2f
cmp esi, 0x20d
jne 0x403c3f
mov edi, dword [ebp + 0x10]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
cmp dword [edx + 0xc], 0
jne 0x403c5b
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x403c58
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x10]
bts eax, edi
push 1
push edi
mov dword [edx + 0xc], eax
call fcn.004088c0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp esi, 0x205
sete cl
mov dword [ebp - 4], ecx
cmp esi, 0x208
jne 0x403c94
mov ecx, 2
jmp 0x403cac
cmp esi, 0x20c
jne 0x403caf
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [ebp - 4], ecx
mov eax, dword [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x403cd0
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x403ccd
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 4]
push 0
push ecx
mov ecx, edi
call fcn.004088c0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
mov ecx, edi
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x49296c]
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.00408a90
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
mov ecx, edi
cwde
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x492990]
divss xmm0, dword [0x49296c]
movss dword [esp], xmm0
call fcn.00408a90
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 7
jne case.0x403ba0.527
mov byte [edx + 0x25], 1
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret