Function at 0x426950
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5a9824]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x384]
test ecx, ecx
je case.0x426e75.515
mov eax, dword [ebp + 8]
cmp eax, 0x200
ja 0x426e5e
je 0x426d50
cmp eax, 0x24
ja 0x426b93
je 0x426b73
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x426e75.515
movzx eax, byte [eax + 0x42710c]
jmp dword [eax*4 + 0x4270f0]
cmp dword [0x5afeb4], edi
jne 0x4269ce
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x5afeb4], 0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 0x80000000
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
cmp si, 1
jne case.0x426e75.515
cmp byte [edi + 0x38c], 0
je 0x426a49
mov eax, dword [edi + 0x390]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
mov ecx, edi
call fcn.004230a0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 1
je case.0x426e75.515
cmp byte [edi + 0x3a4], 0
jne case.0x426e75.515
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.00426120
add esp, 8
test al, al
je case.0x426e75.515
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
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 [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ecx
mov dword [esi], ecx
mov ecx, edi
push eax
call fcn.004230a0
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.004268d0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.004268d0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 3
push eax
mov ecx, edi
call fcn.004230a0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 2
push eax
mov ecx, edi
call fcn.004230a0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov dword [esi + 0x20], 0xc350
mov dword [esi + 0x24], 0xc350
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x426e75.515
jmp dword [eax*4 + 0x42712c]
cmp byte [edi + 0x398], 0
jne 0x426bbd
test esi, 0x40000000
jne case.0x426e75.515
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x426be9
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x426c73
mov ax, word [edi + 0x3a6]
lea esi, [ebp - 0x30]
mov word [ebp - 0x2a], cx
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x48], 0x3ff
movzx edx, word [ecx]
add ecx, 2
lea eax, [edx + 0x2800]
cmp ax, word [ebp - 0x48]
ja 0x426c59
lea eax, [ebp - 0x28]
cmp ecx, eax
jae 0x426c52
movzx eax, word [ecx]
add ecx, 2
mov dword [ebp - 0x1c], eax
add eax, 0xffff2400
cmp eax, 0x3ff
ja 0x426c55
mov eax, edx
mov edx, dword [ebp - 0x1c]
shl eax, 0xa
add edx, 0xfca02400
add eax, edx
jmp 0x426c5b
lea ecx, [ebp - 0x28]
xor eax, eax
jmp 0x426c5b
mov eax, edx
mov dword [esi], eax
lea eax, [ebp - 0x28]
add esi, 4
cmp ecx, eax
jb 0x426c12
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov word [edi + 0x3a6], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x44], 4
call fcn.004230a0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x398], 0
jne 0x426cb3
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x426e75.515
mov dword [ebp - 0x18], 5
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [ebp - 0xf]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [ebp - 0xe]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x426d14
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [ebp - 0xd], 0
test eax, eax
je 0x426d18
mov byte [ebp - 0xd], 1
push esi
push dword [ebp + 0xc]
call fcn.00427820
add esp, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004230a0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x18], 6
jmp 0x426cba
movsx eax, si
mov dword [ebp - 0x1c], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [ebp + 0xc], 0x73
jne 0x426d86
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x426d9d
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x426d9d
mov esi, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x426d9d
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x14]
jl 0x426dfc
cmp esi, dword [ebp - 0xc]
jg 0x426dfc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
jl 0x426dfc
cmp eax, dword [ebp - 8]
jg 0x426dfc
cmp byte [edi + 0x3a8], 0
jne 0x426e46
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov byte [edi + 0x3a8], 1
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xc
jmp 0x426e3b
cmp byte [edi + 0x3a8], 0
je 0x426e46
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov byte [edi + 0x3a8], 0
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 0x80000000
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xd
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.004230a0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0xb
mov dword [ebp - 0x40], esi
jmp 0x426d2a
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x426e75.515
movzx eax, byte [eax + 0x427180]
jmp dword [eax*4 + 0x427144]
push 0
mov byte [edi + 0x3a4], 1
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
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.00426120
add esp, 8
test al, al
je 0x426af3
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
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 [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], ecx
jmp 0x426ae9
movsx eax, si
mov dword [ebp - 0x20], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 0xc]
mov ecx, edi
shr eax, 0x10
movsx esi, ax
mov eax, 0x88888889
imul esi
mov dword [ebp - 0x18], 7
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004230a0
movd xmm0, esi
mov dword [ebp - 0x14], 0
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x4f0b64]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 8
mov dword [ebp - 8], eax
movss dword [ebp - 0x10], xmm0
jmp 0x426d27
movsx eax, si
mov dword [ebp - 0x20], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cwde
mov dword [ebp - 0x14], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x4e8490]
jmp 0x426f58
mov dword [ebp - 0x18], 9
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
jmp 0x426d27
mov dword [ebp - 0x18], 0xa
jmp 0x426fbc
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
jmp 0x426d27
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
jmp 0x426d27
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 2
mov dword [ebp - 0xc], eax
jmp 0x426d27
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 2
mov dword [ebp - 0xc], eax
jmp 0x426d27
mov dword [ebp - 0x18], 9
mov eax, dword [ebp + 0xc]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [ebp - 0x14], eax
movsx eax, si
shr esi, 0x10
mov dword [ebp - 0x10], eax
movsx eax, si
mov dword [ebp - 0xc], eax
jmp 0x426d27
mov dword [ebp - 0x18], 0xa
jmp 0x42706f
cmp byte [edi + 0x3a8], 0
je case.0x426e75.515
mov byte [edi + 0x3a8], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xd
jmp 0x426d2a
mov eax, dword [ebp + 0xc]
cmp eax, 0x8000
je 0x4270cf
cmp eax, 0x8004
jne case.0x426e75.515
test esi, esi
je case.0x426e75.515
cmp dword [esi + 4], 5
jne case.0x426e75.515
call fcn.0042dde0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bb607
mov esp, ebp
pop ebp
ret 0xc