Function at 0x404b80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x79c
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x794], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x38d]
push 0
push eax
mov byte [esp + 0x394], 0
call fcn.0041c150
add esp, 0xc
lea edi, [esp + 0x388]
call fcn.00407020
mov eax, edi
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x404bc8
mov ecx, dword [0x4259b8]
mov edx, dword [0x4259bc]
mov dword [eax], ecx
mov ecx, dword [0x4259c0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [esp + 0x388]
call fcn.00408680
mov esi, eax
test esi, esi
je 0x404c8b
push 0x66d
push str.Run_Setup_Runas
lea ebx, [esi + 1]
push 1
push ebx
mov ecx, str..Setup.cpp
call fcn.00408090
add esp, 0x10
push str.ASM_InstallConfig
mov edi, esi
call fcn.00408b30
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x404ccb
push 0x4259fc
push 0x677
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405d70
push 0x4259fc
push 0x677
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405a90
push esi
call fcn.00408760
add esp, 0x24
push ebx
call fcn.00408470
add esp, 4
xor eax, eax
jmp 0x405045
push 0x4259d4
push 0x670
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405d70
push 0x4259d4
push 0x670
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405a90
add esp, 0x20
xor eax, eax
jmp 0x405045
push 0x103
lea edx, [esp + 0x17d]
push 0
push edx
mov byte [esp + 0x184], 0
call fcn.0041c150
add esp, 0xc
push 0x103
lea eax, [esp + 0x75]
push 0
push eax
mov byte [esp + 0x7c], 0
call fcn.0041c150
add esp, 0xc
push 0x103
lea ecx, [esp + 0x285]
push 0
push ecx
mov byte [esp + 0x28c], 0
call fcn.0041c150
add esp, 0xc
xor edi, edi
test ebp, ebp
jle 0x404d60
jmp 0x404d30
lea ebp, [edi + 1]
push ebp
push str.ASM_InstallConfig__d__InstallType
push esi
call fcn.00408a90
add esp, 0xc
test eax, eax
je 0x404d58
push str.ADInstall
push eax
call fcn.004157a3
add esp, 8
test eax, eax
je 0x404d8a
mov edi, ebp
cmp edi, dword [esp + 0x14]
jl 0x404d30
push 0x425a80
push 0x691
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405d70
push 0x425a80
push 0x691
jmp 0x404c61
lea ebp, [edi + 1]
push ebp
push str.ASM_InstallConfig__d__UserName
push esi
call fcn.00408a90
add esp, 0xc
push ebp
push str.ASM_InstallConfig__d__Password
push esi
mov edi, eax
call fcn.00408a90
lea edx, [esp + 0x7c]
add esp, 0xc
push edx
mov ebp, eax
call fcn.0040ac70
lea eax, [esp + 0x284]
add esp, 4
push eax
mov edi, ebp
call fcn.0040ac70
add esp, 4
push esi
call fcn.00408760
add esp, 4
push ebx
call fcn.00408470
add esp, 4
cmp byte [esp + 0x70], 0
je 0x405029
cmp byte [esp + 0x280], 0
je 0x405029
xor ebp, ebp
push 0x40
xor eax, eax
lea ecx, [esp + 0x30]
push ebp
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
call fcn.0041c150
add esp, 0xc
push 0x103
lea edx, [esp + 0x495]
push ebp
push edx
mov byte [esp + 0x49c], 0
call fcn.0041c150
add esp, 0xc
push 0x207
lea eax, [esp + 0x59d]
push ebp
push eax
mov byte [esp + 0x5a4], 0
call fcn.0041c150
add esp, 0xc
push 0x104
lea ecx, [esp + 0x494]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x490]
push edx
push str.__s___Runas
lea edx, [esp + 0x5a0]
call fcn.00405a70
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
add esp, 8
xor esi, esi
jmp 0x404ea0
cmp esi, ebp
mov eax, str.USERDOMAIN
je 0x404eae
mov eax, str.COMPUTERNAME
push 0x104
lea ecx, [esp + 0x17c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x404fbe
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x5a0]
push ecx
lea edx, [esp + 0x28c]
push edx
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00406ab0
add esp, 0x18
test eax, eax
je 0x404f68
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call edi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call ebx
cmp dword [esp + 0x14], 1
je 0x404fcc
lea edx, [esp + 0x178]
push edx
lea eax, [esp + 0x74]
push eax
push 0x425ac0
push 0x6c4
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405d70
lea ecx, [esp + 0x190]
push ecx
lea edx, [esp + 0x8c]
push edx
push 0x425ac0
push 0x6c4
jmp 0x404faa
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0x425ae4
push 0x6c9
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405d70
lea edx, [esp + 0x190]
push edx
lea eax, [esp + 0x8c]
push eax
push 0x425ae4
push 0x6c9
push str..Setup.cpp
push 1
mov ecx, str.Run_Setup_Runas
call fcn.00405a90
add esp, 0x30
add esi, 1
cmp esi, 2
jl 0x404ea0
jmp 0x40502b
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x74]
push edx
push 0x425a9c
push 0x6bf
push str..Setup.cpp
push 2
mov ecx, str.Run_Setup_Runas
call fcn.00405d70
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 0x425a9c
push 0x6bf
push str..Setup.cpp
push 2
mov ecx, str.Run_Setup_Runas
call fcn.00405a90
add esp, 0x30
mov eax, 1
jmp 0x405045
xor ebp, ebp
push ebp
push 0x404830
push ebp
push 0x67
push ebp
call dword [sym.imp.USER32.dll_DialogBoxParamA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [esp + 0x7a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041310b
add esp, 0x79c
ret