Function at 0x483410
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x54
mov eax, dword [0x59da54]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x384]
test ecx, ecx
je case.0x4838d2.515
mov eax, dword [esp + 0x60]
cmp eax, 0x200
ja 0x4838bb
push ebx
push ebp
je 0x4837a9
cmp eax, 0x24
ja 0x483613
je 0x4835f0
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x483621.259
movzx eax, byte [eax + 0x483bac]
jmp dword [eax*4 + 0x483b90]
cmp dword [0x5a1c54], edi
jne 0x483490
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x5a1c54], 0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov eax, dword [edi + 0x384]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], 0x10
mov dword [esp + 0x58], connect
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
cmp si, 1
jne case.0x483621.259
push dword [edi + 0x390]
call dword [sym.imp.USER32.dll_SetCursor]
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0047fa20
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
cmp dword [esp + 0x6c], 1
je case.0x483621.259
cmp byte [edi + 0x3a4], 0
jne case.0x483621.259
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
lea esi, [edi + 0x39c]
call dword [eax + 0x10]
push eax
push esi
call fcn.00482ce0
add esp, 8
test al, al
je case.0x483621.259
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, edi
mov eax, dword [edi + 0x3a0]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 1
call fcn.0047fa20
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00483390
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00483390
mov dword [esp + 0x28], 3
jmp 0x483510
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov dword [esp + 0x28], 2
jmp 0x483510
pop ebp
pop ebx
pop edi
mov dword [esi + 0x20], 0xc350
mov dword [esi + 0x24], 0xc350
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x483621.259
jmp dword [eax*4 + 0x483bcc]
cmp byte [edi + 0x398], 0
jne 0x48363d
test esi, 0x40000000
jne case.0x483621.259
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x50], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x48366e
pop ebp
pop ebx
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x4836fe
mov ax, word [edi + 0x3a6]
lea esi, [esp + 0x50]
mov word [esp + 0x26], cx
mov ebp, 0x3ff
mov word [esp + 0x24], ax
lea ecx, [esp + 0x24]
nop dword [eax]
movzx edx, word [ecx]
add ecx, 2
lea eax, [edx + 0x2800]
cmp ax, bp
ja 0x4836e2
lea eax, [esp + 0x28]
cmp ecx, eax
jae 0x4836da
movzx ebx, word [ecx]
add ecx, 2
lea eax, [ebx - 0xdc00]
cmp eax, 0x3ff
ja 0x4836de
mov eax, edx
shl eax, 0xa
add eax, 0xfca02400
add eax, ebx
jmp 0x4836e4
lea ecx, [esp + 0x28]
xor eax, eax
jmp 0x4836e4
mov eax, edx
mov dword [esi], eax
lea eax, [esp + 0x28]
add esi, 4
cmp ecx, eax
jb 0x4836a0
mov ecx, dword [esp + 0x50]
xor eax, eax
mov word [edi + 0x3a6], ax
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], ecx
jmp 0x483510
cmp byte [edi + 0x398], 0
jne 0x483728
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x483621.259
mov dword [esp + 0x10], 5
jmp 0x48373a
mov dword [esp + 0x10], 6
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call ebx
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [esp + 0x1c]
call ebx
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [esp + 0x1d]
call ebx
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [esp + 0x1e]
call ebx
cwde
shr eax, 0x10
test eax, eax
jne 0x48378a
push 0x5c
call ebx
cwde
shr eax, 0x10
mov byte [esp + 0x1b], 0
test eax, eax
je 0x48378f
mov byte [esp + 0x1b], 1
push esi
push dword [esp + 0x70]
call fcn.00484250
mov dword [esp + 0x1c], eax
add esp, 8
lea eax, [esp + 0x10]
jmp 0x483514
lea eax, [esp + 0x50]
movsx ebx, si
push eax
shr esi, 0x10
push ecx
movsx esi, si
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [esp + 0x6c], 0x73
jne 0x4837db
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x4837f2
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x4837f2
mov ebp, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, ebp
je 0x4837f2
push ebp
call dword [sym.imp.USER32.dll_SetCapture]
cmp ebx, dword [esp + 0x50]
jl 0x483855
cmp ebx, dword [esp + 0x58]
jg 0x483855
cmp esi, dword [esp + 0x54]
jl 0x483855
cmp esi, dword [esp + 0x5c]
jg 0x483855
cmp byte [edi + 0x3a8], 0
jne 0x4838a6
mov eax, dword [edi + 0x384]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
mov byte [edi + 0x3a8], 1
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 2
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x3c], 0xc
jmp 0x48389a
cmp byte [edi + 0x3a8], 0
je 0x4838a6
mov eax, dword [edi + 0x384]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
mov byte [edi + 0x3a8], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], connect
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x3c], 0xd
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0047fa20
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
jmp 0x483510
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x4838d2.515
movzx eax, byte [eax + 0x483c20]
jmp dword [eax*4 + 0x483be4]
push 0
mov byte [edi + 0x3a4], 1
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
mov eax, dword [edi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
mov byte [edi + 0x3a4], 0
lea esi, [edi + 0x39c]
call dword [eax + 0x10]
push eax
push esi
call fcn.00482ce0
add esp, 8
test al, al
je 0x48395c
mov eax, dword [edi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, ecx
mov dword [esp + 0x24], eax
mov ecx, edi
mov eax, dword [edi + 0x3a0]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 1
call fcn.0047fa20
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00483390
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
movsx eax, si
mov dword [esp + 0x48], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x64]
mov ecx, edi
shr eax, 0x10
movsx esi, ax
mov eax, 0x88888889
imul esi
mov dword [esp + 8], 7
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call fcn.0047fa20
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0
divss xmm0, dword [0x4f66dc]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], 8
movss dword [esp + 0x10], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.0047fa20
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc
movsx eax, si
mov dword [esp + 0x48], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x64]
shr eax, 0x10
cwde
mov dword [esp + 0xc], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x4f66e0]
jmp 0x4839f7
mov dword [esp + 8], 9
mov dword [esp + 0xc], 0
movsx eax, si
shr esi, 0x10
mov dword [esp + 0x10], eax
movsx eax, si
mov dword [esp + 0x14], eax
jmp 0x483a15
mov dword [esp + 8], 0xa
jmp 0x483a7a
mov dword [esp + 8], 9
mov dword [esp + 0xc], 1
jmp 0x483a82
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 1
jmp 0x483a82
mov dword [esp + 8], 9
mov dword [esp + 0xc], 2
jmp 0x483a82
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 2
jmp 0x483a82
mov eax, dword [esp + 0x64]
shr eax, 0x10
dec eax
mov dword [esp + 8], 9
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0xc], eax
jmp 0x483a82
mov eax, dword [esp + 0x64]
shr eax, 0x10
dec eax
mov dword [esp + 8], 0xa
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0xc], eax
jmp 0x483a82
cmp byte [edi + 0x3a8], 0
je case.0x4838d2.515
mov byte [edi + 0x3a8], 0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0xd
jmp 0x483a19
mov eax, dword [esp + 0x64]
cmp eax, 0x8000
je 0x483b66
cmp eax, 0x8004
jne case.0x4838d2.515
test esi, esi
je case.0x4838d2.515
cmp dword [esi + 4], 5
jne case.0x4838d2.515
call fcn.00486b10
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
call fcn.00493440
add esp, 0x54
ret 0xc