Function at 0x667c6bb0
Capabilities:
Access peb ldr_data
Get kernel32 base address
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
sub esp, 0x68
test byte [0x667cc034], 8
mov dword [ebp - 0xc], ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 8], esi
mov ebx, dword [ecx + 8]
mov dword [ebp - 4], edi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jne 0x667c6d00
test esi, esi
jne 0x667c6c50
mov dword [esp + 4], edx
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov eax, 0x20019
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x667c6d60
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x667c6c39
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], edx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x2001f
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x667c6c24
cmp esi, 2
je 0x667c6d60
xor edi, edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x667c6d9d
mov edx, edi
mov eax, 0x667cee20
call sym._shstream_create
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
je 0x667c6c24
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.shcore.dll_SHStrDupW
mov eax, esi
sub esp, 8
jmp 0x667c6c39
mov dword [ebp - 0x2c], edx
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x30]
mov edx, 0x667cc034
mov dword [esp + 4], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, str._p___s___s___lx._n
mov dword [esp + 0xc], eax
mov eax, str.SHOpenRegStream2W
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x667c6bf2
lea eax, [ebp - 0x1c]
xor esi, esi
mov dword [esp + 0x14], eax
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x667c6c9b
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x667c6dd0
xor ecx, ecx
xor edx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov edi, eax
jmp 0x667c6ca8
mov dword [esp + 8], eax
xor ecx, ecx
mov dword [esp + 4], ecx
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 0x10], edi
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
sub esp, 0x18
jmp 0x667c6c9d