Function at 0x408240
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 0x408330
cmp ebp, 1
je 0x4082f1
mov esi, dword [0x847060]
test esi, esi
je 0x40828f
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 dword [ebx + 0x24], edi
jne 0x4082bc
cmp dword [ebx + 4], ebp
setne al
mov esi, eax
mov eax, dword [esp + 0x94]
test ebp, ebp
mov dword [ebx + 0x24], edi
mov dword [ebx + 4], ebp
mov dword [ebx + 0x28], eax
jne 0x408340
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 0x40827e
mov esi, dword [esp + 0x94]
mov ecx, 0x72e9c2
lea edx, [esi + esi*2]
mov edx, dword [edx*4 + 0x71f044]
test edx, edx
cmove edx, ecx
cmp word [edx], 0
setne dl
movzx edx, dl
mov ebp, edx
jmp 0x40827e
test edi, edi
mov ecx, 0
cmove ebp, ecx
jmp 0x40827e
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 0x4083a1
sub eax, edi
mov edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
lea ecx, [eax + 4]
cmp ecx, edx
jl 0x4083b3
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 0x4083d1
sub eax, edi
sub eax, 0x1e
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x60]
lea ebp, [ecx + 4]
cmp ebp, eax
jge 0x4084e0
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 0x4084f0
mov ecx, dword [0x86722c]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], 3
test ecx, ecx
mov dword [esp + 0x40], eax
jne 0x408471
mov edx, dword [0x867230]
test edx, edx
jne 0x408471
mov eax, dword [0x8671b0]
test eax, eax
mov dword [esp + 0x44], eax
je 0x408479
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 [0x867218]
jne 0x4082e7
mov eax, dword [0x867238]
mov byte [ebx + 0x10], 0
test eax, eax
jne 0x4082e7
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 0x4082e7
lea eax, [ecx + 5]
mov dword [esp + 0x34], eax
jmp 0x4083e0
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 0x40841b