Function at 0x63bc7d00
Capabilities:
Access peb ldr_data
Get process heap flags
Query environment variable
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov eax, dword [ecx]
mov dword [ebp - 0x20], 0
mov esi, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x34], eax
test byte [0x63bcb034], 8
jne 0x63bc7db0
test edi, edi
je 0x63bc7e02
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov edx, eax
cmp eax, 0xea
je 0x63bc7d86
test eax, eax
jne 0x63bc7d9d
mov eax, dword [ebp - 0x24]
cmp eax, 2
je 0x63bc7e70
test esi, esi
je 0x63bc7d98
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, dword [ebp - 0x30]
call fcn.63bc37a0
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], str.__p___s___p___p___p___p__n
mov dword [esp + 8], str.SHQueryValueExA
mov dword [esp + 4], 0x63bcb034
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.63bc2700
test edi, edi
jne 0x63bc7d46
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov edx, eax
cmp eax, 0xea
je 0x63bc7e41
test eax, eax
jne 0x63bc7d9d
test esi, esi
je 0x63bc7d9d
mov eax, dword [ebp - 0x24]
mov ecx, 1
cmp eax, 2
cmove eax, ecx
mov dword [esi], eax
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
test ebx, ebx
je 0x63bc7f50
cmp edx, 0xea
je 0x63bc7f50
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
add eax, 1
mov dword [ebp - 0x1c], eax
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x38], edx
mov dword [esp], edx
call sub.ucrtbase.dll_memcpy
mov eax, dword [edi]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
sub esp, 0xc
cmp dword [edi], eax
mov dword [ebp - 0x1c], eax
sbb edx, edx
and edx, 0xea
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
cmp ebx, eax
cmovb ebx, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x38]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
test esi, esi
je 0x63bc7d98
mov eax, dword [ebp - 0x24]
mov ebx, 1
cmp eax, 2
cmove eax, ebx
jmp 0x63bc7d96
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], eax
sub esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x63bc7ef6