Function at 0x4125df
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, 0x4a119e
call fcn.00466e90
and dword [ebp + 4], 0
mov dword [ebp], ecx
call fcn.004056e6
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.00401890
and dword [ebp - 4], 0
cmp dword [eax + 0x1c], 8
jb 0x412633
mov eax, dword [eax + 8]
jmp 0x412636
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.004113cc
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401640
push esi
lea ecx, [edi + 0x28]
call fcn.0040c46d
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1c70
lea ecx, [ebp - 0x48]
call fcn.00401890
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageName
lea ecx, [ebp - 0xb0]
call fcn.00401890
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.00401890
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.0041119d
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x40]
call fcn.00401640
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xb0]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401640
push 5
mov ecx, edi
call fcn.0040eda6
test al, al
jne 0x412755
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageName
lea ecx, [ebp - 0x7c]
call fcn.00401890
mov dword [ebp - 4], 4
cmp dword [eax + 0x1c], 8
jb 0x41271f
mov eax, dword [eax + 8]
jmp 0x412722
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.004113cc
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401640
xor eax, eax
jmp 0x412f16
mov ecx, dword [ebp]
call fcn.0041145e
test al, al
jne 0x412781
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.004113cc
pop ecx
pop ecx
jmp 0x41274e
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DiskSpace
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov dword [ebp - 4], 5
push ebx
lea eax, [ebp + 0xb]
push eax
push str.Info
lea ecx, [ebp - 0x48]
call fcn.00401890
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.00439e66
mov dword [edi + 0x6c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401640
push ebx
lea eax, [ebp + 0xb]
push eax
push str.OnUpgrade
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov dword [ebp - 4], 7
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401890
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.00439e66
mov dword [ebp], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401640
cmp dword [ebp], ebx
jne 0x412879
mov eax, dword [edi + 0x294]
cmp byte [eax + 1], 0
jne 0x412866
cmp byte [eax + 2], 0
jne 0x412866
mov eax, ebx
jmp 0x412868
xor eax, eax
test al, al
sete al
xor ecx, ecx
test al, al
setne cl
mov dword [edi + 0x64], ecx
jmp 0x412886
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 0x4c1c70
lea ecx, [ebp + 0x40]
call fcn.00401890
mov dword [ebp - 4], 9
push ebx
lea eax, [ebp + 0xb]
push eax
push str.ProductCode
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov byte [ebp - 4], 0xa
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401890
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.0041119d
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
call fcn.00401640
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb0]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401640
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1c70
lea ecx, [ebp + 0x40]
call fcn.00401890
mov dword [ebp - 4], 0xc
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageCode
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov byte [ebp - 4], 0xd
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401890
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.0041119d
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
call fcn.00401640
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xb0]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401640
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1c70
lea ecx, [ebp + 0x40]
call fcn.00401890
mov dword [ebp - 4], 0xf
push ebx
lea eax, [ebp + 0xb]
push eax
push str.ProductVersion
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov byte [ebp - 4], 0x10
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401890
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.0041119d
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.00401640
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb0]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401640
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f640
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.004016a0
cmp byte [ebp + 0xb], 0
je 0x412ba8
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1c70
lea ecx, [ebp - 0x7c]
call fcn.00401890
mov dword [ebp - 4], 0x13
push ebx
lea eax, [ebp + 0xb]
push eax
push str.CmdLine
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov byte [ebp - 4], 0x14
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401890
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.0041119d
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x48]
call fcn.00401640
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xb0]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401640
push ebx
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401f50
mov dword [ebp - 4], 0x16
push 0x400
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040adc6
mov dword [ebp], eax
mov byte [ebp - 4], 0x17
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f640
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.00407e29
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1c], 8
mov eax, dword [eax]
jb 0x412b23
mov ecx, dword [ecx + 8]
jmp 0x412b26
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.004016a0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xbc]
call fcn.0040aa24
push 0
lea eax, [ebp + 0x40]
push eax
push 7
mov ecx, edi
call fcn.0041112d
cmp dword [edi + 0x24], 5
je 0x412b9c
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f640
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x1c], 8
jb 0x412b7f
mov eax, dword [eax + 8]
jmp 0x412b82
add eax, 8
push ebx
push eax
push 0x4b0f8c
mov ecx, edi
call fcn.0043a58f
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x7c]
call fcn.004016a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.004016a0
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f88
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov dword [ebp - 4], 0x1a
push ebx
lea eax, [ebp + 0xb]
push eax
push str.BillboardType
lea ecx, [ebp - 0x48]
call fcn.00401890
mov byte [ebp - 4], 0x1b
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401890
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.0041119d
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x7c]
call fcn.00401640
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x48]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401640
cmp dword [edi + 0x24], 0
jne 0x412c8a
push ebx
lea eax, [ebp + 0xb]
push eax
push str.Mode
lea ecx, [ebp - 0x48]
call fcn.00401890
mov dword [ebp - 4], 0x1d
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401890
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.00439e66
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x7c]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401640
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4c1c70
lea ecx, [ebp - 0xb0]
call fcn.00401890
mov dword [ebp - 4], 0x1f
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DotNetVersion
lea ecx, [ebp - 0x48]
call fcn.00401890
mov byte [ebp - 4], 0x20
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401890
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.0041119d
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x7c]
call fcn.00401640
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x48]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401640
push 0xd
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0040f640
mov dword [ebp - 4], 0x22
cmp dword [ebp + 0x24], 3
jbe 0x412f08
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f64
lea ecx, [ebp - 0x7c]
call fcn.0040921c
mov byte [ebp - 4], 0x23
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004071c9
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x7c]
call fcn.004016a0
cmp byte [ebp + 0xb], 0
je 0x412d72
mov byte [edi + 0x78], bl
jmp 0x412eb2
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f5c
lea ecx, [ebp - 0x48]
call fcn.0040921c
mov byte [ebp - 4], 0x24
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], ebx
call fcn.004071c9
test eax, eax
je 0x412dd3
push ebx
lea eax, [ebp + 0xb]
push eax
push str.v1.1
lea ecx, [ebp - 0x7c]
call fcn.0040921c
mov dword [ebp - 4], 0x25
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], 3
call fcn.004071c9
mov byte [ebp + 0xb], 0
test eax, eax
jne 0x412dd6
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 0x24
test byte [ebp + 4], 2
je 0x412def
and dword [ebp + 4], 0xfffffffd
lea ecx, [ebp - 0x7c]
call fcn.004016a0
mov dword [ebp - 4], 0x22
test byte [ebp + 4], bl
je 0x412e07
and dword [ebp + 4], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.004016a0
cmp byte [ebp + 0xb], 0
je 0x412e15
mov byte [edi + 0x79], bl
jmp 0x412eb2
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4b0f48
lea ecx, [ebp - 0x48]
call fcn.0040921c
mov byte [ebp - 4], 0x26
or dword [ebp + 4], 4
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
call fcn.004071c9
test eax, eax
je 0x412e74
push ebx
lea eax, [ebp + 0xb]
push eax
push str.v2.0
lea ecx, [ebp - 0x7c]
call fcn.0040921c
mov dword [ebp - 4], 0x27
or dword [ebp + 4], 8
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004071c9
mov byte [ebp + 0xb], 0
test eax, eax
jne 0x412e77
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 0x26
test byte [ebp + 4], 8
je 0x412e90
and dword [ebp + 4], 0xfffffff7
lea ecx, [ebp - 0x7c]
call fcn.004016a0
mov dword [ebp - 4], 0x22
test byte [ebp + 4], 4
je 0x412ea9
and dword [ebp + 4], 0xfffffffb
lea ecx, [ebp - 0x48]
call fcn.004016a0
cmp byte [ebp + 0xb], 0
je 0x412eb2
mov byte [edi + 0x7a], bl
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DotNetSPRequired
lea ecx, [ebp - 0x48]
call fcn.00401890
mov byte [ebp - 4], 0x28
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401890
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.00439e66
mov dword [edi + 0x7c], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x7c]
call fcn.00401640
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x48]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004016a0
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.00466e81
add ebp, 0x78
leave
ret