Function at 0x408030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x2c]
xor eax, eax
cmp esi, eax
je 0x4084af
cmp dword [esp + 0x30], eax
je 0x4084af
push ebp
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
call fcn.00417b90
mov ebp, 1
test al, 2
jne 0x408067
mov dword [esp + 0xc], ebp
test al, 1
jne 0x408076
test eax, 0x100
jne 0x408076
mov dword [esp + 8], ebp
push ebx
push edi
add esi, 0x12b04
push esi
call fcn.0040bbf0
mov esi, dword [esp + 0x38]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 4
test eax, eax
je 0x4080a1
mov dword [esp + 0x14], ebp
jmp 0x4080a8
cmp dword [esp + 0x14], 0
je 0x4080f1
push 0
push 0xaa4
push esi
call edi
push eax
call ebx
push 0
push 0xaa9
push esi
call edi
push eax
call ebx
push 0
push 0xaaa
push esi
call edi
push eax
call ebx
push 0
push 0xab0
push esi
call edi
push eax
call ebx
push 0
push 0xaa4
push esi
call edi
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
jmp 0x4080f7
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408144
push 0
push 0xaa3
push esi
call edi
push eax
call ebx
push 0
push 0xaa7
push esi
call edi
push eax
call ebx
push 0
push 0xaa8
push esi
call edi
push eax
call ebx
push 0
push 0xaaf
push esi
call edi
push eax
call ebx
push 0
push 0xaa3
push esi
call edi
push eax
call ebp
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
test eax, eax
sete cl
cmp dword [0x4431b0], 0
mov dword [edx], ecx
jne 0x408279
xor ebp, ebp
mov dword [esp + 0x38], 0x443140
jmp 0x408170
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp*4 + 0x43b708]
push eax
push ecx
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
add dword [esp + 0x38], 0x10
inc ebp
cmp ebp, 4
jb 0x408170
mov eax, ebp
shl eax, 4
mov dword [esp + 0x18], eax
lea eax, [eax + 0x443140]
push eax
push 0xaa3
push esi
mov dword [esp + 0x44], eax
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x443144]
push 0x443128
push esi
mov dword [0x443128], eax
mov dword [0x44312c], edx
inc ebp
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, ebp
shl eax, 4
mov dword [esp + 0x18], eax
lea eax, [eax + 0x443140]
push eax
push 0xaa4
push esi
mov dword [esp + 0x44], eax
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x443144]
push 0x443130
push esi
mov dword [0x443130], ecx
mov dword [0x443134], eax
inc ebp
call dword [sym.imp.USER32.dll_ScreenToClient]
shl ebp, 4
lea eax, [ebp + 0x443140]
push eax
push 0xaa5
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 0x443140]
mov edx, dword [ebp + 0x443144]
push 0x443138
push esi
mov dword [0x443138], ecx
mov dword [0x44313c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esp + 0x10]
mov dword [0x4431b0], 1
cmp dword [esp + 0x14], 0
jne 0x408456
test eax, eax
jne 0x408456
push 5
push 0xaa4
push esi
call edi
push eax
call ebx
push 5
push 0xaa9
push esi
call edi
push eax
call ebx
push 5
push 0xaaa
push esi
call edi
push eax
call ebx
push 5
push 0xab0
push esi
call edi
push eax
call ebx
push 1
push 0xaa4
push esi
call edi
push eax
call ebp
push 5
push 0xaa3
push esi
call edi
push eax
call ebx
push 5
push 0xaa7
push esi
call edi
push eax
call ebx
push 5
push 0xaa8
push esi
call edi
push eax
call ebx
push 5
push 0xaaf
push esi
call edi
push eax
call ebx
push 1
push 0xaa3
push esi
call edi
push eax
call ebp
xor ebp, ebp
xor ebx, ebx
jmp 0x408316
xor ebp, ebp
mov ecx, dword [ebx*4 + 0x43b6d8]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
push ecx
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x20]
push 0xffffffffffffffec
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x40836b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp ebx, 4
jge 0x408384
mov ecx, dword [0x44312c]
jmp 0x408395
cmp ebx, 7
mov ecx, dword [0x443134]
jle 0x408395
mov ecx, dword [0x44313c]
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x40840d
mov eax, ebx
and eax, 3
je 0x40840d
cmp ebx, 1
je 0x4083f4
cmp eax, 1
je 0x4083f4
cmp ebx, 2
je 0x4083db
cmp eax, 2
je 0x4083db
cmp ebx, 3
je 0x4083c2
cmp eax, 3
jne 0x408428
mov ebp, dword [0x44317c]
mov eax, dword [0x443178]
sub ebp, dword [0x443174]
sub eax, dword [0x443170]
jmp 0x408424
mov ebp, dword [0x44316c]
mov eax, dword [0x443168]
sub ebp, dword [0x443164]
sub eax, dword [0x443160]
jmp 0x408424
mov ebp, dword [0x44315c]
mov eax, dword [0x443158]
sub ebp, dword [0x443154]
sub eax, dword [0x443150]
jmp 0x408424
mov ebp, dword [0x44314c]
mov eax, dword [0x443148]
sub ebp, dword [0x443144]
sub eax, dword [0x443140]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push 1
push ebp
push edx
push ecx
mov ecx, dword [ebx*4 + 0x43b6d8]
push eax
push ecx
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
inc ebx
cmp ebx, 0xc
jb 0x408314
mov eax, dword [esp + 0x10]
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
je 0x40846e
lea ebx, [edi + 4]
test eax, eax
jne 0x40847e
mov edi, 0x43b658
jmp 0x408483
test eax, eax
je 0x408483
mov ebx, 8
mov edi, 0x43b678
jmp 0x408483
mov edi, 0x43b6b8
xor ebp, ebp
test ebx, ebx
jle 0x4084ac
lea esp, [esp]
test edi, edi
je 0x4084ac
mov edx, dword [edi]
mov eax, dword [edi + 4]
push edx
push eax
push esi
call fcn.004157f0
inc ebp
add esp, 0xc
add edi, 8
cmp ebp, ebx
jl 0x408490
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x20
ret