Function at 0x4126bd
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x74
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0xb0
mov eax, 0x49e7c6
call fcn.004646d0
and dword [ebp + 4], 0
mov dword [ebp], ecx
call fcn.004057db
xor ebx, ebx
mov edi, eax
inc ebx
push ebx
lea eax, [ebp + 0xb]
push eax
mov esi, 0x4d9d28
push esi
lea ecx, [ebp - 0x7c]
call fcn.004018b0
and dword [ebp - 4], 0
cmp dword [eax + 0x1c], 8
jb 0x412711
mov eax, dword [eax + 8]
jmp 0x412714
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.004115dc
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401670
push esi
lea ecx, [edi + 0x28]
call fcn.0040c4ce
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4bde80
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageName
lea ecx, [ebp - 0xb0]
call fcn.004018b0
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.004018b0
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.00411211
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x40]
call fcn.00401670
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xb0]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401670
push 5
mov ecx, edi
call fcn.0040ef2e
test al, al
jne 0x412833
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageName
lea ecx, [ebp - 0x7c]
call fcn.004018b0
mov dword [ebp - 4], 4
cmp dword [eax + 0x1c], 8
jb 0x4127fd
mov eax, dword [eax + 8]
jmp 0x412800
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.004115dc
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401670
xor eax, eax
jmp 0x412ff4
mov ecx, dword [ebp]
call fcn.0041166e
test al, al
jne 0x41285f
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.004115dc
pop ecx
pop ecx
jmp 0x41282c
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DiskSpace
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov dword [ebp - 4], 5
push ebx
lea eax, [ebp + 0xb]
push eax
push str.Info
lea ecx, [ebp - 0x48]
call fcn.004018b0
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.00439d2c
mov dword [edi + 0x6c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401670
push ebx
lea eax, [ebp + 0xb]
push eax
push str.OnUpgrade
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov dword [ebp - 4], 7
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004018b0
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.00439d2c
mov dword [ebp], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401670
cmp dword [ebp], ebx
jne 0x412957
mov eax, dword [edi + 0x294]
cmp byte [eax + 1], 0
jne 0x412944
cmp byte [eax + 2], 0
jne 0x412944
mov eax, ebx
jmp 0x412946
xor eax, eax
test al, al
sete al
xor ecx, ecx
test al, al
setne cl
mov dword [edi + 0x64], ecx
jmp 0x412964
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 0x4bde80
lea ecx, [ebp + 0x40]
call fcn.004018b0
mov dword [ebp - 4], 9
push ebx
lea eax, [ebp + 0xb]
push eax
push str.ProductCode
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov byte [ebp - 4], 0xa
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004018b0
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.00411211
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
call fcn.00401670
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb0]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401670
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4bde80
lea ecx, [ebp + 0x40]
call fcn.004018b0
mov dword [ebp - 4], 0xc
push ebx
lea eax, [ebp + 0xb]
push eax
push str.PackageCode
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov byte [ebp - 4], 0xd
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004018b0
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.00411211
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
call fcn.00401670
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xb0]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401670
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4bde80
lea ecx, [ebp + 0x40]
call fcn.004018b0
mov dword [ebp - 4], 0xf
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4aca84
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov byte [ebp - 4], 0x10
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004018b0
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.00411211
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.00401670
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb0]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401670
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f5ac
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.004016d0
cmp byte [ebp + 0xb], 0
je 0x412c86
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4bde80
lea ecx, [ebp - 0x7c]
call fcn.004018b0
mov dword [ebp - 4], 0x13
push ebx
lea eax, [ebp + 0xb]
push eax
push str.CmdLine
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov byte [ebp - 4], 0x14
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004018b0
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.00411211
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x48]
call fcn.00401670
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xb0]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401670
push ebx
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401f90
mov dword [ebp - 4], 0x16
push 0x400
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040b2f1
mov dword [ebp], eax
mov byte [ebp - 4], 0x17
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f5ac
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.00407803
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1c], 8
mov eax, dword [eax]
jb 0x412c01
mov ecx, dword [ecx + 8]
jmp 0x412c04
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.004016d0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xbc]
call fcn.0040b14b
push 0
lea eax, [ebp + 0x40]
push eax
push 7
mov ecx, edi
call fcn.004111a1
cmp dword [edi + 0x24], 5
je 0x412c7a
push 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0040f5ac
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x1c], 8
jb 0x412c5d
mov eax, dword [eax + 8]
jmp 0x412c60
add eax, 8
push ebx
push eax
push 0x4ad154
mov ecx, edi
call fcn.0043a451
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x7c]
call fcn.004016d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.004016d0
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4ad150
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov dword [ebp - 4], 0x1a
push ebx
lea eax, [ebp + 0xb]
push eax
push str.BillboardType
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov byte [ebp - 4], 0x1b
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004018b0
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.00411211
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x7c]
call fcn.00401670
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x48]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401670
cmp dword [edi + 0x24], 0
jne 0x412d68
push ebx
lea eax, [ebp + 0xb]
push eax
push str.Mode
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov dword [ebp - 4], 0x1d
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004018b0
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.00439d2c
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x7c]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401670
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4bde80
lea ecx, [ebp - 0xb0]
call fcn.004018b0
mov dword [ebp - 4], 0x1f
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DotNetVersion
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov byte [ebp - 4], 0x20
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004018b0
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.00411211
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x7c]
call fcn.00401670
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x48]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00401670
push 0xd
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0040f5ac
mov dword [ebp - 4], 0x22
cmp dword [ebp + 0x24], 3
jbe 0x412fe6
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4ad12c
lea ecx, [ebp - 0x7c]
call fcn.004096ba
mov byte [ebp - 4], 0x23
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040757a
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x7c]
call fcn.004016d0
cmp byte [ebp + 0xb], 0
je 0x412e50
mov byte [edi + 0x78], bl
jmp 0x412f90
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4ad124
lea ecx, [ebp - 0x48]
call fcn.004096ba
mov byte [ebp - 4], 0x24
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], ebx
call fcn.0040757a
test eax, eax
je 0x412eb1
push ebx
lea eax, [ebp + 0xb]
push eax
push str.v1.1
lea ecx, [ebp - 0x7c]
call fcn.004096ba
mov dword [ebp - 4], 0x25
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], 3
call fcn.0040757a
mov byte [ebp + 0xb], 0
test eax, eax
jne 0x412eb4
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 0x24
test byte [ebp + 4], 2
je 0x412ecd
and dword [ebp + 4], 0xfffffffd
lea ecx, [ebp - 0x7c]
call fcn.004016d0
mov dword [ebp - 4], 0x22
test byte [ebp + 4], bl
je 0x412ee5
and dword [ebp + 4], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.004016d0
cmp byte [ebp + 0xb], 0
je 0x412ef3
mov byte [edi + 0x79], bl
jmp 0x412f90
push ebx
lea eax, [ebp + 0xb]
push eax
push 0x4ad110
lea ecx, [ebp - 0x48]
call fcn.004096ba
mov byte [ebp - 4], 0x26
or dword [ebp + 4], 4
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040757a
test eax, eax
je 0x412f52
push ebx
lea eax, [ebp + 0xb]
push eax
push str.v2.0
lea ecx, [ebp - 0x7c]
call fcn.004096ba
mov dword [ebp - 4], 0x27
or dword [ebp + 4], 8
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040757a
mov byte [ebp + 0xb], 0
test eax, eax
jne 0x412f55
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 0x26
test byte [ebp + 4], 8
je 0x412f6e
and dword [ebp + 4], 0xfffffff7
lea ecx, [ebp - 0x7c]
call fcn.004016d0
mov dword [ebp - 4], 0x22
test byte [ebp + 4], 4
je 0x412f87
and dword [ebp + 4], 0xfffffffb
lea ecx, [ebp - 0x48]
call fcn.004016d0
cmp byte [ebp + 0xb], 0
je 0x412f90
mov byte [edi + 0x7a], bl
push ebx
lea eax, [ebp + 0xb]
push eax
push str.DotNetSPRequired
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov byte [ebp - 4], 0x28
push ebx
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004018b0
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.00439d2c
mov dword [edi + 0x7c], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x7c]
call fcn.00401670
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x48]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004016d0
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.004646c1
add ebp, 0x78
leave
ret