Function at 0x412c30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0x384]
test ecx, ecx
je case.0x413217.515
mov eax, dword [ebp + 8]
cmp eax, 0x200
ja 0x413200
je 0x4130dd
cmp eax, 0x24
ja 0x412e76
je 0x412e56
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x413217.515
movzx eax, byte [eax + 0x4134c4]
jmp dword [eax*4 + 0x4134a8]
cmp dword [0x4b8304], edi
jne 0x412cb1
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x4b8304], 0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 0x80000000
mov dword [ebp - 0x20], 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.00489aa9
mov esp, ebp
pop ebp
ret 0xc
cmp si, 1
jne case.0x413217.515
cmp byte [edi + 0x38c], 0
je 0x412d2c
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.00489aa9
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.00489aa9
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
mov ecx, edi
call fcn.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 1
je case.0x413217.515
cmp byte [edi + 0x3a4], 0
jne case.0x413217.515
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.004123b0
add esp, 8
test al, al
je case.0x413217.515
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
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.0040f1e0
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00412bb0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.00412bb0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 3
push eax
mov ecx, edi
call fcn.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
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.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
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.00489aa9
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x413217.515
jmp dword [eax*4 + 0x4134e4]
cmp byte [edi + 0x398], 0
jne 0x412ea0
test esi, 0x40000000
jne case.0x413217.515
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x412ecc
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x412f61
mov ax, word [edi + 0x3a6]
lea esi, [ebp - 0x1c]
mov word [ebp - 0x2e], cx
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
mov dword [ebp - 0x48], 0x3ff
nop dword [eax]
movzx edx, word [ecx]
add ecx, 2
lea eax, [edx + 0x2800]
cmp ax, word [ebp - 0x48]
ja 0x412f47
lea eax, [ebp - 0x2c]
cmp ecx, eax
jae 0x412f40
movzx eax, word [ecx]
add ecx, 2
mov dword [ebp - 0x20], eax
add eax, 0xffff2400
cmp eax, 0x3ff
ja 0x412f43
mov eax, edx
mov edx, dword [ebp - 0x20]
shl eax, 0xa
add edx, 0xfca02400
add eax, edx
jmp 0x412f49
lea ecx, [ebp - 0x2c]
xor eax, eax
jmp 0x412f49
mov eax, edx
mov dword [esi], eax
lea eax, [ebp - 0x2c]
add esi, 4
cmp ecx, eax
jb 0x412f00
mov ecx, dword [ebp - 0x1c]
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.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x398], 0
jne 0x412fa1
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x413217.515
push 0x12
mov dword [ebp - 0x18], 5
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [ebp - 0xb]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [ebp - 0xa]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x413002
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [ebp - 9], 0
test eax, eax
je 0x413006
mov byte [ebp - 9], 1
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.00414360
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push esi
call fcn.00413bf0
add esp, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
push 0x12
mov dword [ebp - 0x18], 6
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [ebp - 0xb]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [ebp - 0xa]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x4130a0
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [ebp - 9], 0
test eax, eax
je 0x4130a4
mov byte [ebp - 9], 1
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.00414360
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push esi
call fcn.00413bf0
add esp, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
movsx eax, si
mov dword [ebp - 0x20], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [ebp + 0xc], 0x73
jne 0x413113
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x41312a
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x41312a
mov esi, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x41312a
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x14]
jl 0x413189
cmp esi, dword [ebp - 0xc]
jg 0x413189
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x413189
cmp eax, dword [ebp - 8]
jg 0x413189
cmp byte [edi + 0x3a8], 0
jne 0x4131d3
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [edi + 0x3a8], 1
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x20], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xc
jmp 0x4131c8
cmp byte [edi + 0x3a8], 0
je 0x4131d3
mov eax, dword [edi + 0x384]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [edi + 0x3a8], 0
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 0x80000000
mov dword [ebp - 0x20], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x5c], 0xd
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.0040f1e0
mov eax, dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0xb
mov dword [ebp - 0x40], esi
call fcn.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x413217.515
movzx eax, byte [eax + 0x413538]
jmp dword [eax*4 + 0x4134fc]
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.00489aa9
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
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.004123b0
add esp, 8
test al, al
je 0x412dd6
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
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 0x412dcc
movsx eax, si
mov dword [ebp - 0x24], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
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 - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040f1e0
movd xmm0, esi
mov dword [ebp - 0x14], 0
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x48f1f4]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], 8
mov dword [ebp - 8], eax
movss dword [ebp - 0x10], xmm0
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0040f1e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc
movsx eax, si
mov dword [ebp - 0x24], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
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 [0x48f200]
jmp 0x4132fa
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 0x41331a
mov dword [ebp - 0x18], 0xa
jmp 0x413376
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 0x41331a
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 0x41331a
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 0x41331a
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 0x41331a
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 0x41331a
mov dword [ebp - 0x18], 0xa
jmp 0x413426
cmp byte [edi + 0x3a8], 0
je case.0x413217.515
mov byte [edi + 0x3a8], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xd
jmp 0x41331d
mov eax, dword [ebp + 0xc]
cmp eax, 0x8000
je 0x413486
cmp eax, 0x8004
jne case.0x413217.515
test esi, esi
je case.0x413217.515
cmp dword [esi + 4], 5
jne case.0x413217.515
call fcn.00417950
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00489aa9
mov esp, ebp
pop ebp
ret 0xc