Function at 0x7cfaabfc
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
and dword [ebp - 0xc], 0
push esi
lea eax, [ebp - 0x10]
push edi
push eax
push 0x20019
push 0
push 0x7cf3a0c8
push reloc.SHLWAPI.dll_ParseURLW
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7cfaac4e
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x7cfaac55
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x7cfaae29
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, 0x1000
push esi
push ebx
push 0x7cf3a0b0
call edi
push 1
push ebx
push 0x7cf3a0b0
push dword [ebp + 8]
call fcn.7cfaa6a4
push esi
push ebx
push 0x7cf3a098
call edi
push 1
push ebx
push 0x7cf3a098
push dword [ebp + 8]
call fcn.7cfaa6a4
push esi
push ebx
push 0x7cf3a078
call edi
push 1
pop edi
push edi
push ebx
push 0x7cf3a078
push dword [ebp + 8]
call fcn.7cfaa6a4
lea eax, [ebp - 8]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 8], esi
push eax
push 0
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x7cfaad28
cmp dword [ebp - 4], eax
je 0x7cfaacfd
and byte [ebx + 0x7ff], al
cmp dword [ebp - 0x18], 1
jne 0x7cfaacfd
push 1
lea eax, [ebp - 0x228]
push ebx
push eax
push dword [ebp + 8]
call fcn.7cfaa6a4
lea eax, [ebp - 8]
inc dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x104
push dword [ebp - 0x10]
jmp 0x7cfaacd4
lea ecx, [ebp - 8]
xor eax, eax
push ecx
lea ecx, [ebp - 0x18]
push ebx
push ecx
lea ecx, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x104
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x7cfaae16
cmp dword [ebp - 4], eax
je 0x7cfaade7
and byte [ebx + 0x7ff], al
cmp dword [ebp - 0x18], 2
jne 0x7cfaade7
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x7cfaadc4
push 0x800
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call fcn.7cfaa7d2
cmp eax, 0x800
mov dword [ebp - 0x1c], eax
jbe 0x7cfaadc4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x7cfaadc4
push dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call fcn.7cfaa7d2
cmp dword [ebp - 0x14], 0
je 0x7cfaae12
push 1
lea eax, [ebp - 0x228]
push dword [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.7cfaa6a4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 8]
inc dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x104
jmp 0x7cfaad4d
and dword [ebp - 0x20], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 4