Function at 0x100160b0
Capabilities:
Set registry value
Set registry value 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, 0x98
mov edx, dword [ecx + 4]
mov dword [ebp - 0x68], 0
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x70], edx
mov esi, dword [ecx + 0xc]
test byte [0x100210a8], 8
jne 0x100163d0
mov eax, dword [edi]
lea ecx, [ebp - 0x60]
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.hDefKey
call dword [eax + 0x10]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x100163c1
mov eax, dword [edi]
lea edx, [ebp - 0x50]
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 ebx, eax
test eax, eax
jne 0x100163c1
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.sValueName
call dword [eax + 0x10]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x10016440
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.sValue
call dword [eax + 0x10]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x10016410
lea eax, [ebp - 0x6c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.SetStringValue
mov dword [esp + 4], str.StdRegProv
mov dword [esp], 0
call sym._create_signature
mov ebx, eax
test eax, eax
jne 0x100164c0
test esi, esi
je 0x10016237
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
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
test eax, eax
jne 0x10016520
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
test byte [0x100210a8], 8
jne 0x10016458
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], ecx
call sym._get_access_mask
lea edx, [ebp - 0x64]
mov dword [esp + 8], 0
or eax, 2
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x100164f0
mov ecx, dword [ebp - 0x80]
cmp word [ecx], 0
mov eax, ecx
je 0x10016568
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x100162b0
sub eax, ecx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x7c]
lea edi, [ebp - 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetKeyValueW]
sub esp, 0x18
mov dword [esp + 4], eax
sar eax, 0x1f
mov dword [esp + 8], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp], 0x13
call sym._set_variant
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x68]
mov edx, 1
test eax, eax
je 0x1001635b
mov edx, dword [eax]
mov dword [esp + 0x10], 0x13
mov dword [esp + 0xc], edi
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 ebx, eax
sete dl
lea eax, [ebp - 0x40]
mov byte [ebp - 0x70], dl
mov edi, dword [sym.imp.oleaut32.dll_VariantClear]
mov dword [esp], eax
call edi
lea eax, [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call edi
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x6c]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test esi, esi
je 0x100163af
movzx edx, byte [ebp - 0x70]
test dl, dl
je 0x100163af
mov eax, dword [ebp - 0x68]
mov dword [esi], eax
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 4]
sub esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x100163c1
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10027235
mov dword [esp + 8], str.reg_set_stringvalue
mov dword [esp + 4], 0x100210a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x100160e9
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.oleaut32.dll_VariantClear]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 4
jmp 0x100163c1
mov eax, ecx
mov dword [ebp - 0x84], ecx
call sym._wine_dbgstr_wn.constprop.0_3
mov edi, eax
mov eax, dword [ebp - 0x7c]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x74]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p___s___s___s_n
mov dword [esp + 8], str.set_stringvalue
mov dword [esp + 4], 0x100210a8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
mov ecx, dword [ebp - 0x84]
jmp 0x10016259
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.oleaut32.dll_VariantClear]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call esi
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x100163c1
mov dword [esp + 4], eax
lea edi, [ebp - 0x20]
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
jmp 0x10016321
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x40]
mov ebx, dword [sym.imp.oleaut32.dll_VariantClear]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x6c]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x70]
sub esp, 4
mov ebx, edx
jmp 0x100163c1
mov eax, 2
jmp 0x100162be