Function at 0x41c6b5
Capabilities:
Query environment variable

Disassembly:
push 0x12c
mov eax, 0x467867
call fcn.00463b54
mov byte [ebp - 0xf6], dl
mov esi, ecx
mov dword [ebp - 0x100], esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ecx
xor edi, edi
mov dword [ebp - 0x10c], eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0x108], edi
call fcn.004327b3
and dword [ebp - 4], edi
mov eax, 0x48bce4
mov edx, 0x48bce8
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xac], eax
mov ecx, 0x48bcec
mov dword [ebp - 0xa0], edx
mov eax, 0x48bcf0
mov dword [ebp - 0x40], edx
xor edx, edx
mov dword [ebp - 0xe0], str.app
mov dword [ebp - 0xdc], 0x48bd84
mov byte [ebp - 0xd8], 1
mov dword [ebp - 0xd4], str.dat
mov dword [ebp - 0xd0], 0x48bd88
mov byte [ebp - 0xcc], 1
mov dword [ebp - 0xc8], str.tmp
mov dword [ebp - 0xc4], 0x48bcdc
mov byte [ebp - 0xc0], 1
mov dword [ebp - 0xbc], str.sys
mov byte [ebp - 0xb4], 1
mov dword [ebp - 0xb0], str.sys32
mov byte [ebp - 0xa8], 1
mov dword [ebp - 0xa4], str.sys64
mov byte [ebp - 0x9c], 1
mov dword [ebp - 0x98], str.drv
mov dword [ebp - 0x94], ecx
mov byte [ebp - 0x90], 1
mov dword [ebp - 0x8c], str.upd
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 1
mov dword [ebp - 0x80], str._app_
mov dword [ebp - 0x7c], 0x48bd84
mov byte [ebp - 0x78], bl
mov dword [ebp - 0x74], str._dat_
mov dword [ebp - 0x70], 0x48bd88
mov byte [ebp - 0x6c], bl
mov dword [ebp - 0x68], str._tmp_
mov dword [ebp - 0x64], 0x48bcdc
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x5c], str._sys_
mov dword [ebp - 0x58], 0x48bce4
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x50], str._sys32_
mov dword [ebp - 0x4c], 0x48bce4
mov byte [ebp - 0x48], bl
mov dword [ebp - 0x44], str._sys64_
mov byte [ebp - 0x3c], dl
mov dword [ebp - 0x38], str._drv_
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x30], dl
mov dword [ebp - 0x2c], str._upd_
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], dl
call fcn.004068d0
push eax
lea ecx, [ebp - 0xe4]
call fcn.00405f99
mov byte [ebp - 4], 2
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xfc], eax
test eax, eax
jne 0x41c886
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41cd63
push 2
push eax
call fcn.00454d8b
mov dword [ebp - 0x110], eax
pop ecx
pop ecx
test eax, eax
jne 0x41c8a2
push 8
pop edi
jmp 0x41cd63
push dword [ebp - 0xfc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41c8c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41cd57
push dword [ebp - 0x110]
mov ecx, esi
call fcn.004082bc
push esi
lea ecx, [ebp - 0xe4]
call fcn.0040764f
lea ecx, [ebp - 0xe4]
call fcn.00407582
lea edi, [ebp - 0xdc]
mov dword [ebp - 0xf4], 0x10
push 0
push dword [edi - 4]
lea ecx, [ebp - 0xe4]
call fcn.00418660
cmp eax, 0xffffffff
je 0x41ca4c
mov al, byte [edi + 4]
mov byte [ebp - 0xf5], al
test al, al
je 0x41c932
push dword [edi]
lea ecx, [ebp - 0xf0]
call fcn.004077b2
mov byte [ebp - 4], 3
or ebx, 1
jmp 0x41c951
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00409467
mov dword [ebp - 4], 4
or ebx, 2
mov dword [ebp - 0xec], ebx
mov ecx, esi
push dword [eax]
push dword [edi - 4]
call fcn.004187c7
push 3
pop eax
mov dword [ebp - 4], eax
test bl, 2
je 0x41c988
and ebx, 0xfffffffd
mov dword [ebp - 0xec], ebx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xfc]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov dword [ebp - 4], 2
test bl, 1
je 0x41c9af
and ebx, 0xfffffffe
mov dword [ebp - 0xec], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00406985
cmp byte [ebp - 0xf5], 0
mov ecx, dword [edi]
je 0x41c9cf
push ecx
lea ecx, [ebp - 0x104]
call fcn.004077b2
mov byte [ebp - 4], 7
or ebx, 4
jmp 0x41c9ea
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00409467
push 8
pop ecx
mov dword [ebp - 4], ecx
or ebx, ecx
mov dword [ebp - 0xec], ebx
lea ecx, [ebp - 0xe4]
push dword [eax]
push dword [edi - 4]
call fcn.004187c7
push 7
pop eax
mov dword [ebp - 4], eax
test bl, 8
je 0x41ca25
and ebx, 0xfffffff7
mov dword [ebp - 0xec], ebx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov dword [ebp - 4], 2
test bl, 4
je 0x41ca4c
and ebx, 0xfffffffb
mov dword [ebp - 0xec], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x104]
lea ecx, [ecx - 0x10]
call fcn.00406985
add edi, 0xc
sub dword [ebp - 0xf4], 1
jne 0x41c8f6
mov edi, dword [ebp - 0x108]
mov ebx, dword [ebp - 0x100]
push 0
push str.cabdir:
lea ecx, [ebp - 0xe4]
call fcn.00418660
mov esi, eax
cmp esi, 0xffffffff
je 0x41ca85
push 0x7d
jmp 0x41caa4
push 0
push str._cabdir:
lea ecx, [ebp - 0xe4]
call fcn.00418660
mov esi, eax
cmp esi, 0xffffffff
je 0x41ccd4
push 0x5d
cmp dword [ebp - 0x10c], 0
pop edi
mov dword [ebp - 0xfc], edi
je 0x41cccc
lea eax, [esi + 1]
push eax
push 0x47b224
lea ecx, [ebp - 0xe4]
call fcn.00418660
mov dword [ebp - 0x100], eax
cmp eax, 0xffffffff
je 0x41ccc8
inc eax
lea ecx, [ebp - 0xe4]
push eax
push edi
mov dword [ebp - 0x108], eax
call fcn.0041a239
mov edi, eax
cmp edi, 0xffffffff
je 0x41ccc8
mov ecx, edi
lea eax, [ebp - 0xf4]
sub ecx, esi
inc ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0xe4]
call fcn.00414af7
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xf0]
sub edi, dword [ebp - 0x100]
lea ecx, [ebp - 0xe4]
dec edi
push edi
push dword [ebp - 0x108]
push eax
call fcn.00414af7
mov byte [ebp - 4], 0xc
call fcn.004068d0
push eax
lea ecx, [ebp - 0xe8]
call fcn.00405f99
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xf0]
call fcn.004185e2
mov ecx, eax
call fcn.0040751e
lea ecx, [ebp - 0xf0]
call fcn.00407582
mov ecx, dword [ebp - 0xf0]
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ecx - 0xc]
add edx, edx
call fcn.0041d8b5
mov edi, eax
pop ecx
test edi, edi
jne 0x41cca2
lea eax, [ebp - 0xe8]
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x20]
call fcn.0041d8e7
mov edi, eax
pop ecx
test edi, edi
jne 0x41cc67
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x104]
lea edx, [edx + 4]
call fcn.0041853b
pop ecx
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xe8]
push eax
call fcn.0040764f
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x104]
lea ecx, [ecx - 0x10]
call fcn.00406985
push 0x7d
pop eax
cmp word [ebp - 0xfc], ax
jne 0x41cc0c
mov esi, 0x47aca0
mov ecx, esi
call fcn.004082a0
push eax
push esi
lea ecx, [ebp - 0xe8]
call fcn.00409578
mov esi, dword [ebp - 0xe8]
mov ecx, ebx
push esi
push dword [ebp - 0xf4]
call fcn.004187c7
push esi
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xe4]
call fcn.004187c7
mov byte [ebp - 4], 0xc
lea ecx, [esi - 0x10]
call fcn.00406985
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf4]
lea ecx, [ecx - 0x10]
call fcn.00406985
jmp 0x41ca68
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf4]
lea ecx, [ecx - 0x10]
call fcn.00406985
jmp 0x41cd57
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00406985
jmp 0x41cc8b
push 0xb
jmp 0x41ccce
push 0x57
pop edi
jmp 0x41cd57
cmp byte [ebp - 0xf6], 0
je 0x41cd57
push 0x5c
push 0x2f
mov ecx, ebx
call fcn.004075aa
push 0x5c
push 0x2f
lea ecx, [ebp - 0xe4]
call fcn.004075aa
lea ecx, [ebp - 0xe4]
call fcn.00407582
cmp byte [ebp + 8], 0
je 0x41cd57
lea eax, [ebp - 0xe4]
mov ecx, 0x48bd48
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.004078e6
mov esi, dword [ebp - 0x100]
mov eax, dword [0x48bd48]
cmp esi, eax
je 0x41cd46
push dword [esi + 0x10]
lea ecx, [ebp - 0xe4]
call fcn.00407923
test eax, eax
mov eax, dword [0x48bd48]
jns 0x41cd48
mov esi, eax
cmp esi, eax
je 0x41cd57
lea eax, [esi + 0x14]
mov ecx, ebx
push eax
call fcn.0040764f
push dword [ebp - 0x110]
call fcn.00445d2e
pop ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xe4]
lea ecx, [ecx - 0x10]
call fcn.00406985
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.004327d5
mov eax, edi
call fcn.00463afe
ret