Function at 0x407d50
Capabilities:
Hide graphical window

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x34], ecx
lea ecx, [ebp - 3]
mov dword [esp + 0x30], eax
cmp ecx, 1
jbe 0x407ff0
cmp ebp, 1
je 0x407e00
mov esi, dword [0x831064]
test esi, esi
je 0x407d9f
add eax, dword [ebx + 8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov esi, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
sub esp, 8
cmp edi, dword [ebx + 0x24]
je 0x407fe0
mov eax, dword [esp + 0x94]
test ebp, ebp
mov dword [ebx + 0x24], edi
mov dword [ebx + 4], ebp
mov dword [ebx + 0x28], eax
jne 0x407e40
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
xor ebp, ebp
cmp dword [esp + 0x94], 1
jle 0x407d8e
mov esi, dword [esp + 0x94]
mov ecx, 0x7199de
lea edx, [esi + esi*2]
mov edx, dword [edx*4 + 0x70a044]
test edx, edx
cmove edx, ecx
cmp word [edx], 0
setne dl
movzx edx, dl
mov ebp, edx
jmp 0x407d8e
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MonitorFromPoint]
sub esp, 0xc
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0x28
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
sub esp, 8
mov edi, dword [ebx + 8]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], edi
lea ecx, [edx + edi]
sub eax, 0xf
mov dword [esp + 0x64], eax
cmp eax, ecx
jge 0x407ea1
sub eax, edi
mov edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
lea ecx, [eax + 4]
cmp edx, ecx
jg 0x407eb3
lea edx, [eax + 5]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x34]
mov edi, dword [ebx + 0xc]
mov ecx, dword [esp + 0x68]
lea ebp, [eax + edi]
sub ecx, 0x13
cmp ecx, ebp
jg 0x407ed1
sub eax, edi
sub eax, 0x1e
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x60]
lea ebp, [ecx + 4]
cmp ebp, eax
jge 0x408000
add eax, 0x14
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
add edx, 0xa
mov dword [esp + 0x14], 1
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, esi
sub esp, 0x18
test al, al
jne 0x408010
mov ecx, dword [0x85124c]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], 3
test ecx, ecx
mov dword [esp + 0x40], eax
jne 0x407f71
mov edx, dword [0x851250]
test edx, edx
jne 0x407f71
mov eax, dword [0x8511cc]
test eax, eax
mov dword [esp + 0x44], eax
je 0x407f79
lea eax, [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_TrackMouseEvent]
sub esp, 4
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp + 0x44], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x851238]
jne 0x407df3
mov eax, dword [0x851258]
mov byte [ebx + 0x10], 0
test eax, eax
jne 0x407df3
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 4]
sub esp, 0xc
mov edx, 4
test eax, eax
cmovne eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
jmp 0x407df3
cmp dword [ebx + 4], ebp
setne al
mov esi, eax
jmp 0x407dc8
test edi, edi
mov ecx, 0
cmove ebp, ecx
jmp 0x407d8e
lea eax, [ecx + 5]
mov dword [esp + 0x34], eax
jmp 0x407ee0
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
sub esp, 0xc
jmp 0x407f1b