Function at 0x48ce10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5095c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0x384]
test ecx, ecx
je case.0x48d3f7.515
mov eax, dword [ebp + 8]
cmp eax, 0x200
ja 0x48d3e0
je 0x48d2bd
cmp eax, 0x24
ja 0x48d056
je 0x48d036
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x48d3f7.515
movzx eax, byte [eax + 0x48d6a4]
jmp dword [eax*4 + 0x48d688]
cmp dword [0x50f464], edi
jne 0x48ce91
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x50f464], 0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 0x80000000
mov dword [ebp - 0x20], 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.004a818a
mov esp, ebp
pop ebp
ret 0xc
cmp si, 1
jne case.0x48d3f7.515
cmp byte [edi + 0x38c], 0
je 0x48cf0c
mov eax, dword [edi + 0x390]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
mov ecx, edi
call fcn.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 1
je case.0x48d3f7.515
cmp byte [edi + 0x3a4], 0
jne case.0x48d3f7.515
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.0048c690
add esp, 8
test al, al
je case.0x48d3f7.515
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
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.00483530
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.0048cd80
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.0048cd80
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 3
push eax
mov ecx, edi
call fcn.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
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.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
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.004a818a
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x48d3f7.515
jmp dword [eax*4 + 0x48d6c4]
cmp byte [edi + 0x398], 0
jne 0x48d080
test esi, 0x40000000
jne case.0x48d3f7.515
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x48d0ac
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x48d141
mov ax, word [edi + 0x3a6]
lea esi, [ebp - 0x1c]
mov word [ebp - 0x2e], cx
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
mov dword [ebp - 0x48], 0x3ff
nop dword [eax]
movzx edx, word [ecx]
add ecx, 2
lea eax, [edx + 0x2800]
cmp ax, word [ebp - 0x48]
ja 0x48d127
lea eax, [ebp - 0x2c]
cmp ecx, eax
jae 0x48d120
movzx eax, word [ecx]
add ecx, 2
mov dword [ebp - 0x20], eax
add eax, 0xffff2400
cmp eax, 0x3ff
ja 0x48d123
mov eax, edx
mov edx, dword [ebp - 0x20]
shl eax, 0xa
add edx, 0xfca02400
add eax, edx
jmp 0x48d129
lea ecx, [ebp - 0x2c]
xor eax, eax
jmp 0x48d129
mov eax, edx
mov dword [esi], eax
lea eax, [ebp - 0x2c]
add esi, 4
cmp ecx, eax
jb 0x48d0e0
mov ecx, dword [ebp - 0x1c]
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.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x398], 0
jne 0x48d181
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x48d3f7.515
push 0x12
mov dword [ebp - 0x18], 5
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [ebp - 0xb]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [ebp - 0xa]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x48d1e2
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [ebp - 9], 0
test eax, eax
je 0x48d1e6
mov byte [ebp - 9], 1
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.0048e4e0
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push esi
call fcn.0048dd70
add esp, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
push 0x12
mov dword [ebp - 0x18], 6
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [ebp - 0xb]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [ebp - 0xa]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x48d280
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [ebp - 9], 0
test eax, eax
je 0x48d284
mov byte [ebp - 9], 1
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.0048e4e0
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push esi
call fcn.0048dd70
add esp, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
movsx eax, si
mov dword [ebp - 0x20], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [ebp + 0xc], 0x73
jne 0x48d2f3
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x48d30a
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x48d30a
mov esi, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x48d30a
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x14]
jl 0x48d369
cmp esi, dword [ebp - 0xc]
jg 0x48d369
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x48d369
cmp eax, dword [ebp - 8]
jg 0x48d369
cmp byte [edi + 0x3a8], 0
jne 0x48d3b3
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [edi + 0x3a8], 1
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x20], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xc
jmp 0x48d3a8
cmp byte [edi + 0x3a8], 0
je 0x48d3b3
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [edi + 0x3a8], 0
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 0x80000000
mov dword [ebp - 0x20], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xd
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00483530
mov eax, dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0xb
mov dword [ebp - 0x40], esi
call fcn.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x48d3f7.515
movzx eax, byte [eax + 0x48d718]
jmp dword [eax*4 + 0x48d6dc]
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.004a818a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
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.0048c690
add esp, 8
test al, al
je 0x48cfb6
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
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 0x48cfac
movsx eax, si
mov dword [ebp - 0x24], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
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 - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00483530
movd xmm0, esi
mov dword [ebp - 0x14], 0
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x4f27e4]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], 8
mov dword [ebp - 8], eax
movss dword [ebp - 0x10], xmm0
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00483530
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc
movsx eax, si
mov dword [ebp - 0x24], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
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 [0x4d2490]
jmp 0x48d4da
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 0x48d4fa
mov dword [ebp - 0x18], 0xa
jmp 0x48d556
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 0x48d4fa
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 0x48d4fa
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 0x48d4fa
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 0x48d4fa
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 0x48d4fa
mov dword [ebp - 0x18], 0xa
jmp 0x48d606
cmp byte [edi + 0x3a8], 0
je case.0x48d3f7.515
mov byte [edi + 0x3a8], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xd
jmp 0x48d4fd
mov eax, dword [ebp + 0xc]
cmp eax, 0x8000
je 0x48d666
cmp eax, 0x8004
jne case.0x48d3f7.515
test esi, esi
je case.0x48d3f7.515
cmp dword [esi + 4], 5
jne case.0x48d3f7.515
call fcn.00489510
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0xc