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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, ecx
sub esp, 0x58
mov eax, dword [eax]
mov dword [ebp - 0x28], edx
mov edx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
call sym._get_word
mov esi, eax
test eax, eax
js 0x10009c4b
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x100
mov dword [ebp - 0x3c], eax
call eax
xor ecx, ecx
mov dword [ebp - 0x30], edi
mov edi, ebx
mov dword [ebp - 0x18], eax
mov eax, esi
mov esi, ecx
mov dword [ebp - 0x14], pe_nt_image_headers32
mov dword [ebp - 0x10], 0
jmp 0x10009bc6
mov dword [esp + 4], str.ForceRemove
mov eax, dword [edi]
mov esi, 3
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x10009dc0
mov edx, edi
lea eax, [ebp - 0x24]
call sym._get_word
test eax, eax
js 0x10009c10
test byte [0x1000d04c], 8
jne 0x10009ce0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10009c90
mov ebx, dword [edi]
cmp esi, 2
je 0x10009fb0
cmp esi, 4
je 0x10009d50
cmp esi, 3
je 0x1000a0b0
lea eax, [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
mov ebx, dword [ebp - 0x24]
sub esp, 0xc
test eax, eax
jne 0x1000a49c
movzx eax, word [ebx]
cmp ax, 0x3d
je 0x10009ef0
cmp ax, 0x7b
je 0x10009f60
test byte [0x1000d04c], 8
jne 0x10009d87
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10009c68
mov eax, 9
bt eax, esi
jae 0x10009c68
mov ebx, dword [ebp - 0x18]
test byte [0x1000d04c], 8
jne 0x10009ff8
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x20]
sub esp, 8
test eax, eax
je 0x10009baa
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov edx, edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
call sym._get_word
test eax, eax
js 0x10009c10
mov edx, dword [edi]
cmp word [edx + 2], 0
jne 0x10009bd5
cmp word [edx], 0x7d
je 0x10009c10
mov dword [esp + 4], str.NoRemove
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x10009aa8
mov edx, edi
lea eax, [ebp - 0x24]
mov esi, 1
call sym._get_word
test eax, eax
jns 0x10009add
lea esi, [esi]
nop
mov ecx, esi
mov edi, dword [ebp - 0x30]
mov esi, eax
cmp ecx, 2
setne byte [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x10009c49
cmp byte [ebp - 0x2c], 0
je 0x10009c49
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x24]
sub esp, 4
mov dword [edi], ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1000d04c], 8
jne 0x10009d82
lea esi, [esi]
cmp esi, 2
setne dl
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10009baa
test dl, dl
je 0x10009baa
jmp 0x10009b9e
lea eax, [esi - 2]
and eax, 0xfffffffd
jne 0x10009e20
cmp esi, 4
je 0x10009c58
mov ebx, dword [ebp - 0x24]
cmp word [ebx], 0x3d
je 0x1000a0d0
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
test byte [0x1000d04c], 4
jne 0x1000a3ba
mov dword [esp], esi
mov esi, 0x80020009
call dword [sym.imp.ucrtbase.dll_free]
mov dword [edi], ebx
jmp 0x10009c4b
mov ebx, dword [edi]
test ebx, ebx
je 0x1000a068
mov eax, ebx
shr eax, 0x10
je 0x10009fe0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10009d20
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.name___s_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 0x10009aea
test byte [0x1000d04c], 8
jne 0x1000a0e0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov edx, 1
sub esp, 8
test byte [0x1000d04c], 8
je 0x10009c6e
mov esi, 4
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._x__x_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 0x10009b5b
mov dword [esp + 4], 0x10010b8e
mov eax, dword [edi]
mov esi, 2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x10009acb
mov dword [esp + 4], str.Delete
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x1000a150
xor esi, esi
test byte [0x1000d04c], 8
jne 0x10009ce0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10009e20
mov ebx, dword [edi]
jmp 0x10009b12
mov eax, dword [edi]
mov ecx, 0xffffffff
lea edx, [ebp - 0x18]
call sym._strbuf_write
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov ebx, dword [ebp - 0x24]
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x10009b37
test byte [0x1000d04c], 4
je 0x10009b37
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1000a504
shr eax, 0x10
mov dword [ebp - 0x38], ecx
je 0x1000a481
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, dword [ebp - 0x38]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10009eb4
mov eax, dword [ebp - 0x2c]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn.part.0
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_open_key__s:__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
movzx eax, word [ebx]
cmp ax, 0x3d
jne 0x10009b44
lea esi, [esi]
mov byte [ebp - 0x2c], 1
add ebx, 2
mov edx, edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
call sym._get_word
test eax, eax
js 0x1000a50e
cmp dword [edi + 8], 1
jne 0x1000a58c
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000a078
mov ebx, dword [edi]
movzx eax, word [ebx]
cmp ax, 0x64
je 0x1000a340
cmp ax, 0x73
je 0x1000a160
cmp ax, 0x62
je 0x1000a228
mov edi, dword [ebp - 0x30]
test byte [0x1000d04c], 4
jne 0x1000a518
mov esi, 0x80020009
jmp 0x10009c1e
movzx eax, word [ebx + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswspace]
test eax, eax
je 0x10009b4e
mov edx, edi
lea eax, [ebp - 0x24]
call sym._get_word
test eax, eax
js 0x10009f9e
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [esp], eax
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
call sym._do_process_key
test eax, eax
jns 0x10009b4e
mov byte [ebp - 0x2c], 1
mov edi, dword [ebp - 0x30]
mov esi, eax
jmp 0x10009c1e
mov eax, dword [ebp - 0x28]
mov ecx, 0xffffffff
lea edx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, ebx
call sym._strbuf_write
mov ebx, dword [ebp - 0x24]
cmp word [ebx], 0x3d
jne 0x10009cae
mov byte [ebp - 0x2c], 0
jmp 0x10009ef4
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf_3
jmp 0x10009d20
test ebx, ebx
je 0x1000a3a8
mov eax, ebx
shr eax, 0x10
je 0x1000a210
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x1000a036
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Deleting__s_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 0x10009b84
mov eax, str._null_
jmp 0x10009d20
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x2d
jne 0x1000a087
add eax, 2
mov dword [ebp - 0x24], eax
mov edx, edi
lea eax, [ebp - 0x24]
call sym._get_word
test eax, eax
js 0x1000a50e
cmp esi, 2
je 0x10009b4e
mov ebx, dword [ebp - 0x24]
movzx eax, word [ebx]
jmp 0x10009b44
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov ebx, dword [edi]
sub esp, 8
jmp 0x10009b12
mov byte [ebp - 0x2c], 0
mov esi, 2
jmp 0x10009ef4
test ebx, ebx
je 0x1000a45e
mov eax, ebx
shr eax, 0x10
je 0x1000a1f8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x1000a11e
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Deleting__s_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
mov ebx, dword [edi]
jmp 0x10009d5d
mov esi, 4
jmp 0x10009acb
mov edx, edi
lea eax, [ebp - 0x24]
call sym._get_word
test eax, eax
js 0x1000a50e
mov edx, dword [edi]
cmp word [edx], 0
je 0x1000a65d
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x1000a180
sub eax, edx
add eax, 2
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
test ebx, ebx
jne 0x1000a3b2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x1000a099
mov edi, dword [ebp - 0x30]
mov esi, eax
test byte [0x1000d04c], 4
jne 0x1000a4d7
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
jmp 0x10009c1e
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf_3
jmp 0x1000a11e
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf_3
jmp 0x1000a036
mov edx, edi
lea eax, [ebp - 0x24]
call sym._get_word
test eax, eax
js 0x1000a50e
mov eax, dword [edi]
cmp word [eax], 0
mov dword [ebp - 0x44], eax
je 0x1000a60c
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000a250
mov ecx, dword [ebp - 0x44]
sub eax, ecx
sar eax, 1
add eax, 1
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x38], eax
mov ebx, eax
mov dword [esp], eax
mov ecx, dword [ebp - 0x3c]
call ecx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1000a623
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1000a3ec
mov dword [ebp - 0x4c], ebx
xor ecx, ecx
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x40]
jmp 0x1000a2fc
lea edx, [eax - 0x61]
cmp dx, 5
jbe 0x1000a330
lea edx, [eax - 0x41]
cmp dx, 5
ja 0x1000a468
sub eax, 0x37
movzx edx, word [ebx + ecx*4 + 2]
lea esi, [edx - 0x30]
cmp si, 9
jbe 0x1000a323
lea esi, [edx - 0x61]
cmp si, 5
jbe 0x1000a338
lea esi, [edx - 0x41]
cmp si, 5
ja 0x1000a468
sub edx, 0x37
shl eax, 4
or eax, edx
mov byte [edi + ecx], al
add ecx, 1
cmp dword [ebp - 0x38], ecx
je 0x1000a3e3
movzx eax, word [ebx + ecx*4]
test ax, ax
je 0x1000a3e3
lea edx, [eax - 0x30]
cmp dx, 9
ja 0x1000a2a8
movzx edx, word [ebx + ecx*4 + 2]
sub eax, 0x30
lea esi, [edx - 0x30]
cmp si, 9
ja 0x1000a2cf
sub edx, 0x30
jmp 0x1000a2e8
sub eax, 0x57
jmp 0x1000a2c1
sub edx, 0x57
jmp 0x1000a2e8
mov edx, edi
lea eax, [ebp - 0x24]
call sym._get_word
test eax, eax
js 0x1000a50e
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstoul]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
xor eax, eax
test ebx, ebx
je 0x1000a37c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp 0x1000a1b7
mov eax, str._null_
jmp 0x1000a036
mov ecx, dword [ebp - 0x18]
jmp 0x1000a19b
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 0x10009cc1
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x10]
xor eax, eax
test edx, edx
je 0x1000a3f8
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x1000a57b
mov edi, dword [ebp - 0x30]
mov esi, eax
test byte [0x1000d04c], 4
jne 0x1000a67c
test esi, esi
jle 0x1000a44d
movzx esi, si
or esi, 0x80070000
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10009c1e
mov eax, str._null_
jmp 0x1000a11e
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
mov esi, 0x80004005
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10009c1e
mov eax, dword [ebp - 0x2c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_3
mov ecx, dword [ebp - 0x38]
jmp 0x10009eb4
mov edi, dword [ebp - 0x30]
mov esi, eax
test byte [0x1000d04c], 4
jne 0x1000a630
mov eax, dword [ebp - 0x18]
test esi, esi
jle 0x1000a4be
movzx esi, si
or esi, 0x80070000
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10009c3a
jmp 0x10009c49
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
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000a1e0
mov eax, str._null_
jmp 0x10009eb4
mov edi, dword [ebp - 0x30]
mov esi, eax
jmp 0x10009c1e
mov eax, ebx
shr eax, 0x10
je 0x1000a667
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x1000a54e
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Wrong_resource_type:__s_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 0x10009f54
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000a099
mov edi, dword [ebp - 0x30]
test byte [0x1000d04c], 4
je 0x10009f54
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
test ebx, ebx
je 0x1000a6c5
mov eax, ebx
shr eax, 0x10
je 0x1000a6b0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x1000a5df
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Wrong_registry_type:__s_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 0x10009f54
mov dword [esp], 0
mov eax, dword [ebp - 0x3c]
call eax
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x1000a6a9
mov edi, dword [ebp - 0x30]
mov esi, 0x8007000e
jmp 0x10009c1e
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 0x1000a4ae
mov eax, 2
jmp 0x1000a18e
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf_3
jmp 0x1000a54e
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
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000a440
xor ebx, ebx
jmp 0x1000a3ec
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf_3
jmp 0x1000a5df
mov eax, str._null_
jmp 0x1000a5df