Function at 0x407d00
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 0x407fa0
cmp ebp, 1
je 0x407db0
mov esi, dword [0x833064]
test esi, esi
je 0x407d4f
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 0x407f90
mov eax, dword [esp + 0x94]
test ebp, ebp
mov dword [ebx + 0x24], edi
mov dword [ebx + 4], ebp
mov dword [ebx + 0x28], eax
jne 0x407df0
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 0x407d3e
mov esi, dword [esp + 0x94]
mov ecx, 0x71a9de
lea edx, [esi + esi*2]
mov edx, dword [edx*4 + 0x70b044]
test edx, edx
cmove edx, ecx
cmp word [edx], 0
setne dl
movzx edx, dl
mov ebp, edx
jmp 0x407d3e
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 0x407e51
sub eax, edi
mov edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
lea ecx, [eax + 4]
cmp edx, ecx
jg 0x407e63
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 0x407e81
sub eax, edi
sub eax, 0x1e
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x60]
lea ebp, [ecx + 4]
cmp ebp, eax
jge 0x407fb0
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 0x407fc0
mov ecx, dword [0x85324c]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], 3
test ecx, ecx
mov dword [esp + 0x40], eax
jne 0x407f21
mov edx, dword [0x853250]
test edx, edx
jne 0x407f21
mov eax, dword [0x8531cc]
test eax, eax
mov dword [esp + 0x44], eax
je 0x407f29
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 [0x853238]
jne 0x407da3
mov eax, dword [0x853258]
mov byte [ebx + 0x10], 0
test eax, eax
jne 0x407da3
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 0x407da3
cmp dword [ebx + 4], ebp
setne al
mov esi, eax
jmp 0x407d78
test edi, edi
mov ecx, 0
cmove ebp, ecx
jmp 0x407d3e
lea eax, [ecx + 5]
mov dword [esp + 0x34], eax
jmp 0x407e90
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 0x407ecb