Function at 0x10009d90
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x58
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
mov dword [ebp - 0x2c], edx
mov edx, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
call sym._get_word
mov edi, eax
test eax, eax
js 0x10009f86
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x100
xor esi, esi
mov dword [ebp - 0x34], eax
call eax
mov edx, edi
mov dword [ebp - 0x14], pe_nt_image_headers32
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
jmp 0x10009f0a
mov dword [esp + 4], str.ForceRemove
mov eax, dword [ebx]
mov esi, 3
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x1000a060
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10009f50
test byte [0x1000d04c], 8
jne 0x10009ff0
test edi, edi
je 0x10009f90
mov eax, dword [ebx]
cmp esi, 2
je 0x1000a268
cmp esi, 4
je 0x1000a240
cmp esi, 3
je 0x1000a320
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x1000a655
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x3d
je 0x1000a140
cmp esi, 2
je 0x1000a288
cmp esi, 2
lea eax, [esi - 2]
setne byte [ebp - 0x28]
and eax, 0xfffffffd
je 0x10009ead
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x7b
je 0x1000a1e0
test byte [0x1000d04c], 8
jne 0x10009fb6
test edi, edi
jne 0x10009ecf
test esi, esi
je 0x1000a030
cmp esi, 3
je 0x1000a030
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10009ee8
cmp byte [ebp - 0x28], 0
je 0x10009ee8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov edx, ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
call sym._get_word
mov edx, eax
test eax, eax
js 0x1000a380
mov eax, dword [ebx]
cmp word [eax + 2], 0
jne 0x10009f19
cmp word [eax], 0x7d
je 0x10009f50
mov dword [esp + 4], str.NoRemove
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x10009df0
mov edx, ebx
lea eax, [ebp - 0x24]
mov esi, 1
call sym._get_word
mov edx, eax
test eax, eax
jns 0x10009e27
nop
cmp esi, 2
mov edi, edx
setne byte [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10009f7e
cmp byte [ebp - 0x28], 0
je 0x10009f7e
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi - 2]
and eax, 0xfffffffd
jne 0x1000a0b0
cmp esi, 4
jne 0x10009e7b
mov byte [ebp - 0x28], 1
test byte [0x1000d04c], 8
je 0x10009eba
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._x__x_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x10009eba
mov eax, dword [ebx]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.name___s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x10009e34
mov eax, dword [ebp - 0x18]
test byte [0x1000d04c], 8
jne 0x1000a2e0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
jmp 0x10009ecf
mov dword [esp + 4], 0x10010b4e
mov eax, dword [ebx]
mov esi, 2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x10009e13
mov dword [esp + 4], str.Delete
mov eax, dword [ebx]
mov esi, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x10009e13
xor esi, esi
jmp 0x10009e27
mov eax, dword [ebx]
mov ecx, 0xffffffff
lea edx, [ebp - 0x18]
call sym._strbuf_write
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x10009e7b
test byte [0x1000d04c], 4
je 0x10009e7b
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0xc], str.Could_not_open_key__s:__08lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x3d
jne 0x10009e88
lea esi, [esi]
add eax, 2
mov edx, ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10009f50
cmp dword [ebx + 8], 1
jne 0x1000a686
test edi, edi
je 0x1000a2b0
mov eax, dword [ebx]
movzx edx, word [eax]
cmp dx, 0x64
je 0x1000a438
cmp dx, 0x73
je 0x1000a390
cmp dx, 0x62
je 0x1000a4e0
cmp esi, 2
mov edi, 0x80020009
setne byte [ebp - 0x28]
test byte [0x1000d04c], 4
je 0x10009f59
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Wrong_resource_type:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x10009f59
movzx eax, word [eax + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswspace]
test eax, eax
je 0x10009ead
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x1000a21f
mov dword [esp], edi
mov edx, dword [ebp - 0x20]
mov ecx, ebx
lea eax, [ebp - 0x24]
call sym._do_process_key
mov edx, eax
test eax, eax
jns 0x10009ead
mov eax, dword [ebp - 0x18]
mov edi, edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10009f72
jmp 0x10009f7e
test byte [0x1000d04c], 8
jne 0x1000a340
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
jmp 0x10009fa5
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov ecx, 0xffffffff
call sym._strbuf_write
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x3d
je 0x1000a140
test byte [0x1000d04c], 4
jne 0x1000a62c
mov eax, dword [ebp - 0x18]
mov edi, 0x80020009
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10009f7e
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x2d
jne 0x1000a2bf
add eax, 2
mov dword [ebp - 0x24], eax
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test edx, edx
jns 0x10009e91
jmp 0x10009f50
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Deleting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x18]
jmp 0x1000a040
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov eax, dword [ebx]
sub esp, 8
jmp 0x10009e59
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Deleting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebx]
jmp 0x1000a24d
mov edi, eax
jmp 0x10009f59
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10009f50
mov edx, dword [ebx]
cmp word [edx], 0
je 0x1000a782
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000a3b8
sub eax, edx
add eax, 2
xor ecx, ecx
cmp dword [ebp - 0x10], 0
je 0x1000a3d1
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edx, eax
test eax, eax
je 0x10009e91
test byte [0x1000d04c], 4
jne 0x1000a74f
test edx, edx
jle 0x1000a2cb
movzx eax, dx
or eax, 0x80070000
cmp esi, 2
mov edi, eax
setne byte [ebp - 0x28]
jmp 0x10009f59
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10009f50
mov dword [ebp - 0x28], eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstoul]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
xor eax, eax
test edx, edx
mov edx, dword [ebp - 0x28]
je 0x1000a47c
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x28]
sub esp, 0x18
test eax, eax
mov ecx, eax
je 0x1000a2cb
test byte [0x1000d04c], 4
jne 0x1000a71c
movzx edx, cx
or edx, 0x80070000
test ecx, ecx
cmovle edx, ecx
jmp 0x1000a2cb
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10009f50
mov eax, dword [ebx]
cmp word [eax], 0
mov dword [ebp - 0x3c], eax
je 0x1000a78c
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000a508
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
sar eax, 1
add eax, 1
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
mov edx, dword [ebp - 0x40]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x1000a7a5
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1000a5b1
xor eax, eax
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x3c]
mov dword [ebp + 8], edi
mov edi, eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x4c], edx
jmp 0x1000a59c
call sym._xdigit_to_int
mov esi, eax
cmp eax, 0xffffffff
je 0x1000a676
movzx eax, word [ebx + edi*4 + 2]
call sym._xdigit_to_int
cmp eax, 0xffffffff
je 0x1000a676
shl esi, 4
mov edx, esi
or edx, eax
mov eax, dword [ebp - 0x28]
mov byte [eax + edi], dl
add edi, 1
cmp dword [ebp - 0x38], edi
je 0x1000a705
movzx eax, word [ebx + edi*4]
test ax, ax
jne 0x1000a560
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
je 0x1000a5bd
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x38]
sub esp, 0x18
test eax, eax
mov ecx, eax
je 0x1000a615
test byte [0x1000d04c], 4
jne 0x1000a7b6
movzx edx, cx
or edx, 0x80070000
test ecx, ecx
cmovle edx, ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x38]
jmp 0x1000a2cb
mov dword [esp + 0xc], str.value_not_set__n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000a295
mov edi, eax
test byte [0x1000d04c], 4
jne 0x1000a6d8
movzx eax, di
mov byte [ebp - 0x28], 1
or eax, 0x80070000
test edi, edi
cmovg edi, eax
jmp 0x10009f59
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
mov edx, 0x80004005
mov edi, dword [ebp + 8]
jmp 0x1000a615
cmp esi, 2
mov edi, 0x80020009
setne byte [ebp - 0x28]
test byte [0x1000d04c], 4
je 0x10009f59
mov eax, dword [ebx]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Wrong_registry_type:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x10009f59
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_create_open__key:__08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000a660
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov edi, dword [ebp + 8]
jmp 0x1000a5b1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_set_value_of_key:__08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
mov dword [ebp - 0x28], eax
call sym._wine_dbg_log.constprop.0_3
mov ecx, dword [ebp - 0x28]
jmp 0x1000a4cb
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_set_value_of_key:__08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
mov dword [ebp - 0x28], eax
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x28]
jmp 0x1000a413
mov eax, 2
jmp 0x1000a3c6
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
mov dword [esp], 0
call eax
mov edx, dword [ebp - 0x38]
test eax, eax
mov dword [ebp - 0x28], eax
jne 0x1000a7e9
cmp esi, 2
mov edi, 0x8007000e
setne byte [ebp - 0x28]
jmp 0x10009f59
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_set_value_of_key:_0x_08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000d04c
mov dword [esp], 2
mov dword [ebp - 0x38], eax
call sym._wine_dbg_log.constprop.0_3
mov ecx, dword [ebp - 0x38]
jmp 0x1000a607
mov dword [ebp - 0x48], 0
jmp 0x1000a5b1