Function at 0x427072
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x54
mov eax, dword [0x49d548]
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.0x427212.515
mov eax, dword [esp + 0x60]
cmp eax, 0x200
ja 0x4271fb
push ebx
push ebp
je 0x4270e9
cmp eax, 0x24
ja 0x426f53
je 0x426f30
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x426f61.259
movzx eax, byte [eax + 0x4274ec]
jmp dword [eax*4 + 0x4274d0]
cmp dword [0x4a009c], edi
jne 0x426dd0
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x4a009c], 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.00478d37
add esp, 0x54
ret 0xc
cmp si, 1
jne case.0x426f61.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.00478d37
add esp, 0x54
ret 0xc
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00422460
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00478d37
add esp, 0x54
ret 0xc
cmp dword [esp + 0x6c], 1
je case.0x426f61.259
cmp byte [edi + 0x3a4], 0
jne case.0x426f61.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.00426630
add esp, 8
test al, al
je case.0x426f61.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.00422460
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00426cd0
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00478d37
add esp, 0x54
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00426cd0
mov dword [esp + 0x28], 3
jmp 0x426e50
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov dword [esp + 0x28], 2
jmp 0x426e50
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.00478d37
add esp, 0x54
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x426f61.259
jmp dword [eax*4 + 0x42750c]
cmp byte [edi + 0x398], 0
jne 0x426f7d
test esi, 0x40000000
jne case.0x426f61.259
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x50], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x426fae
pop ebp
pop ebx
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00478d37
add esp, 0x54
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x42703e
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 0x427022
lea eax, [esp + 0x28]
cmp ecx, eax
jae 0x42701a
movzx ebx, word [ecx]
add ecx, 2
lea eax, [ebx - 0xdc00]
cmp eax, 0x3ff
ja 0x42701e
mov eax, edx
shl eax, 0xa
add eax, 0xfca02400
add eax, ebx
jmp 0x427024
lea ecx, [esp + 0x28]
xor eax, eax
jmp 0x427024
mov eax, edx
mov dword [esi], eax
lea eax, [esp + 0x28]
add esi, 4
cmp ecx, eax
jb 0x426fe0
mov ecx, dword [esp + 0x50]
xor eax, eax
mov word [edi + 0x3a6], ax
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], ecx
jmp 0x426e50
cmp byte [edi + 0x398], 0
jne 0x427068
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x426f61.259
mov dword [esp + 0x10], 5
jmp 0x42707a
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 0x4270ca
push 0x5c
call ebx
cwde
shr eax, 0x10
mov byte [esp + 0x1b], 0
test eax, eax
je 0x4270cf
mov byte [esp + 0x1b], 1
push esi
push dword [esp + 0x70]
call fcn.00427b90
mov dword [esp + 0x1c], eax
add esp, 8
lea eax, [esp + 0x10]
jmp 0x426e54
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 0x42711b
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x427132
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x427132
mov ebp, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, ebp
je 0x427132
push ebp
call dword [sym.imp.USER32.dll_SetCapture]
cmp ebx, dword [esp + 0x50]
jl 0x427195
cmp ebx, dword [esp + 0x58]
jg 0x427195
cmp esi, dword [esp + 0x54]
jl 0x427195
cmp esi, dword [esp + 0x5c]
jg 0x427195
cmp byte [edi + 0x3a8], 0
jne 0x4271e6
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 0x4271da
cmp byte [edi + 0x3a8], 0
je 0x4271e6
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.00422460
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
jmp 0x426e50
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x427212.515
movzx eax, byte [eax + 0x427560]
jmp dword [eax*4 + 0x427524]
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.00478d37
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.00426630
add esp, 8
test al, al
je 0x42729c
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.00422460
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00426cd0
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00478d37
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.00422460
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0
divss xmm0, dword [0x47fe7c]
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.00422460
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00478d37
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 [0x47fe80]
jmp 0x427337
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 0x427355
mov dword [esp + 8], 0xa
jmp 0x4273ba
mov dword [esp + 8], 9
mov dword [esp + 0xc], 1
jmp 0x4273c2
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 1
jmp 0x4273c2
mov dword [esp + 8], 9
mov dword [esp + 0xc], 2
jmp 0x4273c2
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 2
jmp 0x4273c2
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 0x4273c2
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 0x4273c2
cmp byte [edi + 0x3a8], 0
je case.0x427212.515
mov byte [edi + 0x3a8], 0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0xd
jmp 0x427359
mov eax, dword [esp + 0x64]
cmp eax, 0x8000
je 0x4274a6
cmp eax, 0x8004
jne case.0x427212.515
test esi, esi
je case.0x427212.515
cmp dword [esi + 4], 5
jne case.0x427212.515
call fcn.0042a450
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
call fcn.00478d37
add esp, 0x54
ret 0xc