Function at 0x4098e0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4980af
call fcn.0047d43c
sub esp, 0x13c
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401166
mov esi, eax
lea eax, [ebp - 0xf]
push 1
mov edi, 0x4c82b0
push eax
push edi
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x14], esi
call fcn.00401884
mov eax, dword [eax + 8]
and dword [ebp - 4], 0
test eax, eax
mov ebx, 0x4a368c
je 0x409929
mov ebx, eax
lea eax, [ebp - 0xe]
push 1
push eax
push str.C:CodeBasesisdev_srcRuntimeMSISharedSetupdiskaction.cpp
lea ecx, [ebp - 0xc4]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
test eax, eax
jne 0x40994f
mov eax, 0x4a368c
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 0x20]
push str.Reading_setup.ini_from__s
push eax
mov dword [ebp - 0x1c], 0xd6
call fcn.0040a47f
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00401093
push edi
lea ecx, [esi + 0x20]
call fcn.0040293e
lea eax, [ebp - 0xe]
push 0
mov ebx, 0x4a3670
mov edi, 0x4a3668
push eax
push 0x4c6e10
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x54], edi
call fcn.004011a9
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36ec]
mov dword [ebp - 4], 2
call fcn.00401884
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x48]
push dword [0x4a36e4]
mov byte [ebp - 4], 3
call fcn.00401884
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x48]
push eax
push 5
mov byte [ebp - 4], 4
call fcn.0040a412
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00401093
mov eax, dword [esi + 4]
add esi, 4
push 5
mov ecx, esi
call dword [eax + 0x28]
test al, al
jne 0x409acc
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36ec]
call fcn.00401884
mov eax, dword [eax + 8]
mov dword [ebp - 4], 5
test eax, eax
mov esi, 0x4a368c
je 0x409a6f
mov esi, eax
lea eax, [ebp - 0xe]
push 1
push eax
push str.C:CodeBasesisdev_srcRuntimeMSISharedSetupdiskaction.cpp
lea ecx, [ebp - 0xc4]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x409a95
mov eax, 0x4a368c
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 0x20]
push str.Failed_to_read_setup_package:__s_name_from_Setup.ini
push eax
mov dword [ebp - 0x1c], 0xdf
call fcn.0040a47f
add esp, 0xc
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
jmp 0x409b25
mov ecx, dword [ebp - 0x18]
call fcn.0040a546
test al, al
push 1
jne 0x409b31
lea eax, [ebp - 0xd]
lea ecx, [ebp - 0xc4]
push eax
push str.C:CodeBasesisdev_srcRuntimeMSISharedSetupdiskaction.cpp
call fcn.00401884
mov eax, dword [eax + 8]
mov dword [ebp - 4], 7
test eax, eax
jne 0x409b01
mov eax, 0x4a368c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push str.Failed_to_get_MSI_Engine_Version
push eax
mov dword [ebp - 0x1c], 0xe7
call fcn.0040a47f
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.00401093
xor eax, eax
jmp 0x40a403
lea eax, [ebp - 0xd]
lea ecx, [ebp - 0x48]
push eax
push dword [0x4a36f0]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36f4]
mov dword [ebp - 4], 8
call fcn.00401884
mov ecx, dword [ebp - 0x14]
push 0xa
lea eax, [ebp - 0x48]
push 0x1f40
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 9
call fcn.00435c72
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
mov dword [ecx + 0x48], eax
lea ecx, [ebp - 0x9c]
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401093
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x48]
push dword [0x4a3700]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36e4]
mov dword [ebp - 4], 0xa
call fcn.00401884
mov ecx, dword [ebp - 0x14]
push 0xa
lea eax, [ebp - 0x48]
push 1
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 0xb
call fcn.00435c72
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401093
push 1
pop edx
cmp dword [ebp - 0x18], edx
jne 0x409c42
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x16c]
cmp byte [eax + 1], 0
jne 0x409c2c
cmp byte [eax + 2], 0
jne 0x409c2c
mov eax, edx
jmp 0x409c2e
xor eax, eax
test al, al
sete al
test al, al
je 0x409c3c
mov dword [ecx + 0x40], edx
jmp 0x409c58
and dword [ecx + 0x40], 0
jmp 0x409c58
push 2
pop eax
cmp dword [ebp - 0x18], eax
jne 0x409c52
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x40], edx
jmp 0x409c58
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x40], eax
lea eax, [ebp - 0xd]
push 0
push eax
push 0x4c6e10
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x54], edi
call fcn.004011a9
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x48]
push dword [0x4a3708]
mov dword [ebp - 4], 0xc
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36e4]
mov byte [ebp - 4], 0xd
call fcn.00401884
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x9c]
push eax
push 1
mov byte [ebp - 4], 0xe
call fcn.0040a412
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xd
call fcn.00401093
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00401093
lea eax, [ebp - 0xd]
push 0
push eax
push 0x4c6e10
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x54], edi
call fcn.004011a9
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x48]
push dword [0x4a3704]
mov dword [ebp - 4], 0xf
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36e4]
mov byte [ebp - 4], 0x10
call fcn.00401884
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x9c]
push eax
push 2
mov byte [ebp - 4], 0x11
call fcn.0040a412
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x9c]
call fcn.00401093
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00401093
lea eax, [ebp - 0xd]
push 0
push eax
push 0x4c6e10
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x54], edi
call fcn.004011a9
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x48]
push dword [0x4a370c]
mov dword [ebp - 4], 0x12
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36e4]
mov byte [ebp - 4], 0x13
call fcn.00401884
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x9c]
push eax
push 3
mov byte [ebp - 4], 0x14
call fcn.0040a412
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x13
call fcn.00401093
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00401093
mov eax, dword [esi]
lea ecx, [ebp - 0xc4]
push 7
push ecx
mov ecx, esi
call dword [eax + 0x1c]
cmp dword [eax + 0xc], 0
lea ecx, [ebp - 0xc4]
sete byte [ebp - 0xf]
call fcn.00402438
cmp byte [ebp - 0xf], 0
je 0x409fd0
lea eax, [ebp - 0xd]
push 0
push eax
push 0x4c6e10
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], edi
call fcn.004011a9
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0xc4]
push dword [0x4a36f8]
mov dword [ebp - 4], 0x15
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36e4]
mov byte [ebp - 4], 0x16
call fcn.00401884
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x9c]
push eax
push 7
mov byte [ebp - 4], 0x17
call fcn.0040a412
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x16
call fcn.00401093
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x15
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401093
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0x4a36b8
mov dword [ebp - 0x54], 0x4a36b0
call fcn.00403cd9
lea eax, [ebp - 0x120]
push 0x400
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0x18
call fcn.00402f01
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0x19
call fcn.004042dd
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push 7
mov dword [ecx + 8], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
push 0x400
mov ecx, eax
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0x1a
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x114]
call fcn.00402438
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0x18
call fcn.00403013
mov eax, dword [esi]
lea ecx, [ebp - 0x74]
push 0
push ecx
push 7
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp eax, 5
je 0x409fc4
mov eax, dword [esi]
lea ecx, [ebp - 0x114]
push 7
push ecx
mov ecx, esi
call dword [eax + 0x1c]
push 1
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.004042dd
mov ecx, dword [ebp - 0x14]
push eax
push 0x4bb81c
call fcn.00435143
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x18
call fcn.00402438
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00402438
mov eax, 0x4bb818
mov dword [ebp - 0x48], ebx
mov ecx, eax
mov dword [ebp - 0x28], edi
test ecx, ecx
jne 0x409fe6
mov eax, 0x4c6e10
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004011a9
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a3710]
mov dword [ebp - 4], 0x1c
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0xc4]
push dword [0x4a36e4]
mov byte [ebp - 4], 0x1d
call fcn.00401884
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0x13
mov byte [ebp - 4], 0x1e
call fcn.0040a412
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x1d
call fcn.00401093
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x1c
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401093
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x40a0f9
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x9c]
push dword [0x4a36fc]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0xc4]
push dword [0x4a36e4]
mov dword [ebp - 4], 0x1f
call fcn.00401884
mov ecx, dword [ebp - 0x14]
push 0xa
lea eax, [ebp - 0x9c]
push 0
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 0x20
call fcn.00435c72
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1f
mov dword [ecx + 0x1c], eax
lea ecx, [ebp - 0xc4]
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00401093
mov dword [ebp - 0x48], ebx
xor ebx, ebx
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0xd]
push ebx
mov edi, 0x4c6e10
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.004011a9
lea eax, [ebp - 0xe]
push 1
push eax
push 0x4bb808
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], 0x21
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0xc4]
push dword [0x4a36e4]
mov byte [ebp - 4], 0x22
call fcn.00401884
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0xd
mov byte [ebp - 4], 0x23
call fcn.0040a412
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x22
call fcn.00401093
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x21
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401093
mov eax, dword [esi]
lea ecx, [ebp - 0xec]
push 0xd
push ecx
mov ecx, esi
call dword [eax + 0x1c]
cmp dword [ebp - 0xe0], 3
mov dword [ebp - 4], 0x24
jbe 0x40a3f1
mov eax, 0x4bb800
mov esi, 0x4a36b0
mov ecx, eax
mov dword [ebp - 0x48], 0x4a36b8
test ecx, ecx
mov dword [ebp - 0x28], esi
jne 0x40a1d6
mov eax, edi
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00404d89
lea eax, [ebp - 0x48]
push ebx
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x25
call fcn.00402e4a
mov ebx, eax
lea ecx, [ebp - 0x48]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 0x24
inc bl
call fcn.00402438
test bl, bl
je 0x40a21c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x54], 1
jmp 0x40a37f
mov eax, 0x4bb7f8
mov ebx, 0x4a36b8
mov ecx, eax
mov dword [ebp - 0x74], ebx
test ecx, ecx
mov dword [ebp - 0x54], esi
jne 0x40a234
mov eax, edi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00404d89
lea eax, [ebp - 0x74]
push 0
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x26
call fcn.00402e4a
test eax, eax
je 0x40a2ba
mov eax, str.v1.1
mov dword [ebp - 0x48], ebx
mov ecx, eax
mov dword [ebp - 0x28], esi
test ecx, ecx
jne 0x40a26f
mov eax, edi
lea ecx, [ebp - 0xe]
push 0
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00404d89
lea eax, [ebp - 0x48]
push 0
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x27
call fcn.00402e4a
mov ebx, eax
lea ecx, [ebp - 0x48]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 0x26
inc bl
call fcn.00402438
test bl, bl
jne 0x40a2b5
and byte [ebp - 0xf], bl
mov ebx, 0x4a36b8
jmp 0x40a2be
mov ebx, 0x4a36b8
mov byte [ebp - 0xf], 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x24
call fcn.00402438
cmp byte [ebp - 0xf], 0
je 0x40a2dc
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x55], 1
jmp 0x40a37f
mov eax, 0x4bb7e4
mov dword [ebp - 0x74], ebx
mov ecx, eax
mov dword [ebp - 0x54], esi
test ecx, ecx
jne 0x40a2ef
mov eax, edi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00404d89
lea eax, [ebp - 0x74]
push 0
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x28
call fcn.00402e4a
test eax, eax
je 0x40a366
mov eax, str.v2.0
mov dword [ebp - 0x48], ebx
mov ecx, eax
mov dword [ebp - 0x28], esi
test ecx, ecx
je 0x40a32a
mov edi, eax
lea eax, [ebp - 0xe]
push 0
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00404d89
lea eax, [ebp - 0x48]
push 0
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x29
call fcn.00402e4a
mov ebx, eax
lea ecx, [ebp - 0x48]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 0x28
inc bl
call fcn.00402438
test bl, bl
je 0x40a368
mov bl, 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x24
call fcn.00402438
test bl, bl
je 0x40a37f
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x56], 1
lea eax, [ebp - 0x49]
push 1
push eax
push str.DotNetSPRequired
lea ecx, [ebp - 0x114]
call fcn.00401884
lea eax, [ebp - 0x4a]
push 1
push eax
lea ecx, [ebp - 0x148]
push dword [0x4a36e4]
mov byte [ebp - 4], 0x2a
call fcn.00401884
mov esi, dword [ebp - 0x14]
push 0xa
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x148]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x2b
call fcn.00435c72
lea ecx, [ebp - 0x148]
mov dword [esi + 0x58], eax
mov byte [ebp - 4], 0x2a
call fcn.00401093
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x24
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.00402438
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret