Function at 0x6ae4f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x5c
mov eax, dword [0x7c2580]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, ecx
mov dword [esp + 0x48], esi
mov ecx, dword [edi + 0x384]
test ecx, ecx
je case.0x6aea84.515
mov eax, dword [esp + 0x68]
cmp eax, 0x200
ja 0x6aea6d
je 0x6ae943
cmp eax, 0x24
ja 0x6ae751
je 0x6ae730
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x6aea84.515
movzx eax, byte [eax + 0x6aed10]
jmp dword [eax*4 + 0x6aecf4]
cmp dword [0x7c972c], edi
jne 0x6ae572
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x7c972c], 0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov eax, dword [edi + 0x384]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], getpeername
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
cmp si, 1
jne case.0x6aea84.515
cmp byte [edi + 0x38c], 0
je 0x6ae5f4
mov eax, dword [edi + 0x390]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov ecx, edi
call fcn.006aa3d0
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
cmp dword [esp + 0x6c], 1
je case.0x6aea84.515
cmp byte [edi + 0x3a4], 0
jne case.0x6aea84.515
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.006adcd0
add esp, 8
test al, al
je case.0x6aea84.515
mov eax, dword [edi]
lea ecx, [esp + 0x40]
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 [esp + 0x54], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ecx
mov dword [esi], ecx
mov ecx, edi
push eax
call fcn.006aa3d0
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.006ae470
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.006ae470
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 3
push eax
mov ecx, edi
call fcn.006aa3d0
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 2
push eax
mov ecx, edi
call fcn.006aa3d0
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
pop edi
mov dword [esi + 0x20], 0xc350
mov dword [esi + 0x24], 0xc350
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x6aea84.515
jmp dword [eax*4 + 0x6aed30]
cmp byte [edi + 0x398], 0
jne 0x6ae77b
test esi, 0x40000000
jne case.0x6aea84.515
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x48], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x6ae7aa
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x6ae848
mov ax, word [edi + 0x3a6]
lea esi, [esp + 0x48]
mov word [esp + 0x36], cx
lea ecx, [esp + 0x34]
mov word [esp + 0x34], ax
mov dword [esp + 0x1c], 0x3ff
nop dword [eax]
movzx edx, word [ecx]
add ecx, 2
lea eax, [edx + 0x2800]
cmp ax, word [esp + 0x1c]
ja 0x6ae82c
lea eax, [esp + 0x38]
cmp ecx, eax
jae 0x6ae824
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 0x44], eax
add eax, 0xffff2400
cmp eax, 0x3ff
ja 0x6ae828
mov eax, edx
mov edx, dword [esp + 0x44]
shl eax, 0xa
add edx, 0xfca02400
add eax, edx
jmp 0x6ae82e
lea ecx, [esp + 0x38]
xor eax, eax
jmp 0x6ae82e
mov eax, edx
mov dword [esi], eax
lea eax, [esp + 0x38]
add esi, 4
cmp ecx, eax
jb 0x6ae7e0
mov ecx, dword [esp + 0x48]
xor eax, eax
mov word [edi + 0x3a6], ax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
push eax
mov ecx, edi
mov dword [esp + 0x24], 4
call fcn.006aa3d0
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
cmp byte [edi + 0x398], 0
jne 0x6ae88c
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x6aea84.515
mov dword [esp + 0x4c], 5
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [esp + 0x5c]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [esp + 0x5d]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [esp + 0x5e]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x6ae8f2
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [esp + 0x5b], 0
test eax, eax
je 0x6ae8f7
mov byte [esp + 0x5b], 1
push esi
mov esi, dword [esp + 0x70]
push esi
call fcn.006afb20
push dword [esp + 0x50]
mov dword [esp + 0x5c], eax
push esi
call fcn.006af420
add esp, 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call fcn.006aa3d0
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
mov dword [esp + 0x4c], 6
jmp 0x6ae894
movsx eax, si
mov dword [esp + 0x44], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x48], eax
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [esp + 0x6c], 0x73
jne 0x6ae97d
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x6ae994
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x6ae994
mov esi, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x6ae994
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [esp + 0x44]
cmp esi, dword [esp + 0x50]
jl 0x6ae9ff
cmp esi, dword [esp + 0x58]
jg 0x6ae9ff
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x54]
jl 0x6ae9ff
cmp eax, dword [esp + 0x5c]
jg 0x6ae9ff
cmp byte [edi + 0x3a8], 0
jne 0x6aea50
mov eax, dword [edi + 0x384]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push eax
mov byte [edi + 0x3a8], 1
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 8], 0xc
jmp 0x6aea44
cmp byte [edi + 0x3a8], 0
je 0x6aea50
mov eax, dword [edi + 0x384]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push eax
mov byte [edi + 0x3a8], 0
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], getpeername
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 8], 0xd
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.006aa3d0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x24], esi
jmp 0x6ae91b
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x6aea84.515
movzx eax, byte [eax + 0x6aed84]
jmp dword [eax*4 + 0x6aed48]
push 0
mov byte [edi + 0x3a4], 1
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc
mov eax, dword [edi]
lea ecx, [esp + 0x40]
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.006adcd0
add esp, 8
test al, al
je 0x6ae6a9
mov eax, dword [edi]
lea ecx, [esp + 0x40]
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 [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
jmp 0x6ae69f
movsx eax, si
mov dword [esp + 0x40], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x6c]
mov ecx, edi
shr eax, 0x10
movsx esi, ax
mov eax, 0x88888889
imul esi
mov dword [esp + 0x4c], 7
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
call fcn.006aa3d0
movd xmm0, esi
mov dword [esp + 0x50], 0
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x7a4cb4]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], 8
mov dword [esp + 0x5c], eax
movss dword [esp + 0x54], xmm0
jmp 0x6ae917
movsx eax, si
mov dword [esp + 0x40], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x6c]
shr eax, 0x10
cwde
mov dword [esp + 0x50], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x7a4cc0]
jmp 0x6aeb7a
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], 0
movsx eax, si
shr esi, 0x10
mov dword [esp + 0x54], eax
movsx eax, si
mov dword [esp + 0x58], eax
jmp 0x6ae917
mov dword [esp + 0x4c], 0xa
jmp 0x6aebea
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], 1
jmp 0x6aebf2
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], 1
jmp 0x6aebf2
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], 2
jmp 0x6aebf2
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], 2
jmp 0x6aebf2
mov eax, dword [esp + 0x6c]
shr eax, 0x10
dec eax
mov dword [esp + 0x4c], 9
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0x50], eax
jmp 0x6aebf2
mov eax, dword [esp + 0x6c]
shr eax, 0x10
dec eax
mov dword [esp + 0x4c], 0xa
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0x50], eax
jmp 0x6aebf2
cmp byte [edi + 0x3a8], 0
je case.0x6aea84.515
mov byte [edi + 0x3a8], 0
lea eax, [esp + 8]
mov dword [esp + 8], 0xd
jmp 0x6ae91b
mov eax, dword [esp + 0x6c]
cmp eax, 0x8000
je 0x6aecd1
cmp eax, 0x8004
jne case.0x6aea84.515
test esi, esi
je case.0x6aea84.515
cmp dword [esi + 4], 5
jne case.0x6aea84.515
call fcn.006b35b0
mov ecx, dword [esp + 0x60]
pop edi
pop esi
xor ecx, esp
call fcn.006d66cb
add esp, 0x5c
ret 0xc