Function at 0x40f9f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cf43
mov eax, dword fs:[0]
push eax
sub esp, 0xca8
mov eax, dword [0x451430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push str.General_action__x_n
mov dword [ebp - 0xc80], eax
mov byte [ebp - 0xc65], 1
mov byte [ebp - 0xc66], 0
call fcn.0040c2f0
add esp, 8
cmp esi, 4
jne 0x40fa52
mov al, 1
jmp 0x4106cd
cmp esi, 0x40
je 0x40fa4b
cmp esi, 0x80
je 0x40fa4b
cmp esi, 0x2000
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x410216
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax]
lea edx, [ebp - 0xc70]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
test eax, eax
jl 0x410216
cmp word [ebp - 0xc70], 0xffff
jne 0x410216
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax]
lea edx, [ebp - 0xc6c]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x4101e9
cmp dword [ebp - 0xc6c], 0
je 0x4101e9
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc6c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc7c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x4101fb
mov eax, dword [ebp - 0xc7c]
test eax, eax
je 0x4101fb
mov ecx, dword [eax]
lea edx, [ebp - 0xcb0]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x4101fb
cmp dword [ebp - 0xcb0], 1
jne 0x40fac9
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc78]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
xor esi, esi
cmp eax, esi
jl 0x4101bf
mov ecx, dword [ebp - 0xc78]
push str.Version
push ecx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x40fc32
cmp ebx, 8
jne 0x40fc32
push 0x19
lea edx, [ebp - 0x44]
push edx
mov word [ebp - 0x44], si
mov word [ebp - 0x78], si
mov word [ebp - 0xac], si
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str._PACKAGENUMBER_
call esi
push 0x19
lea eax, [ebp - 0x78]
push eax
push str._BUILDNUMBER_
call esi
push 0x19
lea ecx, [ebp - 0xac]
push ecx
push str._VERSION_
call esi
lea edx, [ebp - 0xac]
push edx
call fcn.00420840
add esp, 4
test eax, eax
je 0x40fc32
lea eax, [ebp - 0x78]
push eax
call fcn.00420840
add esp, 4
test eax, eax
je 0x40fc32
lea ecx, [ebp - 0x44]
push ecx
call fcn.00420840
add esp, 4
test eax, eax
je 0x40fc32
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0xac]
push ecx
push str._s._s._s
call fcn.00422c00
mov esi, eax
push esi
push str.package_version_is__S_n
call fcn.0040c2f0
add esp, 0x18
push esi
lea ecx, [ebp - 0xc84]
call fcn.0040c130
mov eax, dword [ebp - 0xc7c]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x6c]
mov dword [ebp - 4], 0
call eax
push esi
call fcn.00420af0
mov ecx, dword [ebp - 0xc84]
add esp, 4
push ecx
mov dword [ebp - 4], 0xffffffff
call edi
mov edx, dword [ebp - 0xc78]
push str.ProductId
push edx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x40fce1
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [eax]
lea edx, [ebp - 0xca4]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
lea ecx, [ebp - 0xca4]
push ecx
lea ecx, [ebp - 0xc88]
call fcn.0040c150
mov edx, dword [ebp - 0xca4]
push edx
mov dword [ebp - 4], 1
call edi
cmp dword [0x452518], 0
mov esi, dword [ebp - 0xc88]
jne 0x40fca2
push esi
call fcn.00420820
add esp, 4
mov dword [0x452518], eax
cmp ebx, 2
jne 0x40fcce
mov eax, dword [0x452540]
push 0
push esi
push eax
call fcn.00406130
movzx ecx, al
push ecx
push str.ProductId_retval__u_n
mov byte [ebp - 0xc65], al
call fcn.0040c2f0
add esp, 8
jmp 0x40fcd7
cmp ebx, 0x20
je 0x4101d1
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov edx, dword [ebp - 0xc78]
push str.CorePath
push edx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x40fdee
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [eax]
lea edx, [ebp - 0xca0]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov ecx, dword [ebp - 0xca0]
push ecx
lea ecx, [ebp - 0xcb4]
call fcn.0040c130
mov edx, dword [ebp - 0xca0]
push edx
mov dword [ebp - 4], 2
call edi
cmp ebx, 8
mov esi, dword [ebp - 0xcb4]
je 0x40fd67
cmp ebx, 0x100
je 0x40fd4f
push esi
push 0
call fcn.00407050
push 0x12c
lea eax, [ebp - 0xa0c]
push eax
push 0
push 0
call fcn.00424930
add esp, 0x10
test bl, 1
je 0x40fd94
mov ecx, dword [0x452540]
push ecx
lea edx, [ebp - 0xa0c]
push edx
call fcn.00408cf0
mov byte [ebp - 0xc65], al
lea eax, [ebp - 0xa0c]
push eax
call fcn.00426400
add esp, 4
cmp ebx, 2
jne 0x40fdcf
mov ecx, dword [0x452540]
push ecx
lea edx, [ebp - 0xa0c]
push edx
call fcn.00408d20
push 1
lea eax, [ebp - 0xa0c]
push eax
call fcn.00407200
test eax, eax
jne 0x40fdcf
push 0x452539
lea ecx, [ebp - 0xa0c]
push ecx
call fcn.00407ec0
movzx edx, byte [ebp - 0xc65]
push edx
push str.CorePath_retval__u_n
call fcn.0040c2f0
add esp, 8
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, dword [ebp - 0xc78]
push str.CorePath_x86
push eax
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x40ff00
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc9c]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov ecx, dword [ebp - 0xc9c]
push ecx
lea ecx, [ebp - 0xc98]
call fcn.0040c130
mov edx, dword [ebp - 0xc9c]
push edx
mov dword [ebp - 4], 3
call edi
cmp ebx, 8
mov esi, dword [ebp - 0xc98]
je 0x40fe79
cmp ebx, 0x100
je 0x40fe5c
push esi
push 1
call fcn.00407050
mov ecx, dword [0x452548]
push 0x12c
lea eax, [ebp - 0x7b4]
push eax
push ecx
push 0
call fcn.00424930
add esp, 0x10
test bl, 1
je 0x40fea6
mov edx, dword [0x452540]
push edx
lea eax, [ebp - 0x7b4]
push eax
call fcn.00408cf0
lea ecx, [ebp - 0x7b4]
push ecx
mov byte [ebp - 0xc65], al
call fcn.00426400
add esp, 4
cmp ebx, 2
jne 0x40fee1
mov edx, dword [0x452540]
push edx
lea eax, [ebp - 0x7b4]
push eax
call fcn.00408d20
push 1
lea ecx, [ebp - 0x7b4]
push ecx
call fcn.00407200
test eax, eax
jne 0x40fee1
push 0x452539
lea edx, [ebp - 0x7b4]
push edx
call fcn.00407ec0
movzx eax, byte [ebp - 0xc65]
push eax
push str.CorePath_X86_retval__u_n
call fcn.0040c2f0
add esp, 8
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov ecx, dword [ebp - 0xc78]
push str.ProductPath
push ecx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x410011
mov eax, dword [ebp - 0xc7c]
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [ebp - 0xcac]
push ecx
push eax
call edx
mov eax, dword [ebp - 0xcac]
push eax
lea ecx, [ebp - 0xc94]
call fcn.0040c130
mov ecx, dword [ebp - 0xcac]
push ecx
mov dword [ebp - 4], 4
call edi
mov eax, dword [0x452544]
test eax, eax
mov esi, dword [ebp - 0xc94]
jne 0x40ff70
push esi
call fcn.00420820
add esp, 4
mov dword [0x452544], eax
cmp ebx, 8
je 0x40ff8c
push 0x12c
lea edx, [ebp - 0x55c]
push edx
push eax
push 0
call fcn.00424930
add esp, 0x10
test bl, 1
je 0x40ffb8
mov eax, dword [0x452540]
push eax
lea ecx, [ebp - 0x55c]
push ecx
call fcn.00408cf0
lea edx, [ebp - 0x55c]
push edx
mov byte [ebp - 0xc65], al
call fcn.00426400
add esp, 4
cmp ebx, 2
jne 0x40fff2
mov eax, dword [0x452540]
push eax
lea ecx, [ebp - 0x55c]
push ecx
call fcn.00408d20
push 1
lea edx, [ebp - 0x55c]
push edx
call fcn.00407200
test eax, eax
jne 0x40fff2
push 0x452539
lea eax, [ebp - 0x55c]
push eax
call fcn.00407ec0
movzx ecx, byte [ebp - 0xc65]
push ecx
push str.ProductPath_retval__u_n
call fcn.0040c2f0
add esp, 8
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov edx, dword [ebp - 0xc78]
push str.ProductPath_x86
push edx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x41013b
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [eax]
lea edx, [ebp - 0xca8]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov ecx, dword [ebp - 0xca8]
push ecx
lea ecx, [ebp - 0xc8c]
call fcn.0040c130
mov edx, dword [ebp - 0xca8]
push edx
mov dword [ebp - 4], 5
call edi
mov eax, dword [0x452548]
test eax, eax
mov esi, dword [ebp - 0xc8c]
jne 0x410081
push esi
call fcn.00420820
add esp, 4
mov dword [0x452548], eax
cmp ebx, 8
je 0x41009d
push 0x12c
lea ecx, [ebp - 0x304]
push ecx
push eax
push 1
call fcn.00424930
add esp, 0x10
test bl, 1
je 0x4100e2
mov edx, dword [0x452540]
push edx
lea eax, [ebp - 0x304]
push eax
call fcn.00408cf0
test al, al
mov byte [ebp - 0xc65], al
jne 0x4100d3
lea ecx, [ebp - 0x304]
push ecx
push str.Failed_to_add_reference_on__S_n
call fcn.0040c2f0
add esp, 8
lea edx, [ebp - 0x304]
push edx
call fcn.00426400
add esp, 4
cmp ebx, 2
jne 0x41011c
mov eax, dword [0x452540]
push eax
lea ecx, [ebp - 0x304]
push ecx
call fcn.00408d20
push 1
lea edx, [ebp - 0x304]
push edx
call fcn.00407200
test eax, eax
jne 0x41011c
push 0x452539
lea eax, [ebp - 0x304]
push eax
call fcn.00407ec0
movzx ecx, byte [ebp - 0xc65]
push ecx
push str.ProductPath_X86_retval__u_n
call fcn.0040c2f0
add esp, 8
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov edx, dword [ebp - 0xc78]
push str.SourcePath_x86
push edx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x4101b1
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc74]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov ecx, dword [ebp - 0xc74]
push ecx
lea ecx, [ebp - 0xc90]
call fcn.0040c130
mov edx, dword [ebp - 0xc74]
push edx
mov dword [ebp - 4], 6
call edi
cmp dword [0x45254c], 0
mov esi, dword [ebp - 0xc90]
jne 0x4101a7
push esi
call fcn.00420820
add esp, 4
mov dword [0x45254c], eax
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, dword [ebp - 0xc78]
push eax
call edi
jmp 0x40fac9
push str.Failed_to_get_child_elements_name__n
call fcn.0040c2f0
add esp, 4
jmp 0x4106b4
mov ecx, dword [ebp - 0xc78]
push ecx
call edi
push esi
mov dword [ebp - 4], 0xffffffff
call edi
jmp 0x4106b4
push str.Failed_to_get_child_element_n
call fcn.0040c2f0
add esp, 4
jmp 0x4106b4
cmp byte [ebp - 0xc65], 0
jne 0x410216
push str.General_pre_core_actions_failed_n
call fcn.0040c2f0
add esp, 4
jmp 0x4106b4
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x100
je 0x41022f
test bl, 1
jne 0x41022f
cmp ebx, 2
jne 0x41039e
mov esi, dword [ebp - 0xc80]
mov edx, dword [esi]
mov ecx, dword [edx + 0x58]
lea eax, [ebp - 0xc70]
push eax
push esi
call ecx
test eax, eax
jl 0x410383
cmp word [ebp - 0xc70], 0xffff
jne 0x410383
mov edx, dword [esi]
mov ecx, dword [edx + 0x30]
lea eax, [ebp - 0xc6c]
push eax
push esi
call ecx
test eax, eax
jl 0x4101e9
cmp dword [ebp - 0xc6c], 0
je 0x4101e9
mov ebx, 7
mov eax, dword [ebp - 0xc6c]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 0xc74]
push ecx
push eax
call edx
test eax, eax
jl 0x410380
mov eax, dword [ebp - 0xc74]
test eax, eax
je 0x410380
mov ecx, dword [eax]
lea edx, [ebp - 0xc90]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x410380
cmp dword [ebp - 0xc90], 1
jne 0x410283
mov eax, dword [ebp - 0xc74]
mov ecx, dword [eax]
lea edx, [ebp - 0xc84]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x4101bf
mov ecx, dword [ebp - 0xc84]
push str.Version
push ecx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x410372
cmp dword [ebp + 0xc], 2
jne 0x410323
mov edx, dword [0x452540]
push edx
call fcn.00409000
mov ecx, dword [ebp - 0xc84]
push ecx
call edi
jmp 0x410283
mov eax, dword [ebp - 0xc74]
mov ecx, dword [eax]
lea edx, [ebp - 0xc88]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
lea ecx, [ebp - 0xc88]
push ecx
lea ecx, [ebp - 0xc8c]
call fcn.0040c150
mov edx, dword [ebp - 0xc88]
push edx
mov dword [ebp - 4], ebx
call edi
mov esi, dword [ebp - 0xc8c]
mov eax, dword [0x452540]
push esi
push eax
call fcn.00408d50
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov ecx, dword [ebp - 0xc84]
push ecx
call edi
jmp 0x410283
mov ebx, dword [ebp + 0xc]
cmp byte [ebp - 0xc65], 0
jne 0x41039e
push str.General_version_actions_failed_n
call fcn.0040c2f0
add esp, 4
jmp 0x4106b4
cmp ebx, 0x100
je 0x4106b4
mov eax, dword [ebp + 0xc]
mov ebx, eax
and ebx, 1
jne 0x4103d0
cmp eax, 8
je 0x4103d0
cmp eax, 0x2000
je 0x4103d0
cmp eax, 0x10
je 0x4103d0
cmp eax, 0x800
jne 0x4104e5
mov esi, dword [ebp - 0xc80]
mov edx, dword [esi]
mov ecx, dword [edx + 0x58]
lea eax, [ebp - 0xc70]
push eax
push esi
call ecx
test eax, eax
jl 0x4104e5
cmp word [ebp - 0xc70], 0xffff
jne 0x4104e5
mov edx, dword [esi]
mov ecx, dword [edx + 0x30]
lea eax, [ebp - 0xc6c]
push eax
push esi
call ecx
test eax, eax
jl 0x4101e9
cmp dword [ebp - 0xc6c], 0
je 0x4101e9
mov eax, dword [ebp - 0xc6c]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 0xc84]
push ecx
push eax
call edx
test eax, eax
jl 0x4104e5
mov eax, dword [ebp - 0xc84]
test eax, eax
je 0x4104e5
mov ecx, dword [eax]
lea edx, [ebp - 0xc90]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x4104e5
cmp dword [ebp - 0xc90], 1
jne 0x41041f
mov eax, dword [ebp - 0xc84]
mov ecx, dword [eax]
lea edx, [ebp - 0xc74]
push edx
mov esi, eax
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x4101bf
mov ecx, dword [ebp - 0xc74]
push str.Base
push ecx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x4104bc
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0040e070
test al, al
mov byte [ebp - 0xc65], al
je 0x4104ca
mov byte [ebp - 0xc66], 1
mov eax, dword [ebp - 0xc74]
push eax
call edi
jmp 0x41041f
push str.Install_failed_n
call fcn.0040c2f0
mov ecx, dword [ebp - 0xc74]
add esp, 4
push ecx
call edi
jmp 0x4106b4
mov eax, dword [ebp + 0xc]
cmp eax, 8
jne 0x4104f8
mov al, byte [ebp - 0xc65]
jmp 0x4106cd
cmp eax, 0x2000
je 0x4104ed
cmp eax, 0x10
je 0x4104ed
cmp eax, 0x800
je 0x4104ed
test ebx, ebx
je 0x410655
mov eax, dword [ebp - 0xc80]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
lea ecx, [ebp - 0xc6c]
push ecx
push eax
call edx
test eax, eax
jl 0x410646
cmp dword [ebp - 0xc6c], 0
je 0x410646
mov eax, dword [ebp - 0xc6c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc80]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x410655
mov eax, dword [ebp - 0xc80]
test eax, eax
je 0x410655
mov ecx, dword [eax]
lea edx, [ebp - 0xc8c]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x410655
cmp dword [ebp - 0xc8c], 1
jne 0x41053d
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax]
lea edx, [ebp - 0xc88]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x410637
mov ecx, dword [ebp - 0xc88]
push str.ProductId
push ecx
call fcn.0042ddef
add esp, 8
test eax, eax
jne 0x410629
cmp byte [ebp - 0xc66], al
je 0x410629
mov eax, dword [ebp - 0xc80]
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [ebp - 0xc94]
push ecx
push eax
call edx
lea eax, [ebp - 0xc94]
push eax
lea ecx, [ebp - 0xc98]
call fcn.0040c150
mov esi, dword [ebp - 0xc98]
mov ecx, dword [0x452540]
push 1
push esi
push ecx
mov dword [ebp - 4], 8
call fcn.00406130
movzx edx, al
push edx
push str.ProductId_retval__u_n
mov byte [ebp - 0xc65], al
call fcn.0040c2f0
add esp, 8
push esi
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, dword [ebp - 0xc88]
push eax
call edi
jmp 0x41053d
push str.Failed_to_get_child_elements_name_n
call fcn.0040c2f0
add esp, 4
jmp 0x4106b4
push str.Failed_to_get_child_nodes_n
call fcn.0040c2f0
add esp, 4
jmp 0x4106b4
cmp dword [ebp + 0xc], 2
jne 0x4106b4
push 0x12c
lea ecx, [ebp - 0xc64]
push ecx
push 0
push 0
call fcn.00424930
add esp, 0x10
push 1
lea edx, [ebp - 0xc64]
push edx
call fcn.00407200
test eax, eax
jne 0x4106b4
push 0x12c
lea eax, [ebp - 0xc64]
push eax
push 0
push 1
call fcn.00424930
add esp, 0x10
push 1
lea ecx, [ebp - 0xc64]
push ecx
call fcn.00407200
test eax, eax
jne 0x4106b4
call fcn.00407180
mov bl, byte [ebp - 0xc65]
movzx edx, bl
push edx
push str.parseGeneral_returning__u_n
call fcn.0040c2f0
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d845
mov esp, ebp
pop ebp
ret 8