Function at 0x408226
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4701f1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x498fa4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov ecx, dword [ebp + 8]
push 7
xor edi, edi
pop edx
mov dword [esp + 0x14], edi
cmp ecx, edx
ja 0x40856f
je 0x40853f
mov eax, ecx
dec eax
je 0x408528
dec eax
je 0x408434
dec eax
je 0x408339
dec eax
je 0x408316
dec eax
jne 0x40858c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.custom_install::client::data::CUIArgValidator.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 4
call fcn.00409644
cmp eax, edi
jne 0x4086cb
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.0040951a
mov byte [esp + 0x58], 5
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], edi
jne 0x4082f6
lea ecx, [esi - 0x10]
call fcn.00402595
mov eax, 0x80070057
jmp 0x4086cb
push esi
lea ecx, [ebx + 0x38]
call fcn.004161ba
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x40830e
mov byte [ebx + 0x88], 1
lea ecx, [esi - 0x10]
jmp 0x40842a
push 1
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [ebx + 0x90]
cmp byte [esi], 0
je 0x408331
call fcn.0040fe18
mov dword [ebx + 4], edi
jmp 0x4086c7
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.custom_install::client::data::CUIArgValidator.0
push 0x49ed00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], edi
call fcn.00401e4f
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffff0
jle 0x4083a8
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.0040951a
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
call fcn.00401f86
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402595
lea esi, [ebx + 0x90]
cmp byte [esi], 0
jne 0x4083c3
push dword [esp + 0x18]
mov eax, esi
call fcn.0040fbc9
cmp byte [esi], 0
je 0x408423
push edi
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
and ecx, 0xfffffff0
cmp ecx, 0x10
jle 0x40841c
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.0040951a
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], edi
je 0x408414
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], edi
je 0x408414
mov edi, ecx
mov ebx, eax
mov ecx, esi
call fcn.0040fd5e
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x10]
call fcn.00402595
mov dword [ebx + 4], 2
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402595
jmp 0x4086c7
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.custom_install::client::data::CUIArgValidator.0
push 3
pop esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], esi
call fcn.00409644
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x4086cb
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edi
call dword [eax + 0xc]
dec eax
jns 0x40847f
mov dword [esp + 0x24], edi
jmp 0x40849b
mov ecx, dword [esp + 0x38]
push edi
call fcn.004095b2
cmp si, word [eax]
jne 0x408493
mov eax, dword [eax + 8]
jmp 0x408497
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
push 1
lea ecx, [esp + 0x34]
call fcn.004094e1
lea esi, [ebx + 0x14]
push dword [esi]
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4086c7
cmp dword [esp + 0x24], 0xa
jle 0x4086c7
cmp dword [esp + 0x28], 0xa
jle 0x4086c7
mov dword [esp + 0x3c], edi
xor eax, eax
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
add eax, ecx
push 0x16
mov dword [esp + 0x4c], eax
push esi
lea eax, [esp + 0x44]
call fcn.00408a6c
push esi
call fcn.004088e7
add ebx, 0x10
call fcn.00409330
jmp 0x4086c7
push 6
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 4], 1
jmp 0x4086c7
mov esi, dword [ebp + 0x10]
push esi
call fcn.004088d0
push dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
call fcn.00407d0e
pop ecx
pop ecx
mov dword [esp + 0x58], 6
push dword [eax]
call fcn.00408898
mov ecx, dword [esp + 0x2c]
jmp 0x408427
push 8
mov eax, ecx
pop esi
sub eax, esi
je 0x4086a7
dec eax
dec eax
je 0x408604
sub eax, 6
je 0x4085cf
dec eax
je 0x4085b3
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea eax, [ebx + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
call fcn.0040a182
mov dword [esp + 0x14], eax
jmp 0x4086c7
call fcn.0040539a
lea edi, [esp + 0x24]
call fcn.0040f6db
mov dword [esp + 0x58], 9
mov edi, dword [esp + 0x24]
jmp 0x4085f3
push 0x49ed00
lea ecx, [esp + 0x20]
call fcn.00401e4f
mov dword [esp + 0x58], esi
call fcn.0040539a
lea ecx, [esp + 0x1c]
call fcn.0040f7aa
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0x10]
push edi
call fcn.00408898
lea ecx, [edi - 0x10]
jmp 0x40842a
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.custom_install::client::data::CUIArgValidator.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], edx
call fcn.00409644
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x4086cb
cmp dword [ebx + 4], edi
jne 0x408642
lea ecx, [ebx - 4]
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov byte [esp + 0x13], 0
call dword [eax + 0xc]
dec eax
jns 0x408659
xor al, al
jmp 0x40868c
mov ecx, dword [esp + 0x38]
push edi
call fcn.004095b2
movzx esi, word [eax]
push 0xb
pop ecx
cmp cx, si
jne 0x408678
cmp word [eax + 8], 0xffff
sete byte [esp + 0x13]
push 3
pop ecx
cmp cx, si
jne 0x408688
cmp dword [eax + 8], edi
setne byte [esp + 0x13]
mov al, byte [esp + 0x13]
xor ecx, ecx
push 3
test al, al
setne cl
push edi
push edi
push edi
push edi
dec ecx
dec ecx
push ecx
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4086c7
cmp dword [ebx + 4], edi
je 0x4086b5
lea ecx, [ebx - 4]
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc