Function at 0x638c4f10
Capabilities:
Get process heap flags
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, 0x48
mov eax, dword [ecx + 4]
mov ebx, dword [ecx + 8]
test byte [0x638c8028], 8
mov esi, dword [ecx]
mov dword [ebp - 0x2c], eax
mov edi, dword [ecx + 0xc]
movzx eax, word [ebx]
mov dword [ebp - 0x34], eax
jne 0x638c5090
lea eax, [ebp - 0x1c]
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call edx
sub esp, 0x18
test eax, eax
jne 0x638c50d8
mov eax, dword [ebp - 0x1c]
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov ecx, eax
je 0x638c510e
mov dword [esp + 0x10], ecx
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x38]
sub esp, 0x18
test eax, eax
mov esi, eax
jne 0x638c50e8
mov word [ebx], 8
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call dword [0x638e91f8]
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 8], eax
sub esp, 4
mov dword [esp + 8], ecx
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x34]
sub esp, 0xc
cmp eax, 8
jne 0x638c5040
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x10], eax
mov edx, 0x800
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [0x638e9200]
sub esp, 0x14
test eax, eax
mov esi, eax
jns 0x638c502d
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [0x638e91fc]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, str.RegistryPropertyBag_IPropertyBag_Read
mov ecx, 0x638c8028
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x14], eax
mov eax, str._iface_p__pwszPropName_s__pVar_p__pErrorLog_p__n
mov dword [esp + 0xc], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x638c4f45
mov esi, 0x80070057
jmp 0x638c502d
mov dword [esp + 8], ecx
xor ebx, ebx
mov esi, 0x80070057
mov dword [esp + 4], ebx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x638c502d
mov esi, 0x8007000e
jmp 0x638c502d