Function at 0x40e660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1237], 0
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
jne 0x40e683
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x52fe14]
push edi
mov edi, dword [sym.imp.USER32.dll_IsIconic]
push ecx
call edi
test eax, eax
setne al
test al, al
jne 0x40e94a
mov edx, dword [0x52fe30]
cmp byte [edx + 0x1220], al
je 0x40e6ba
cmp byte [esi + 0x40ee], al
jne 0x40e94a
cmp byte [esi + 0x4090], 0
jne 0x40e6d7
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e94a
cmp dword [esi + 0x40e4], 0x520
jne 0x40e6f4
mov ecx, dword [0x52fe14]
push ecx
call edi
test eax, eax
je 0x40e94a
cmp dword [esi + 0x40e4], 0x521
jne 0x40e711
mov edx, dword [0x52fe14]
push edx
call edi
test eax, eax
je 0x40e94a
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1220], 0
jne 0x40e94a
cmp byte [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x40e768
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x40e768
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 2
push ecx
push edx
call dword [sym.imp.USER32.dll_MonitorFromPoint]
jmp 0x40e783
push 2
test ebx, ebx
je 0x40e777
push ebx
call dword [sym.imp.USER32.dll_MonitorFromRect]
jmp 0x40e783
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
mov dword [ebp - 0x54], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x40e8d5
mov ecx, dword [0x52fe30]
call fcn.0044e550
test al, al
je 0x40e7ef
push 0
push 3
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.0040d990
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub dword [ebp - 0x40], ecx
sub dword [ebp - 0x3c], edx
add dword [ebp - 0x38], esi
add dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x40e81a
mov edx, dword [ebx]
mov edi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x40e837
mov ecx, dword [0x52fe14]
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub eax, edi
mov dword [ebp + 0xc], eax
xor eax, eax
sub ecx, edx
mov ebx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
sub eax, ebx
cmp edx, eax
mov dword [ebp - 4], ebx
mov ecx, edx
jl 0x40e85e
mov ecx, eax
cmp dword [ebp - 0x40], ecx
jle 0x40e868
mov ecx, dword [ebp - 0x40]
jmp 0x40e870
cmp edx, eax
mov ecx, edx
jl 0x40e870
mov ecx, eax
mov esi, dword [ebp - 0x34]
sub esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
cmp edi, esi
mov eax, edi
jl 0x40e881
mov eax, esi
mov edx, dword [ebp - 0x3c]
cmp edx, eax
jle 0x40e88c
mov edi, edx
jmp 0x40e892
cmp edi, esi
jl 0x40e892
mov edi, esi
mov edx, dword [ebp - 0x38]
lea eax, [ecx + ebx]
cmp edx, eax
mov dword [ebp - 0x18], edi
jl 0x40e8a1
mov edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x34]
add eax, edi
cmp esi, eax
mov dword [ebp - 0x14], edx
jl 0x40e8b2
mov esi, eax
mov dword [ebp - 0x10], esi
mov eax, 0x10
xor ecx, ecx
lea esp, [esp]
mov ebx, dword [ebp + ecx - 0x1c]
cmp ebx, dword [ebp + ecx - 0x2c]
jne 0x40e8e0
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x40e8c0
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40e92e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push 1
inc ecx
push ecx
mov ecx, dword [ebp - 0x1c]
inc eax
push eax
push edx
mov edx, dword [0x52fe14]
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x52fe34]
cmp byte [eax + 0x125fa], 0
je 0x40e93c
mov ecx, dword [ebp - 0xc]
push str.OnMoving.end
call fcn.00417c50
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8