Function at 0x4c06f9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5cfc24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x384]
test ecx, ecx
je case.0x4c08d4.515
mov eax, dword [ebp + 8]
cmp eax, 0x200
ja 0x4c08bd
je 0x4c07af
cmp eax, 0x24
ja 0x4c05ee
je 0x4c05ce
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x4c08d4.515
movzx eax, byte [eax + 0x4c0b6c]
jmp dword [eax*4 + 0x4c0b50]
cmp dword [0x5d3a7c], edi
jne 0x4c044e
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x5d3a7c], 0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 0x80000000
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
cmp si, 1
jne case.0x4c08d4.515
push dword [edi + 0x390]
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
mov ecx, edi
call fcn.004bb020
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 1
je case.0x4c08d4.515
cmp byte [edi + 0x3a4], 0
jne case.0x4c08d4.515
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.004bfcc0
add esp, 8
test al, al
je case.0x4c08d4.515
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ecx
mov dword [esi], ecx
mov ecx, edi
push eax
call fcn.004bb020
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.004c0350
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.004c0350
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 3
push eax
mov ecx, edi
call fcn.004bb020
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 2
push eax
mov ecx, edi
call fcn.004bb020
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov dword [esi + 0x20], 0xc350
mov dword [esi + 0x24], 0xc350
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x4c08d4.515
jmp dword [eax*4 + 0x4c0b8c]
cmp byte [edi + 0x398], 0
jne 0x4c0618
test esi, 0x40000000
jne case.0x4c08d4.515
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x4c0644
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x4c06d2
mov ax, word [edi + 0x3a6]
lea esi, [ebp - 0x30]
mov word [ebp - 0x2a], cx
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x48], 0x3ff
movzx edx, word [ecx]
add ecx, 2
lea eax, [edx + 0x2800]
cmp ax, word [ebp - 0x48]
ja 0x4c06b8
lea eax, [ebp - 0x28]
cmp ecx, eax
jae 0x4c06b1
movzx eax, word [ecx]
add ecx, 2
mov dword [ebp - 0x1c], eax
add eax, 0xffff2400
cmp eax, 0x3ff
ja 0x4c06b4
mov eax, edx
mov edx, dword [ebp - 0x1c]
shl eax, 0xa
add edx, 0xfca02400
add eax, edx
jmp 0x4c06ba
lea ecx, [ebp - 0x28]
xor eax, eax
jmp 0x4c06ba
mov eax, edx
mov dword [esi], eax
lea eax, [ebp - 0x28]
add esi, 4
cmp ecx, eax
jb 0x4c0671
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov word [edi + 0x3a6], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x44], 4
call fcn.004bb020
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x398], 0
jne 0x4c0712
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x4c08d4.515
mov dword [ebp - 0x18], 5
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [ebp - 0xf]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [ebp - 0xe]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x4c0773
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [ebp - 0xd], 0
test eax, eax
je 0x4c0777
mov byte [ebp - 0xd], 1
push esi
push dword [ebp + 0xc]
call fcn.004c1260
add esp, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004bb020
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x18], 6
jmp 0x4c0719
movsx eax, si
mov dword [ebp - 0x1c], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [ebp + 0xc], 0x73
jne 0x4c07e5
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x4c07fc
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x4c07fc
mov esi, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x4c07fc
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x14]
jl 0x4c085b
cmp esi, dword [ebp - 0xc]
jg 0x4c085b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
jl 0x4c085b
cmp eax, dword [ebp - 8]
jg 0x4c085b
cmp byte [edi + 0x3a8], 0
jne 0x4c08a5
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov byte [edi + 0x3a8], 1
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xc
jmp 0x4c089a
cmp byte [edi + 0x3a8], 0
je 0x4c08a5
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov byte [edi + 0x3a8], 0
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 0x80000000
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xd
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.004bb020
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0xb
mov dword [ebp - 0x40], esi
jmp 0x4c0789
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x4c08d4.515
movzx eax, byte [eax + 0x4c0be0]
jmp dword [eax*4 + 0x4c0ba4]
push 0
mov byte [edi + 0x3a4], 1
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
mov byte [edi + 0x3a4], 0
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.004bfcc0
add esp, 8
test al, al
je 0x4c054e
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], ecx
jmp 0x4c0544
movsx eax, si
mov dword [ebp - 0x20], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 0xc]
mov ecx, edi
shr eax, 0x10
movsx esi, ax
mov eax, 0x88888889
imul esi
mov dword [ebp - 0x18], 7
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004bb020
movd xmm0, esi
mov dword [ebp - 0x14], 0
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x52ed24]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 8
mov dword [ebp - 8], eax
movss dword [ebp - 0x10], xmm0
jmp 0x4c0786
movsx eax, si
mov dword [ebp - 0x20], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cwde
mov dword [ebp - 0x14], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x511540]
jmp 0x4c09b7
mov dword [ebp - 0x18], 9
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
jmp 0x4c0786
mov dword [ebp - 0x18], 0xa
jmp 0x4c0a1b
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
jmp 0x4c0786
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
jmp 0x4c0786
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 2
mov dword [ebp - 0xc], eax
jmp 0x4c0786
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 2
mov dword [ebp - 0xc], eax
jmp 0x4c0786
mov dword [ebp - 0x18], 9
mov eax, dword [ebp + 0xc]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [ebp - 0x14], eax
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0xc], eax
jmp 0x4c0786
mov dword [ebp - 0x18], 0xa
jmp 0x4c0ace
cmp byte [edi + 0x3a8], 0
je case.0x4c08d4.515
mov byte [edi + 0x3a8], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xd
jmp 0x4c0789
mov eax, dword [ebp + 0xc]
cmp eax, 0x8000
je 0x4c0b2e
cmp eax, 0x8004
jne case.0x4c08d4.515
test esi, esi
je case.0x4c08d4.515
cmp dword [esi + 4], 5
jne case.0x4c08d4.515
call fcn.004c5ae0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004dde94
mov esp, ebp
pop ebp
ret 0xc