Function at 0x412677
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x74
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0xb0
mov eax, 0x4a17ae
call fcn.004674a0
and dword [ebp + 4], 0
mov dword [ebp], ecx
call fcn.004056af
xor ebx, ebx
mov edi, eax
inc ebx
push ebx
lea eax, [ebp + 0xb]
push eax
mov esi, 0x4decc8
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401850
and dword [ebp - 4], 0
cmp dword [eax + 0x1c], 8
jb 0x4126cb
mov eax, dword [eax + 8]
jmp 0x4126ce
add eax, 8
push eax
lea eax, [ebp - 0x14]
push str.Reading_setup.ini_from__s
push eax
mov dword [ebp - 0x14], str.C:CodeBasesisdev_srcRuntimeMSISharedSetupdiskaction.cpp
mov dword [ebp - 0x10], 0xd6
call fcn.00411596
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401600
push esi
lea ecx, [edi + 0x28]
call fcn.0040c4fb
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1ca0
lea ecx, [ebp - 0x48]
call fcn.00401850
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageName
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp + 0xb]
push eax
mov esi, str.Startup
push esi
lea ecx, [ebp + 0x40]
call fcn.00401850
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp + 0x40]
push eax
push 5
mov ecx, edi
call fcn.004111cb
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x40]
call fcn.00401600
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xb0]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401600
push 5
mov ecx, edi
call fcn.0040eee8
test al, al
jne 0x4127ed
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageName
lea ecx, [ebp - 0x7c]
call fcn.00401850
mov dword [ebp - 4], 4
cmp dword [eax + 0x1c], 8
jb 0x4127b7
mov eax, dword [eax + 8]
jmp 0x4127ba
add eax, 8
push eax
lea eax, [ebp - 0x14]
push str.Failed_to_read_setup_package:__s_name_from_Setup.ini
push eax
mov dword [ebp - 0x14], str.C:CodeBasesisdev_srcRuntimeMSISharedSetupdiskaction.cpp
mov dword [ebp - 0x10], 0xdf
call fcn.00411596
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401600
xor eax, eax
jmp 0x412fae
mov ecx, dword [ebp]
call fcn.00411628
test al, al
jne 0x412819
lea eax, [ebp - 0x14]
push str.Failed_to_get_MSI_Engine_Version
push eax
mov dword [ebp - 0x14], str.C:CodeBasesisdev_srcRuntimeMSISharedSetupdiskaction.cpp
mov dword [ebp - 0x10], 0xe7
call fcn.00411596
pop ecx
pop ecx
jmp 0x4127e6
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DiskSpace
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov dword [ebp - 4], 5
push ebx
lea eax, [ebp + 0xb]
push eax
push str.Info
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 6
push 0xa
push 0x1f40
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.0043a1a3
mov dword [edi + 0x6c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401600
push ebx
lea eax, [ebp + 0xb]
push eax
push str.OnUpgrade
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov dword [ebp - 4], 7
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 8
push 0xa
push ebx
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.0043a1a3
mov dword [ebp], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401600
cmp dword [ebp], ebx
jne 0x412911
mov eax, dword [edi + 0x294]
cmp byte [eax + 1], 0
jne 0x4128fe
cmp byte [eax + 2], 0
jne 0x4128fe
mov eax, ebx
jmp 0x412900
xor eax, eax
test al, al
sete al
xor ecx, ecx
test al, al
setne cl
mov dword [edi + 0x64], ecx
jmp 0x41291e
xor eax, eax
cmp dword [ebp], 2
setne al
inc eax
mov dword [edi + 0x64], eax
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1ca0
lea ecx, [ebp + 0x40]
call fcn.00401850
mov dword [ebp - 4], 9
push ebx
lea eax, [ebp + 0xb]
push eax
push str.ProductCode
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov byte [ebp - 4], 0xa
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
mov ecx, edi
call fcn.004111cb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
call fcn.00401600
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb0]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1ca0
lea ecx, [ebp + 0x40]
call fcn.00401850
mov dword [ebp - 4], 0xc
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageCode
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov byte [ebp - 4], 0xd
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 0xe
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
push 2
mov ecx, edi
call fcn.004111cb
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
call fcn.00401600
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xb0]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1ca0
lea ecx, [ebp + 0x40]
call fcn.00401850
mov dword [ebp - 4], 0xf
push ebx
lea eax, [ebp + 0xb]
push eax
push str.ProductVersion
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov byte [ebp - 4], 0x10
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 0x11
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
push 3
mov ecx, edi
call fcn.004111cb
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.00401600
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb0]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f536
mov dword [ebp - 4], 0x12
cmp dword [eax + 0x18], 0
sete byte [ebp + 0xb]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401660
cmp byte [ebp + 0xb], 0
je 0x412c40
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1ca0
lea ecx, [ebp - 0x7c]
call fcn.00401850
mov dword [ebp - 4], 0x13
push ebx
lea eax, [ebp + 0xb]
push eax
push str.CmdLine
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov byte [ebp - 4], 0x14
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
push 7
mov ecx, edi
call fcn.004111cb
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x48]
call fcn.00401600
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xb0]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401600
push ebx
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401f10
mov dword [ebp - 4], 0x16
push 0x400
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040ac18
mov dword [ebp], eax
mov byte [ebp - 4], 0x17
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f536
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x18
mov eax, dword [ebp]
mov ecx, dword [eax]
mov byte [eax + 4], bl
call fcn.00407812
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1c], 8
mov eax, dword [eax]
jb 0x412bbb
mov ecx, dword [ecx + 8]
jmp 0x412bbe
add ecx, 8
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x7c]
call fcn.00401660
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xbc]
call fcn.0040a4ef
push 0
lea eax, [ebp + 0x40]
push eax
push 7
mov ecx, edi
call fcn.0041115b
cmp dword [edi + 0x24], 5
je 0x412c34
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f536
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x1c], 8
jb 0x412c17
mov eax, dword [eax + 8]
jmp 0x412c1a
add eax, 8
push ebx
push eax
push 0x4b0f9c
mov ecx, edi
call fcn.0043a7a6
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x7c]
call fcn.00401660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401660
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f98
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov dword [ebp - 4], 0x1a
push ebx
lea eax, [ebp + 0xb]
push eax
push str.BillboardType
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 0x1b
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401850
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x13
mov ecx, edi
call fcn.004111cb
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x7c]
call fcn.00401600
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x48]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401600
cmp dword [edi + 0x24], 0
jne 0x412d22
push ebx
lea eax, [ebp + 0xb]
push eax
push str.Mode
lea ecx, [ebp - 0x48]
call fcn.00401850
mov dword [ebp - 4], 0x1d
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401850
mov byte [ebp - 4], 0x1e
push 0xa
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0043a1a3
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x7c]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401600
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1ca0
lea ecx, [ebp - 0xb0]
call fcn.00401850
mov dword [ebp - 4], 0x1f
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DotNetVersion
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 0x20
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401850
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0xd
mov ecx, edi
call fcn.004111cb
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x7c]
call fcn.00401600
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x48]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401600
push 0xd
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0040f536
mov dword [ebp - 4], 0x22
cmp dword [ebp + 0x24], 3
jbe 0x412fa0
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f74
lea ecx, [ebp - 0x7c]
call fcn.00409071
mov byte [ebp - 4], 0x23
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004071e5
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x7c]
call fcn.00401660
cmp byte [ebp + 0xb], 0
je 0x412e0a
mov byte [edi + 0x78], bl
jmp 0x412f4a
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f6c
lea ecx, [ebp - 0x48]
call fcn.00409071
mov byte [ebp - 4], 0x24
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], ebx
call fcn.004071e5
test eax, eax
je 0x412e6b
push ebx
lea eax, [ebp + 0xb]
push eax
push str.v1.1
lea ecx, [ebp - 0x7c]
call fcn.00409071
mov dword [ebp - 4], 0x25
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], 3
call fcn.004071e5
mov byte [ebp + 0xb], 0
test eax, eax
jne 0x412e6e
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 0x24
test byte [ebp + 4], 2
je 0x412e87
and dword [ebp + 4], 0xfffffffd
lea ecx, [ebp - 0x7c]
call fcn.00401660
mov dword [ebp - 4], 0x22
test byte [ebp + 4], bl
je 0x412e9f
and dword [ebp + 4], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.00401660
cmp byte [ebp + 0xb], 0
je 0x412ead
mov byte [edi + 0x79], bl
jmp 0x412f4a
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f58
lea ecx, [ebp - 0x48]
call fcn.00409071
mov byte [ebp - 4], 0x26
or dword [ebp + 4], 4
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
call fcn.004071e5
test eax, eax
je 0x412f0c
push ebx
lea eax, [ebp + 0xb]
push eax
push str.v2.0
lea ecx, [ebp - 0x7c]
call fcn.00409071
mov dword [ebp - 4], 0x27
or dword [ebp + 4], 8
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004071e5
mov byte [ebp + 0xb], 0
test eax, eax
jne 0x412f0f
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 0x26
test byte [ebp + 4], 8
je 0x412f28
and dword [ebp + 4], 0xfffffff7
lea ecx, [ebp - 0x7c]
call fcn.00401660
mov dword [ebp - 4], 0x22
test byte [ebp + 4], 4
je 0x412f41
and dword [ebp + 4], 0xfffffffb
lea ecx, [ebp - 0x48]
call fcn.00401660
cmp byte [ebp + 0xb], 0
je 0x412f4a
mov byte [edi + 0x7a], bl
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DotNetSPRequired
lea ecx, [ebp - 0x48]
call fcn.00401850
mov byte [ebp - 4], 0x28
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401850
mov byte [ebp - 4], 0x29
push 0xa
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0043a1a3
mov dword [edi + 0x7c], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x7c]
call fcn.00401600
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x48]
call fcn.00401600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401660
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00467491
add ebp, 0x78
leave
ret