Function at 0x409b5f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x54
mov eax, dword [0x41e504]
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.0x409d22.515
mov eax, dword [esp + 0x60]
cmp eax, 0x200
ja 0x409d0b
push ebx
push ebp
je 0x409bf9
cmp eax, 0x24
ja 0x409a63
je 0x409a40
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x409a71.259
movzx eax, byte [eax + 0x409ffc]
jmp dword [eax*4 + 0x409fe0]
cmp dword [0x420c44], edi
jne 0x4098e0
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x420c44], 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], 0x80000000
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.004137b4
add esp, 0x54
ret 0xc
cmp si, 1
jne case.0x409a71.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.004137b4
add esp, 0x54
ret 0xc
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004054d0
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004137b4
add esp, 0x54
ret 0xc
cmp dword [esp + 0x6c], 1
je case.0x409a71.259
cmp byte [edi + 0x3a4], 0
jne case.0x409a71.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.00409050
add esp, 8
test al, al
je case.0x409a71.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.004054d0
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.004097e0
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004137b4
add esp, 0x54
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.004097e0
mov dword [esp + 0x28], 3
jmp 0x409960
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov dword [esp + 0x28], 2
jmp 0x409960
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.004137b4
add esp, 0x54
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x409a71.259
jmp dword [eax*4 + 0x40a01c]
cmp byte [edi + 0x398], 0
jne 0x409a8d
test esi, 0x40000000
jne case.0x409a71.259
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x50], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x409abe
pop ebp
pop ebx
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004137b4
add esp, 0x54
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x409b4e
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 0x409b32
lea eax, [esp + 0x28]
cmp ecx, eax
jae 0x409b2a
movzx ebx, word [ecx]
add ecx, 2
lea eax, [ebx - 0xdc00]
cmp eax, 0x3ff
ja 0x409b2e
mov eax, edx
shl eax, 0xa
add eax, 0xfca02400
add eax, ebx
jmp 0x409b34
lea ecx, [esp + 0x28]
xor eax, eax
jmp 0x409b34
mov eax, edx
mov dword [esi], eax
lea eax, [esp + 0x28]
add esi, 4
cmp ecx, eax
jb 0x409af0
mov ecx, dword [esp + 0x50]
xor eax, eax
mov word [edi + 0x3a6], ax
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], ecx
jmp 0x409960
cmp byte [edi + 0x398], 0
jne 0x409b78
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x409a71.259
mov dword [esp + 0x10], 5
jmp 0x409b8a
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 0x409bda
push 0x5c
call ebx
cwde
shr eax, 0x10
mov byte [esp + 0x1b], 0
test eax, eax
je 0x409bdf
mov byte [esp + 0x1b], 1
push esi
push dword [esp + 0x70]
call fcn.0040a6a0
mov dword [esp + 0x1c], eax
add esp, 8
lea eax, [esp + 0x10]
jmp 0x409964
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 0x409c2b
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x409c42
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x409c42
mov ebp, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, ebp
je 0x409c42
push ebp
call dword [sym.imp.USER32.dll_SetCapture]
cmp ebx, dword [esp + 0x50]
jl 0x409ca5
cmp ebx, dword [esp + 0x58]
jg 0x409ca5
cmp esi, dword [esp + 0x54]
jl 0x409ca5
cmp esi, dword [esp + 0x5c]
jg 0x409ca5
cmp byte [edi + 0x3a8], 0
jne 0x409cf6
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 0x409cea
cmp byte [edi + 0x3a8], 0
je 0x409cf6
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], 0x80000000
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.004054d0
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
jmp 0x409960
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x409d22.515
movzx eax, byte [eax + 0x40a070]
jmp dword [eax*4 + 0x40a034]
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.004137b4
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.00409050
add esp, 8
test al, al
je 0x409dac
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.004054d0
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.004097e0
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004137b4
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.004054d0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0
divss xmm0, dword [0x416e4c]
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.004054d0
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004137b4
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 [0x416e50]
jmp 0x409e47
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 0x409e65
mov dword [esp + 8], 0xa
jmp 0x409eca
mov dword [esp + 8], 9
mov dword [esp + 0xc], 1
jmp 0x409ed2
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 1
jmp 0x409ed2
mov dword [esp + 8], 9
mov dword [esp + 0xc], 2
jmp 0x409ed2
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 2
jmp 0x409ed2
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 0x409ed2
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 0x409ed2
cmp byte [edi + 0x3a8], 0
je case.0x409d22.515
mov byte [edi + 0x3a8], 0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0xd
jmp 0x409e69
mov eax, dword [esp + 0x64]
cmp eax, 0x8000
je 0x409fb6
cmp eax, 0x8004
jne case.0x409d22.515
test esi, esi
je case.0x409d22.515
cmp dword [esi + 4], 5
jne case.0x409d22.515
call fcn.0040cf70
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
call fcn.004137b4
add esp, 0x54
ret 0xc