Function at 0x41510f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x54
mov eax, dword [0x572b90]
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.0x4152d2.515
mov eax, dword [esp + 0x60]
cmp eax, 0x200
ja 0x4152bb
push ebx
push ebp
je 0x4151a9
cmp eax, 0x24
ja 0x415013
je 0x414ff0
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x415021.259
movzx eax, byte [eax + 0x4155ac]
jmp dword [eax*4 + 0x415590]
cmp dword [0x575744], edi
jne 0x414e90
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x575744], 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.004c0767
add esp, 0x54
ret 0xc
cmp si, 1
jne case.0x415021.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.004c0767
add esp, 0x54
ret 0xc
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00410ad0
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004c0767
add esp, 0x54
ret 0xc
cmp dword [esp + 0x6c], 1
je case.0x415021.259
cmp byte [edi + 0x3a4], 0
jne case.0x415021.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.00414510
add esp, 8
test al, al
je case.0x415021.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.00410ad0
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00414d90
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004c0767
add esp, 0x54
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00414d90
mov dword [esp + 0x28], 3
jmp 0x414f10
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov dword [esp + 0x28], 2
jmp 0x414f10
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.004c0767
add esp, 0x54
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x415021.259
jmp dword [eax*4 + 0x4155cc]
cmp byte [edi + 0x398], 0
jne 0x41503d
test esi, 0x40000000
jne case.0x415021.259
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x50], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x41506e
pop ebp
pop ebx
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004c0767
add esp, 0x54
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x4150fe
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 0x4150e2
lea eax, [esp + 0x28]
cmp ecx, eax
jae 0x4150da
movzx ebx, word [ecx]
add ecx, 2
lea eax, [ebx - 0xdc00]
cmp eax, 0x3ff
ja 0x4150de
mov eax, edx
shl eax, 0xa
add eax, 0xfca02400
add eax, ebx
jmp 0x4150e4
lea ecx, [esp + 0x28]
xor eax, eax
jmp 0x4150e4
mov eax, edx
mov dword [esi], eax
lea eax, [esp + 0x28]
add esi, 4
cmp ecx, eax
jb 0x4150a0
mov ecx, dword [esp + 0x50]
xor eax, eax
mov word [edi + 0x3a6], ax
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], ecx
jmp 0x414f10
cmp byte [edi + 0x398], 0
jne 0x415128
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x415021.259
mov dword [esp + 0x10], 5
jmp 0x41513a
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 0x41518a
push 0x5c
call ebx
cwde
shr eax, 0x10
mov byte [esp + 0x1b], 0
test eax, eax
je 0x41518f
mov byte [esp + 0x1b], 1
push esi
push dword [esp + 0x70]
call fcn.00415c50
mov dword [esp + 0x1c], eax
add esp, 8
lea eax, [esp + 0x10]
jmp 0x414f14
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 0x4151db
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x4151f2
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x4151f2
mov ebp, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, ebp
je 0x4151f2
push ebp
call dword [sym.imp.USER32.dll_SetCapture]
cmp ebx, dword [esp + 0x50]
jl 0x415255
cmp ebx, dword [esp + 0x58]
jg 0x415255
cmp esi, dword [esp + 0x54]
jl 0x415255
cmp esi, dword [esp + 0x5c]
jg 0x415255
cmp byte [edi + 0x3a8], 0
jne 0x4152a6
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 0x41529a
cmp byte [edi + 0x3a8], 0
je 0x4152a6
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.00410ad0
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
jmp 0x414f10
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x4152d2.515
movzx eax, byte [eax + 0x415620]
jmp dword [eax*4 + 0x4155e4]
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.004c0767
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.00414510
add esp, 8
test al, al
je 0x41535c
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.00410ad0
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00414d90
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004c0767
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.00410ad0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0
divss xmm0, dword [0x4c7fdc]
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.00410ad0
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004c0767
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 [0x4c7fe0]
jmp 0x4153f7
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 0x415415
mov dword [esp + 8], 0xa
jmp 0x41547a
mov dword [esp + 8], 9
mov dword [esp + 0xc], 1
jmp 0x415482
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 1
jmp 0x415482
mov dword [esp + 8], 9
mov dword [esp + 0xc], 2
jmp 0x415482
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 2
jmp 0x415482
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 0x415482
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 0x415482
cmp byte [edi + 0x3a8], 0
je case.0x4152d2.515
mov byte [edi + 0x3a8], 0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0xd
jmp 0x415419
mov eax, dword [esp + 0x64]
cmp eax, 0x8000
je 0x415566
cmp eax, 0x8004
jne case.0x4152d2.515
test esi, esi
je case.0x4152d2.515
cmp dword [esi + 4], 5
jne case.0x4152d2.515
call fcn.00418510
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
call fcn.004c0767
add esp, 0x54
ret 0xc