Function at 0x407870
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x46eb40
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x18]
mov esi, dword [esp + 0x8c]
sar eax, 2
cmp esi, eax
jb 0x4078b1
call fcn.0044cae8
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax + 8]
cmp eax, 4
jne 0x4078c9
call fcn.00407b00
jmp 0x407ab1
cmp eax, 1
jne 0x407903
lea ebx, [eax + 4]
mov eax, edi
call fcn.004159f0
test eax, eax
je 0x4078eb
mov edx, dword [eax + 0x17c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 4]
push 0
push 1
push 0x806a
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x407ab1
cmp eax, 2
jne 0x407912
call fcn.00407e60
jmp 0x407ab1
cmp eax, 3
jne 0x407a86
call fcn.0041fe10
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov eax, 0x4783c0
lea ecx, [esp + 0x24]
call fcn.004037f0
xor ebx, ebx
mov dword [esp + 0x80], ebx
call fcn.0041fe10
mov esi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x60]
call fcn.0042c040
add esp, 4
mov byte [esp + 0x80], 1
cmp dword [eax + 0x18], 0x10
jb 0x40796a
mov eax, dword [eax + 4]
jmp 0x40796d
add eax, 4
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push eax
push str.confirm_entrance
push esi
call edx
lea ecx, [esp + 0x5c]
call fcn.004037b0
lea esi, [esp + 0x24]
mov dword [esp + 0x80], 0xffffffff
call fcn.00418c90
push str.pConfirmInstall
lea ecx, [esp + 0x28]
call fcn.00403740
mov dword [esp + 0x80], 2
call fcn.0041fe10
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], 0xffffffff
call fcn.004037b0
push 0x477e14
lea ecx, [esp + 0x60]
call fcn.00403740
push 0x477e0c
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 3
call fcn.00403740
call fcn.0041fe10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x60]
push edx
lea edx, [esp + 0x48]
mov ebx, 5
mov byte [esp + 0x88], bl
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x24]
call fcn.004037b0
lea ecx, [esp + 0x40]
call fcn.004037b0
lea ecx, [esp + 0x5c]
call fcn.004037b0
mov eax, edi
call fcn.004159f0
test eax, eax
je 0x407a6a
mov ecx, dword [eax + 0x17c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 4]
push 0
push 3
push 0x806a
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [esp + 0x8c]
jmp 0x407ab1
cmp eax, 9
jne 0x407ab1
mov ebx, eax
mov eax, edi
call fcn.004159f0
test eax, eax
je 0x407ab1
mov eax, dword [eax + 0x178]
cmp eax, 1
jne 0x407aa9
mov byte [edi + 0x50], 0
jmp 0x407ab1
test eax, eax
jne 0x407ab1
mov byte [edi + 0x50], 1
mov eax, dword [esp + 0x88]
push eax
push esi
mov eax, edi
call fcn.00407fc0
test al, al
je 0x407ae5
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 4]
push 1
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x74
ret 8