Function at 0x10013c50
Capabilities:
Create registry key via stdregprov

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x64
mov ebx, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x48], 0
mov edi, dword [ecx + 8]
mov dword [ebp - 0x50], ebx
mov ebx, dword [ecx + 0xc]
test byte [0x100210a8], 8
jne 0x10013e48
mov eax, dword [edi]
lea edx, [ebp - 0x40]
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.hDefKey
call dword [eax + 0x10]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x10013cf6
mov eax, dword [edi]
lea edx, [ebp - 0x30]
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.sSubKeyName
call dword [eax + 0x10]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x10013d08
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0x4c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.CreateKey
mov dword [esp + 4], str.StdRegProv
mov dword [esp], 0
call sym._create_signature
mov esi, eax
test eax, eax
jne 0x10013f50
test ebx, ebx
je 0x10013d68
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x10013f68
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
test byte [0x100210a8], 8
jne 0x10013e88
mov eax, dword [ebp - 0x50]
call sym._get_access_mask
lea edx, [ebp - 0x44]
mov dword [esp], edi
lea edi, [ebp - 0x20]
mov dword [esp + 4], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], eax
sar eax, 0x1f
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp], 0x13
call sym._set_variant
test esi, esi
je 0x10013ec0
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10013cf6
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
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
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x10027235
mov dword [esp + 8], str.reg_create_key
mov dword [esp + 4], 0x100210a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x10013c86
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._p___s_n
mov dword [esp + 8], str.create_key
mov dword [esp + 4], 0x100210a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x10013d7b
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
sub esp, 4
test eax, eax
je 0x10013f90
mov edx, dword [eax]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x13
mov dword [esp + 8], 0
mov dword [esp + 4], 0x100272a0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x14
test eax, eax
mov esi, eax
sete al
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test ebx, ebx
je 0x10013e20
mov eax, edi
test al, al
je 0x10013e20
mov eax, dword [ebp - 0x48]
mov dword [ebx], eax
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 4]
sub esp, 4
jmp 0x10013e20
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 4
jmp 0x10013cf6
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
jmp 0x10013cf6
mov edi, 1
jmp 0x10013f0a