Function at 0x41efbe
Capabilities:
Query environment variable

Disassembly:
push 0x144
mov eax, 0x47d7f1
call fcn.00454305
mov byte [ebp - 0x10e], dl
mov edi, ecx
mov dword [ebp - 0x12c], edi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ecx
xor esi, esi
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x11c], esi
call fcn.00435951
and dword [ebp - 4], esi
mov eax, 0x4a7404
mov edx, 0x4a7408
mov dword [ebp - 0xc4], eax
mov ecx, 0x4a740c
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xac], edx
mov eax, 0x4a7410
mov dword [ebp - 0x40], edx
xor edx, edx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xf8], str.app
mov dword [ebp - 0xf4], 0x4a74a8
mov byte [ebp - 0xf0], 1
mov dword [ebp - 0xec], str.dat
mov dword [ebp - 0xe8], 0x4a74ac
mov byte [ebp - 0xe4], 1
mov dword [ebp - 0xe0], str.inf
mov dword [ebp - 0xdc], 0x4a74b0
mov byte [ebp - 0xd8], 1
mov dword [ebp - 0xd4], str.tmp
mov dword [ebp - 0xd0], 0x4a73fc
mov byte [ebp - 0xcc], 1
mov dword [ebp - 0xc8], str.sys
mov byte [ebp - 0xc0], 1
mov dword [ebp - 0xbc], str.sys32
mov byte [ebp - 0xb4], 1
mov dword [ebp - 0xb0], str.sys64
mov byte [ebp - 0xa8], 1
mov dword [ebp - 0xa4], str.drv
mov byte [ebp - 0x9c], 1
mov dword [ebp - 0x98], str.upd
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 1
mov dword [ebp - 0x8c], str._app_
mov dword [ebp - 0x88], 0x4a74a8
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x80], str._dat_
mov dword [ebp - 0x7c], 0x4a74ac
mov byte [ebp - 0x78], bl
mov dword [ebp - 0x74], str._inf_
mov dword [ebp - 0x70], 0x4a74b0
mov byte [ebp - 0x6c], bl
mov dword [ebp - 0x68], str._tmp_
mov dword [ebp - 0x64], 0x4a73fc
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x5c], str._sys_
mov dword [ebp - 0x58], 0x4a7404
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x50], str._sys32_
mov dword [ebp - 0x4c], 0x4a7404
mov byte [ebp - 0x48], bl
mov dword [ebp - 0x44], str._sys64_
mov byte [ebp - 0x3c], dl
mov dword [ebp - 0x38], str._drv_
mov byte [ebp - 0x30], dl
mov dword [ebp - 0x2c], str._upd_
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], dl
call fcn.0040aa2d
mov byte [ebp - 4], 1
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x41f1be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41f683
push 2
push eax
call fcn.0046a83a
mov dword [ebp - 0x124], eax
pop ecx
pop ecx
test eax, eax
jne 0x41f1da
push 8
pop esi
jmp 0x41f683
push dword [ebp - 0x114]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41f1fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41f677
push dword [ebp - 0x124]
mov ecx, edi
call fcn.0040a5c2
push edi
lea ecx, [ebp - 0xfc]
call fcn.0040943e
lea ecx, [ebp - 0xfc]
call fcn.0040936e
lea esi, [ebp - 0xf4]
mov dword [ebp - 0x10c], 0x12
push 0
push dword [esi - 4]
lea ecx, [ebp - 0xfc]
call fcn.0041af5f
cmp eax, 0xffffffff
je 0x41f381
mov al, byte [esi + 4]
mov ecx, dword [esi]
mov byte [ebp - 0x10d], al
test al, al
je 0x41f26b
push ecx
lea ecx, [ebp - 0x108]
call fcn.00409dd5
mov byte [ebp - 4], 2
or ebx, 1
jmp 0x41f288
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040bbee
mov dword [ebp - 4], 3
or ebx, 2
mov dword [ebp - 0x104], ebx
mov ecx, edi
push dword [eax]
push dword [esi - 4]
call fcn.0041b096
push 2
pop eax
mov dword [ebp - 4], eax
test al, bl
je 0x41f2be
and ebx, 0xfffffffd
mov dword [ebp - 0x104], ebx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test al, bl
je 0x41f2e2
and ebx, 0xfffffffe
mov dword [ebp - 0x104], ebx
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x108]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
cmp byte [ebp - 0x10d], 0
mov ecx, dword [esi]
je 0x41f302
push ecx
lea ecx, [ebp - 0x118]
call fcn.00409dd5
mov byte [ebp - 4], 6
or ebx, 4
jmp 0x41f31f
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040bbee
mov dword [ebp - 4], 7
or ebx, 8
mov dword [ebp - 0x104], ebx
lea ecx, [ebp - 0xfc]
push dword [eax]
push dword [esi - 4]
call fcn.0041b096
push 6
pop eax
mov dword [ebp - 4], eax
test bl, 8
je 0x41f35a
and ebx, 0xfffffff7
mov dword [ebp - 0x104], ebx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov dword [ebp - 4], 1
test bl, 4
je 0x41f381
and ebx, 0xfffffffb
mov dword [ebp - 0x104], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
add esi, 0xc
sub dword [ebp - 0x10c], 1
jne 0x41f22e
mov esi, dword [ebp - 0x11c]
push 0
push str.cabdir:
lea ecx, [ebp - 0xfc]
call fcn.0041af5f
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f3b4
push 0x7d
jmp 0x41f3d3
push 0
push str._cabdir:
lea ecx, [ebp - 0xfc]
call fcn.0041af5f
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f5fc
push 0x5d
cmp dword [ebp - 0x120], 0
pop esi
mov dword [ebp - 0x114], esi
je 0x41f5f7
lea eax, [ebx + 1]
push eax
push 0x492334
lea ecx, [ebp - 0xfc]
call fcn.0041af5f
mov dword [ebp - 0x11c], eax
cmp eax, 0xffffffff
je 0x41f5f3
inc eax
lea ecx, [ebp - 0xfc]
push eax
push esi
mov dword [ebp - 0x118], eax
call fcn.0041cab5
mov esi, eax
cmp esi, 0xffffffff
je 0x41f5f3
mov ecx, esi
lea eax, [ebp - 0x10c]
sub ecx, ebx
inc ecx
push ecx
push ebx
push eax
lea ecx, [ebp - 0xfc]
call fcn.00416c71
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x108]
sub esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0xfc]
dec esi
push esi
push dword [ebp - 0x118]
push eax
call fcn.00416c71
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x100]
call fcn.0040aa2d
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x108]
call fcn.0041aee1
mov ecx, eax
call fcn.0040930a
lea ecx, [ebp - 0x108]
call fcn.0040936e
mov ecx, dword [ebp - 0x108]
mov eax, dword [ecx - 0xc]
lea edx, [eax + eax]
lea eax, [ebp - 0x20]
push eax
call fcn.0042014a
mov esi, eax
pop ecx
test esi, esi
jne 0x41f5b8
lea eax, [ebp - 0x100]
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x20]
call fcn.0042017c
mov esi, eax
pop ecx
test esi, esi
jne 0x41f592
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x128]
lea edx, [edx + 4]
call fcn.0041ae36
pop ecx
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x100]
push eax
call fcn.0040943e
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x128]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
push 0x7d
pop eax
cmp word [ebp - 0x114], ax
jne 0x41f52d
push 0x491d74
lea ecx, [ebp - 0x100]
call fcn.0041cb18
push dword [ebp - 0x100]
mov ecx, edi
push dword [ebp - 0x10c]
call fcn.0041b096
push dword [ebp - 0x100]
lea ecx, [ebp - 0xfc]
push dword [ebp - 0x10c]
call fcn.0041b096
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x108]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41f397
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x108]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41f5dc
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x108]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10c]
add ecx, 0xfffffff0
call fcn.0040aa0b
jmp 0x41f677
push 0xb
jmp 0x41f5f9
push 0x57
pop esi
jmp 0x41f677
cmp byte [ebp - 0x10e], 0
je 0x41f677
push 0x5c
push 0x2f
mov ecx, edi
call fcn.00409396
push 0x5c
push 0x2f
lea ecx, [ebp - 0xfc]
call fcn.00409396
lea ecx, [ebp - 0xfc]
call fcn.0040936e
cmp byte [ebp + 8], 0
je 0x41f677
lea eax, [ebp - 0xfc]
mov ecx, 0x4a746c
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040999a
lea eax, [ebp - 0xfc]
push eax
push dword [ebp - 0x14]
call fcn.004238cf
mov edi, dword [0x4a746c]
test al, al
cmovne edi, dword [ebp - 0x14]
cmp edi, dword [0x4a746c]
je 0x41f677
mov ecx, dword [ebp - 0x12c]
lea eax, [edi + 0x14]
push eax
call fcn.0040943e
push dword [ebp - 0x124]
call fcn.0045d3d7
pop ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xfc]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00435973
mov eax, esi
call fcn.004542b4
ret