Function at 0x406fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4599ac
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x477af4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov edx, dword [ebp + 8]
xor edi, edi
lea eax, [edx - 1]
mov dword [esp + 0x14], edi
cmp eax, 0xe
ja case.0x406dba.13
jmp dword [eax*4 + 0x407287]
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40726c
push 2
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40726c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.custom_install::client::data::CUIArgValidator.0
push 0x47aa78
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], edi
call fcn.00402325
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffff0
jle 0x406e4d
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.00407904
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
call fcn.00402372
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004034fb
lea esi, [ebx + 0x88]
cmp byte [esi], 0
jne 0x406e68
push dword [esp + 0x18]
mov eax, esi
call fcn.004098c8
cmp byte [esi], 0
je 0x406ec8
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 0x406ec1
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.00407904
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], edi
je 0x406eb9
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], edi
je 0x406eb9
mov edi, ecx
mov ebx, eax
mov ecx, esi
call fcn.00409a5d
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x10]
call fcn.004034fb
mov dword [ebx + 4], 2
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004034fb
jmp 0x40726c
push 6
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 4], 1
jmp 0x40726c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], edx
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.00407a31
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x407270
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edi
call dword [eax + 0xc]
dec eax
jns 0x406f37
mov dword [esp + 0x24], edi
jmp 0x406f53
mov ecx, dword [esp + 0x38]
push edi
call fcn.0040799c
cmp si, word [eax]
jne 0x406f4b
mov eax, dword [eax + 8]
jmp 0x406f4f
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
push 1
lea ecx, [esp + 0x34]
call fcn.004078cb
lea esi, [ebx + 0x14]
push dword [esi]
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40726c
cmp dword [esp + 0x24], 0xa
jle 0x40726c
cmp dword [esp + 0x28], 0xa
jle 0x40726c
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.004077d3
push esi
call fcn.0040764e
add ebx, 0x10
call fcn.00406ac4
jmp 0x40726c
push 1
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [ebx + 0x88]
cmp byte [esi], 0
je 0x406ffb
call fcn.00409b17
mov dword [ebx + 4], edi
jmp 0x40726c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], edx
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.00407a31
cmp eax, edi
jne 0x407270
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
call fcn.00407904
mov byte [esp + 0x58], 5
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], edi
jne 0x40705e
lea ecx, [esi - 0x10]
call fcn.004034fb
mov eax, 0x80070057
jmp 0x407270
push esi
lea ecx, [ebx + 0x38]
call fcn.0041013a
mov dword [esp + 0x14], eax
lea ecx, [esi - 0x10]
jmp 0x406ecf
mov esi, dword [ebp + 0x10]
push esi
call fcn.00407611
push dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
call fcn.0040645e
pop ecx
pop ecx
mov dword [esp + 0x58], 6
push dword [eax]
call fcn.004075d9
mov ecx, dword [esp + 0x2c]
jmp 0x406ecc
cmp dword [ebx + 4], edi
je 0x4070b1
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]
jmp 0x40726c
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [esp + 0x20], eax
call esi
cmp eax, edi
jne 0x4070d4
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x14], eax
mov esi, dword [ebp + 0x10]
sete al
movzx eax, al
push eax
call fcn.004075b4
jmp 0x40726c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], vtable.custom_install::client::data::CUIArgValidator.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 7
call fcn.00407a31
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x407270
cmp dword [ebx + 4], edi
jne 0x407138
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 0x40714f
xor al, al
jmp 0x407182
mov ecx, dword [esp + 0x38]
push edi
call fcn.0040799c
movzx esi, word [eax]
push 0xb
pop ecx
cmp cx, si
jne 0x40716e
cmp word [eax + 8], 0xffff
sete byte [esp + 0x13]
push 3
pop ecx
cmp cx, si
jne 0x40717e
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 0x40726c
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 [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov esi, dword [ebp + 0x10]
call fcn.0040757f
jmp 0x40726c
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 [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
jmp 0x4071c3
push 0x47aa78
lea ecx, [esp + 0x20]
call fcn.00402325
mov dword [esp + 0x58], 8
call fcn.0040364a
lea ecx, [esp + 0x1c]
call fcn.004094eb
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0x10]
push edi
call fcn.004075d9
lea ecx, [edi - 0x10]
jmp 0x406ecf
call fcn.0040364a
lea edi, [esp + 0x24]
call fcn.0040941c
mov dword [esp + 0x58], 9
mov edi, dword [esp + 0x24]
jmp 0x40721d
push dword [ebp + 0xc]
mov ecx, 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.00408c69
mov dword [esp + 0x14], eax
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