Function at 0x63bc7a10
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 0x63bc7ac0
test edi, edi
je 0x63bc7b12
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_RegQueryValueExW
sub esp, 0x18
mov edx, eax
test eax, eax
je 0x63bc7a96
cmp eax, 0xea
jne 0x63bc7aad
mov eax, dword [ebp - 0x24]
cmp eax, 2
je 0x63bc7b80
test esi, esi
je 0x63bc7aa8
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.63bc3570
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.SHQueryValueExW
mov dword [esp + 4], 0x63bcb034
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.63bc2700
test edi, edi
jne 0x63bc7a56
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_RegQueryValueExW
sub esp, 0x18
mov edx, eax
cmp eax, 0xea
je 0x63bc7b51
test eax, eax
jne 0x63bc7aad
test esi, esi
je 0x63bc7aad
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 0x63bc7c70
cmp edx, 0xea
je 0x63bc7c70
cmp word [ebx], 0
mov edx, ebx
je 0x63bc7bae
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x63bc7ba0
sub edx, ebx
lea eax, [edx + 2]
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 ecx, dword [edi]
mov dword [esp + 4], ebx
shr ecx, 1
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
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 0x63bc7aa8
mov eax, dword [ebp - 0x24]
mov ebx, 1
cmp eax, 2
cmove eax, ebx
jmp 0x63bc7aa6
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_RegQueryValueExW
sub esp, 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x63bc7c16