Function at 0x41f2ea
Capabilities:
Query environment variable

Disassembly:
push 0x174
mov eax, 0x47f0f3
call fcn.004569c5
mov byte [ebp - 0x12d], dl
mov edi, ecx
mov dword [ebp - 0x154], edi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ecx
xor esi, esi
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x150], esi
call fcn.004362ad
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, 0x4c24dc
mov edx, 0x4c24e0
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xe8], eax
mov ecx, 0x4c24e4
mov dword [ebp - 0xdc], edx
mov eax, 0x4c24e8
mov dword [ebp - 0x70], edx
xor edx, edx
mov dword [ebp - 0x128], str.app
mov dword [ebp - 0x124], 0x4c2580
mov word [ebp - 0x120], 1
mov dword [ebp - 0x11c], str.dat
mov dword [ebp - 0x118], 0x4c2584
mov word [ebp - 0x114], 1
mov dword [ebp - 0x110], str.inf
mov dword [ebp - 0x10c], 0x4c2588
mov word [ebp - 0x108], 1
mov dword [ebp - 0x104], str.tmp
mov dword [ebp - 0x100], 0x4c24d4
mov word [ebp - 0xfc], 1
mov dword [ebp - 0xf8], str.sys
mov word [ebp - 0xf0], 1
mov dword [ebp - 0xec], str.sys32
mov word [ebp - 0xe4], 1
mov dword [ebp - 0xe0], str.sys64
mov word [ebp - 0xd8], 1
mov dword [ebp - 0xd4], str.drv
mov dword [ebp - 0xd0], ecx
mov word [ebp - 0xcc], 1
mov dword [ebp - 0xc8], str.upd
mov dword [ebp - 0xc4], eax
mov word [ebp - 0xc0], 1
mov dword [ebp - 0xbc], str._app_
mov dword [ebp - 0xb8], 0x4c2580
mov word [ebp - 0xb4], si
mov dword [ebp - 0xb0], str._dat_
mov dword [ebp - 0xac], 0x4c2584
mov word [ebp - 0xa8], si
mov dword [ebp - 0xa4], str._inf_
mov dword [ebp - 0xa0], 0x4c2588
mov word [ebp - 0x9c], si
mov dword [ebp - 0x98], str._tmp_
mov dword [ebp - 0x94], 0x4c24d4
mov word [ebp - 0x90], si
mov dword [ebp - 0x8c], str._sys_
mov dword [ebp - 0x88], 0x4c24dc
mov word [ebp - 0x84], si
mov dword [ebp - 0x80], str._sys32_
mov dword [ebp - 0x7c], 0x4c24dc
mov word [ebp - 0x78], si
mov dword [ebp - 0x74], str._sys64_
mov word [ebp - 0x6c], dx
mov dword [ebp - 0x68], str._drv_
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x60], dx
mov dword [ebp - 0x5c], str._upd_
mov dword [ebp - 0x58], eax
mov word [ebp - 0x54], dx
mov dword [ebp - 0x50], str.guid
mov dword [ebp - 0x4c], 0x4c25a0
mov word [ebp - 0x48], 0x101
mov dword [ebp - 0x44], str.midex
mov dword [ebp - 0x40], 0x4c25c4
mov word [ebp - 0x3c], 0x101
mov dword [ebp - 0x38], str.midexg
mov dword [ebp - 0x34], 0x4c25c8
mov word [ebp - 0x30], 0x101
mov dword [ebp - 0x2c], str.bld
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x28], 0x4c25f0
mov word [ebp - 0x24], 0x101
call fcn.0040aaed
mov byte [ebp - 4], 1
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x148], eax
test eax, eax
jne 0x41f57b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41fa61
push 2
push eax
call fcn.0046cd7a
mov dword [ebp - 0x15c], eax
pop ecx
pop ecx
test eax, eax
jne 0x41f597
push 8
pop esi
jmp 0x41fa61
push dword [ebp - 0x148]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41f5b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41fa55
push dword [ebp - 0x15c]
mov ecx, edi
call fcn.0040a676
push edi
lea ecx, [ebp - 0x12c]
call fcn.0040951e
lea ecx, [ebp - 0x12c]
call fcn.0040944e
push 0x16
pop eax
lea esi, [ebp - 0x124]
mov dword [ebp - 0x138], eax
cmp byte [esi + 5], 0
je 0x41f5fd
cmp byte [ebp - 0x12d], 0
jne 0x41f75b
push 0
push dword [esi - 4]
lea ecx, [ebp - 0x12c]
call fcn.0041b177
cmp eax, 0xffffffff
je 0x41f755
mov al, byte [esi + 4]
mov ecx, dword [esi]
mov byte [ebp - 0x141], al
test al, al
je 0x41f63a
push ecx
lea ecx, [ebp - 0x140]
call fcn.00409eae
mov byte [ebp - 4], 2
or ebx, 1
jmp 0x41f657
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0040bd08
mov dword [ebp - 4], 3
or ebx, 2
mov dword [ebp - 0x13c], ebx
mov ecx, edi
push dword [eax]
push dword [esi - 4]
call fcn.0041b2ae
push 2
pop eax
mov dword [ebp - 4], eax
test al, bl
je 0x41f68d
and ebx, 0xfffffffd
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x148]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test al, bl
je 0x41f6b1
and ebx, 0xfffffffe
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x140]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
cmp byte [ebp - 0x141], 0
mov ecx, dword [esi]
je 0x41f6d1
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00409eae
mov byte [ebp - 4], 6
or ebx, 4
jmp 0x41f6ee
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0040bd08
mov dword [ebp - 4], 7
or ebx, 8
mov dword [ebp - 0x13c], ebx
lea ecx, [ebp - 0x12c]
push dword [eax]
push dword [esi - 4]
call fcn.0041b2ae
mov dword [ebp - 4], 6
test bl, 8
je 0x41f72e
and ebx, 0xfffffff7
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x134]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov dword [ebp - 4], 1
test bl, 4
je 0x41f755
and ebx, 0xfffffffb
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14c]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov eax, dword [ebp - 0x138]
add esi, 0xc
sub eax, 1
mov dword [ebp - 0x138], eax
jne 0x41f5ea
mov esi, dword [ebp - 0x150]
mov ebx, dword [ebp - 0x154]
push 0
push str.cabdir:
lea ecx, [ebp - 0x12c]
call fcn.0041b177
mov edi, eax
cmp edi, 0xffffffff
je 0x41f796
push 0x7d
jmp 0x41f7b5
push 0
push str._cabdir:
lea ecx, [ebp - 0x12c]
call fcn.0041b177
mov edi, eax
cmp edi, 0xffffffff
je 0x41f9de
push 0x5d
cmp dword [ebp - 0x158], 0
pop esi
mov dword [ebp - 0x148], esi
je 0x41f9d9
lea eax, [edi + 1]
push eax
push 0x4acc90
lea ecx, [ebp - 0x12c]
call fcn.0041b177
mov dword [ebp - 0x154], eax
cmp eax, 0xffffffff
je 0x41f9d5
inc eax
lea ecx, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x150], eax
call fcn.0041cd95
mov esi, eax
cmp esi, 0xffffffff
je 0x41f9d5
mov ecx, esi
lea eax, [ebp - 0x138]
sub ecx, edi
inc ecx
push ecx
push edi
push eax
lea ecx, [ebp - 0x12c]
call fcn.00416c82
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x140]
sub esi, dword [ebp - 0x154]
lea ecx, [ebp - 0x12c]
dec esi
push esi
push dword [ebp - 0x150]
push eax
call fcn.00416c82
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x134]
call fcn.0040aaed
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x140]
call fcn.0041b0f9
mov ecx, eax
call fcn.004093ea
lea ecx, [ebp - 0x140]
call fcn.0040944e
mov ecx, dword [ebp - 0x140]
mov eax, dword [ecx - 0xc]
lea edx, [eax + eax]
lea eax, [ebp - 0x20]
push eax
call fcn.00420527
mov esi, eax
pop ecx
test esi, esi
jne 0x41f99a
lea eax, [ebp - 0x134]
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x20]
call fcn.00420559
mov esi, eax
pop ecx
test esi, esi
jne 0x41f974
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x14c]
lea edx, [edx + 4]
call fcn.0041b04e
pop ecx
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x134]
push eax
call fcn.0040951e
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x14c]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
push 0x7d
pop eax
cmp word [ebp - 0x148], ax
jne 0x41f90f
push 0x4ac674
lea ecx, [ebp - 0x134]
call fcn.0041cdf8
push dword [ebp - 0x134]
mov ecx, ebx
push dword [ebp - 0x138]
call fcn.0041b2ae
push dword [ebp - 0x134]
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x138]
call fcn.0041b2ae
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x134]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x140]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x138]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
jmp 0x41f779
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x134]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x140]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
jmp 0x41f9be
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x134]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x140]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x138]
add ecx, 0xfffffff0
call fcn.0040aacb
jmp 0x41fa55
push 0xb
jmp 0x41f9db
push 0x57
pop esi
jmp 0x41fa55
cmp byte [ebp - 0x12d], 0
je 0x41fa55
push 0x5c
push 0x2f
mov ecx, ebx
call fcn.00409476
push 0x5c
push 0x2f
lea ecx, [ebp - 0x12c]
call fcn.00409476
lea ecx, [ebp - 0x12c]
call fcn.0040944e
cmp byte [ebp + 8], 0
je 0x41fa55
lea eax, [ebp - 0x12c]
mov ecx, 0x4c2544
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409a7a
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call fcn.00423da4
mov edi, dword [0x4c2544]
test al, al
cmovne edi, dword [ebp - 0x14]
cmp edi, dword [0x4c2544]
je 0x41fa55
lea eax, [edi + 0x14]
mov ecx, ebx
push eax
call fcn.0040951e
push dword [ebp - 0x15c]
call fcn.0045f917
pop ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x12c]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.004362cf
mov eax, esi
call fcn.00456974
ret