Function at 0x100081c0
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 0x100083b6
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 0x1000833a
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 0x10008490
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10008380
test byte [0x1000b038], 8
jne 0x10008420
test edi, edi
je 0x100083c0
mov eax, dword [ebx]
cmp esi, 2
je 0x10008698
cmp esi, 4
je 0x10008670
cmp esi, 3
je 0x10008750
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 0x10008a85
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x3d
je 0x10008570
cmp esi, 2
je 0x100086b8
cmp esi, 2
lea eax, [esi - 2]
setne byte [ebp - 0x28]
and eax, 0xfffffffd
je 0x100082dd
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x7b
je 0x10008610
test byte [0x1000b038], 8
jne 0x100083e6
test edi, edi
jne 0x100082ff
test esi, esi
je 0x10008460
cmp esi, 3
je 0x10008460
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10008318
cmp byte [ebp - 0x28], 0
je 0x10008318
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 0x100087b0
mov eax, dword [ebx]
cmp word [eax + 2], 0
jne 0x10008349
cmp word [eax], 0x7d
je 0x10008380
mov dword [esp + 4], str.NoRemove
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x10008220
mov edx, ebx
lea eax, [ebp - 0x24]
mov esi, 1
call sym._get_word
mov edx, eax
test eax, eax
jns 0x10008257
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 0x100083ae
cmp byte [ebp - 0x28], 0
je 0x100083ae
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 0x100084e0
cmp esi, 4
jne 0x100082ab
mov byte [ebp - 0x28], 1
test byte [0x1000b038], 8
je 0x100082ea
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], 0x1000b038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x100082ea
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], 0x1000b038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10008264
mov eax, dword [ebp - 0x18]
test byte [0x1000b038], 8
jne 0x10008710
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 0x100082ff
mov dword [esp + 4], 0x1000e7ee
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 0x10008243
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 0x10008243
xor esi, esi
jmp 0x10008257
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 0x100082ab
test byte [0x1000b038], 4
je 0x100082ab
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], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x3d
jne 0x100082b8
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 0x10008380
cmp dword [ebx + 8], 1
jne 0x10008ab6
test edi, edi
je 0x100086e0
mov eax, dword [ebx]
movzx edx, word [eax]
cmp dx, 0x64
je 0x10008868
cmp dx, 0x73
je 0x100087c0
cmp dx, 0x62
je 0x10008910
cmp esi, 2
mov edi, 0x80020009
setne byte [ebp - 0x28]
test byte [0x1000b038], 4
je 0x10008389
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], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10008389
movzx eax, word [eax + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswspace]
test eax, eax
je 0x100082dd
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x1000864f
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 0x100082dd
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 0x100083a2
jmp 0x100083ae
test byte [0x1000b038], 8
jne 0x10008770
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 0x100083d5
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 0x10008570
test byte [0x1000b038], 4
jne 0x10008a5c
mov eax, dword [ebp - 0x18]
mov edi, 0x80020009
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x100083ae
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x2d
jne 0x100086ef
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 0x100082c1
jmp 0x10008380
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], 0x1000b038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x18]
jmp 0x10008470
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 0x10008289
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], 0x1000b038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebx]
jmp 0x1000867d
mov edi, eax
jmp 0x10008389
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10008380
mov edx, dword [ebx]
cmp word [edx], 0
je 0x10008bb2
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100087e8
sub eax, edx
add eax, 2
xor ecx, ecx
cmp dword [ebp - 0x10], 0
je 0x10008801
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 0x100082c1
test byte [0x1000b038], 4
jne 0x10008b7f
test edx, edx
jle 0x100086fb
movzx eax, dx
or eax, 0x80070000
cmp esi, 2
mov edi, eax
setne byte [ebp - 0x28]
jmp 0x10008389
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10008380
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 0x100088ac
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 0x100086fb
test byte [0x1000b038], 4
jne 0x10008b4c
movzx edx, cx
or edx, 0x80070000
test ecx, ecx
cmovle edx, ecx
jmp 0x100086fb
mov edx, ebx
lea eax, [ebp - 0x24]
call sym._get_word
mov edx, eax
test eax, eax
js 0x10008380
mov eax, dword [ebx]
cmp word [eax], 0
mov dword [ebp - 0x3c], eax
je 0x10008bbc
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10008938
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 0x10008bd5
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100089e1
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 0x100089cc
call sym._xdigit_to_int
mov esi, eax
cmp eax, 0xffffffff
je 0x10008aa6
movzx eax, word [ebx + edi*4 + 2]
call sym._xdigit_to_int
cmp eax, 0xffffffff
je 0x10008aa6
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 0x10008b35
movzx eax, word [ebx + edi*4]
test ax, ax
jne 0x10008990
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 0x100089ed
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 0x10008a45
test byte [0x1000b038], 4
jne 0x10008be6
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 0x100086fb
mov dword [esp + 0xc], str.value_not_set__n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x100086c5
mov edi, eax
test byte [0x1000b038], 4
jne 0x10008b08
movzx eax, di
mov byte [ebp - 0x28], 1
or eax, 0x80070000
test edi, edi
cmovg edi, eax
jmp 0x10008389
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
mov edx, 0x80004005
mov edi, dword [ebp + 8]
jmp 0x10008a45
cmp esi, 2
mov edi, 0x80020009
setne byte [ebp - 0x28]
test byte [0x1000b038], 4
je 0x10008389
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], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10008389
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], 0x1000b038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10008a90
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 0x100089e1
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], 0x1000b038
mov dword [esp], 2
mov dword [ebp - 0x28], eax
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x28]
jmp 0x100088fb
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], 0x1000b038
mov dword [esp], 2
mov dword [ebp - 0x28], eax
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x28]
jmp 0x10008843
mov eax, 2
jmp 0x100087f6
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 0x10008c19
cmp esi, 2
mov edi, 0x8007000e
setne byte [ebp - 0x28]
jmp 0x10008389
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], 0x1000b038
mov dword [esp], 2
mov dword [ebp - 0x38], eax
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x38]
jmp 0x10008a37
mov dword [ebp - 0x48], 0
jmp 0x100089e1