Function at 0x41ec18
Capabilities:
Query environment variable

Disassembly:
push 0x12c
mov eax, 0x477d18
call fcn.0045053c
mov byte [ebp - 0xf6], dl
mov esi, ecx
mov dword [ebp - 0x108], 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 - 0x104], edi
call fcn.00434cd9
and dword [ebp - 4], edi
mov eax, 0x4a0340
mov edx, 0x4a0344
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xac], eax
mov ecx, 0x4a0348
mov dword [ebp - 0xa0], edx
mov eax, 0x4a034c
mov dword [ebp - 0x40], edx
xor edx, edx
mov dword [ebp - 0xe0], str.app
mov dword [ebp - 0xdc], 0x4a03e4
mov byte [ebp - 0xd8], 1
mov dword [ebp - 0xd4], str.dat
mov dword [ebp - 0xd0], 0x4a03e8
mov byte [ebp - 0xcc], 1
mov dword [ebp - 0xc8], str.tmp
mov dword [ebp - 0xc4], 0x4a0338
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], 0x4a03e4
mov byte [ebp - 0x78], bl
mov dword [ebp - 0x74], str._dat_
mov dword [ebp - 0x70], 0x4a03e8
mov byte [ebp - 0x6c], bl
mov dword [ebp - 0x68], str._tmp_
mov dword [ebp - 0x64], 0x4a0338
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x5c], str._sys_
mov dword [ebp - 0x58], 0x4a0340
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x50], str._sys32_
mov dword [ebp - 0x4c], 0x4a0340
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.00409480
push eax
lea ecx, [ebp - 0xe4]
call fcn.00408c39
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 0x41ede9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41f2b7
push 2
push eax
call fcn.0046534a
mov dword [ebp - 0x110], eax
pop ecx
pop ecx
test eax, eax
jne 0x41ee05
push 8
pop edi
jmp 0x41f2b7
push dword [ebp - 0xfc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41ee25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41f2ab
push dword [ebp - 0x110]
mov ecx, esi
call fcn.0040b072
push esi
lea ecx, [ebp - 0xe4]
call fcn.0040a1c3
lea ecx, [ebp - 0xe4]
call fcn.0040a0f6
lea edi, [ebp - 0xdc]
mov dword [ebp - 0xf4], 0x10
push 0
push dword [edi - 4]
lea ecx, [ebp - 0xe4]
call fcn.0041abcb
cmp eax, 0xffffffff
je 0x41efae
mov al, byte [edi + 4]
mov ecx, dword [edi]
mov byte [ebp - 0xf5], al
test al, al
je 0x41ee96
push ecx
lea ecx, [ebp - 0xf0]
call fcn.0040aefc
mov byte [ebp - 4], 3
or ebx, 1
jmp 0x41eeb3
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0040c287
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.0041ad37
push 3
pop eax
mov dword [ebp - 4], eax
test bl, 2
je 0x41eeea
and ebx, 0xfffffffd
mov dword [ebp - 0xec], ebx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xfc]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov dword [ebp - 4], 2
test bl, 1
je 0x41ef11
and ebx, 0xfffffffe
mov dword [ebp - 0xec], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00409575
cmp byte [ebp - 0xf5], 0
mov ecx, dword [edi]
je 0x41ef31
push ecx
lea ecx, [ebp - 0x100]
call fcn.0040aefc
mov byte [ebp - 4], 7
or ebx, 4
jmp 0x41ef4c
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0040c287
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.0041ad37
push 7
pop eax
mov dword [ebp - 4], eax
test bl, 8
je 0x41ef87
and ebx, 0xfffffff7
mov dword [ebp - 0xec], ebx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov dword [ebp - 4], 2
test bl, 4
je 0x41efae
and ebx, 0xfffffffb
mov dword [ebp - 0xec], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.00409575
add edi, 0xc
sub dword [ebp - 0xf4], 1
jne 0x41ee59
mov edi, dword [ebp - 0x104]
mov ebx, dword [ebp - 0x108]
push 0
push str.cabdir:
lea ecx, [ebp - 0xe4]
call fcn.0041abcb
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe7
push 0x7d
jmp 0x41f006
push 0
push str._cabdir:
lea ecx, [ebp - 0xe4]
call fcn.0041abcb
mov esi, eax
cmp esi, 0xffffffff
je 0x41f234
push 0x5d
cmp dword [ebp - 0x10c], 0
pop edi
mov dword [ebp - 0xfc], edi
je 0x41f22f
lea eax, [esi + 1]
push eax
push 0x48d0bc
lea ecx, [ebp - 0xe4]
call fcn.0041abcb
mov dword [ebp - 0x108], eax
cmp eax, 0xffffffff
je 0x41f22b
inc eax
lea ecx, [ebp - 0xe4]
push eax
push edi
mov dword [ebp - 0x104], eax
call fcn.0041c66a
mov edi, eax
cmp edi, 0xffffffff
je 0x41f22b
mov ecx, edi
lea eax, [ebp - 0xf4]
sub ecx, esi
inc ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0xe4]
call fcn.00416d49
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xf0]
sub edi, dword [ebp - 0x108]
lea ecx, [ebp - 0xe4]
dec edi
push edi
push dword [ebp - 0x104]
push eax
call fcn.00416d49
mov byte [ebp - 4], 0xc
call fcn.00409480
push eax
lea ecx, [ebp - 0xe8]
call fcn.00408c39
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xf0]
call fcn.0041ab4d
mov ecx, eax
call fcn.0040a092
lea ecx, [ebp - 0xf0]
call fcn.0040a0f6
mov ecx, dword [ebp - 0xf0]
mov eax, dword [ecx - 0xc]
lea edx, [eax + eax]
lea eax, [ebp - 0x20]
push eax
call fcn.0041fd8d
mov edi, eax
pop ecx
test edi, edi
jne 0x41f1f0
lea eax, [ebp - 0xe8]
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x20]
call fcn.0041fdbf
mov edi, eax
pop ecx
test edi, edi
jne 0x41f1ca
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x100]
lea edx, [edx + 4]
call fcn.0041aaa2
pop ecx
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xe8]
push eax
call fcn.0040a1c3
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.00409575
push 0x7d
pop eax
cmp word [ebp - 0xfc], ax
jne 0x41f16f
mov esi, 0x48cb28
mov ecx, esi
call fcn.0040b056
push eax
push esi
lea ecx, [ebp - 0xe8]
call fcn.0040c3a0
mov esi, dword [ebp - 0xe8]
mov ecx, ebx
push esi
push dword [ebp - 0xf4]
call fcn.0041ad37
push esi
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xe4]
call fcn.0041ad37
mov byte [ebp - 4], 0xc
lea ecx, [esi - 0x10]
call fcn.00409575
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf4]
lea ecx, [ecx - 0x10]
call fcn.00409575
jmp 0x41efca
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00409575
jmp 0x41f214
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf4]
add ecx, 0xfffffff0
call fcn.00409575
jmp 0x41f2ab
push 0xb
jmp 0x41f231
push 0x57
pop edi
jmp 0x41f2ab
cmp byte [ebp - 0xf6], 0
je 0x41f2ab
push 0x5c
push 0x2f
mov ecx, ebx
call fcn.0040a11e
push 0x5c
push 0x2f
lea ecx, [ebp - 0xe4]
call fcn.0040a11e
lea ecx, [ebp - 0xe4]
call fcn.0040a0f6
cmp byte [ebp + 8], 0
je 0x41f2ab
lea eax, [ebp - 0xe4]
mov ecx, 0x4a03a8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a718
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0x14]
call fcn.00423109
mov esi, dword [0x4a03a8]
test al, al
cmovne esi, dword [ebp - 0x14]
cmp esi, dword [0x4a03a8]
je 0x41f2ab
lea eax, [esi + 0x14]
mov ecx, ebx
push eax
call fcn.0040a1c3
push dword [ebp - 0x110]
call fcn.00454c63
pop ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xe4]
lea ecx, [ecx - 0x10]
call fcn.00409575
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00434cfb
mov eax, edi
call fcn.004504e6
ret