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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rax, qword [rcx]
lea rbp, [rsp + 0x60]
mov r13, rdx
mov rdx, r8
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xd0], rcx
mov rcx, rbp
mov rbx, r8
mov edi, r9d
mov qword [rsp + 0x68], 0
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008850
mov rax, qword [sym.imp.ucrtbase.dll_malloc]
mov ecx, 0x100
xor esi, esi
mov qword [rsp + 0x38], rax
call rax
mov r12, qword [sym.imp.kernel32.dll_lstrcmpiW]
mov qword [rsp + 0x78], pe_nt_image_headers64
mov qword [rsp + 0x70], rax
jmp 0x1000867c
mov rcx, qword [rbx]
lea rdx, str.ForceRemove
mov esi, 3
call r12
test eax, eax
jne 0x10008870
mov rdx, rbx
mov rcx, rbp
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008b08
test byte [0x1000c060], 8
jne 0x10008710
test edi, edi
je 0x100086b0
mov r9, qword [rbx]
cmp esi, 2
je 0x10008970
cmp esi, 4
je 0x10008950
cmp esi, 3
je 0x10008b58
lea r8, [rsp + 0x68]
mov rdx, r9
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegCreateKeyW]
mov r15d, eax
test eax, eax
jne 0x10008db6
mov rdx, qword [rsp + 0x60]
cmp word [rdx], 0x3d
je 0x10008997
lea eax, [rsi - 2]
and eax, 0xfffffffd
cmp esi, 2
setne r14b
test eax, eax
je 0x1000861e
mov rax, qword [rsp + 0x60]
cmp word [rax], 0x7b
je 0x10008902
test byte [0x1000c060], 8
jne 0x100086da
test edi, edi
jne 0x10008640
test esi, esi
je 0x10008750
cmp esi, 3
je 0x10008750
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10008655
test r14b, r14b
je 0x10008655
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x7c], 0
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008820
mov rcx, qword [rbx]
cmp word [rcx + 2], 0
jne 0x10008690
cmp word [rcx], 0x7d
je 0x10008b08
lea rdx, str.NoRemove
call r12
test eax, eax
jne 0x10008570
mov esi, 1
jmp 0x1000858a
lea eax, [rsi - 2]
test eax, 0xfffffffd
jne 0x100088b0
cmp esi, 4
jne 0x10008a40
mov r14d, 1
test byte [0x1000c060], 8
je 0x1000862b
mov dword [rsp + 0x28], esi
lea r9, str._x__x_n
lea r8, str.do_process_key
mov ecx, 3
mov dword [rsp + 0x20], edi
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x1000862b
mov rcx, qword [rbx]
mov edx, 0xffffffff
call sym.wine_dbgstr_wn
lea r9, str.name___s_n
mov ecx, 3
lea r8, str.do_process_key
mov qword [rsp + 0x20], rax
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x100085ad
mov r8, qword [rsp + 0x70]
test byte [0x1000c060], 8
jne 0x10008b18
mov rdx, r8
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegDeleteKeyW]
jmp 0x10008640
mov rdx, rbx
mov rcx, rbp
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008b08
mov rdx, qword [rbx]
cmp word [rdx], 0
je 0x10008eb2
mov rax, rdx
nop
add rax, 2
cmp word [rax], 0
jne 0x100087a0
sub rax, rdx
sar rax, 1
lea eax, [rax + rax + 2]
mov r8d, dword [rsp + 0x7c]
xor r10d, r10d
test r8d, r8d
je 0x100087c6
mov r10, qword [rsp + 0x70]
mov qword [rsp + 0x20], rdx
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov rdx, r10
mov dword [rsp + 0x28], eax
mov r9d, 1
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov r15d, eax
test eax, eax
je 0x100085fe
test byte [0x1000c060], 4
jne 0x10008e8a
test r15d, r15d
jle 0x10008afa
movzx r10d, r15w
or r10d, 0x80070000
cmp esi, 2
mov r15d, r10d
setne r14b
nop dword [rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10008840
test r14b, r14b
je 0x10008840
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rax, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xd0]
mov qword [rdi], rax
mov eax, r15d
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx]
lea rdx, [0x1000fb2e]
mov esi, 2
call r12
test eax, eax
je 0x1000858a
mov rcx, qword [rbx]
lea rdx, str.Delete
mov esi, 4
call r12
test eax, eax
je 0x1000858a
xor esi, esi
jmp 0x100085a0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 0xffffffff
call sym.strbuf_write
mov rdx, qword [rbx]
lea r8, [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
mov r14d, eax
test eax, eax
jne 0x10008a88
mov rax, qword [rsp + 0x60]
cmp word [rax], 0x3d
mov rdx, rax
je 0x10008997
cmp esi, 2
setne r14b
cmp word [rax], 0x7b
jne 0x1000861e
movzx ecx, word [rax + 2]
call qword [sym.imp.ucrtbase.dll_iswspace]
test eax, eax
je 0x1000861e
mov rdx, rbx
mov rcx, rbp
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008820
mov rdx, qword [rsp + 0x68]
mov r9d, edi
mov r8, rbx
mov rcx, rbp
call sym.do_process_key
mov r15d, eax
test eax, eax
jns 0x1000861e
jmp 0x10008820
test byte [0x1000c060], 8
jne 0x10008b70
mov rdx, r9
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
jmp 0x100086c7
lea rdx, [rsp + 0x70]
mov r8d, 0xffffffff
mov rcx, r9
mov qword [rsp + 0x68], r13
call sym.strbuf_write
mov rdx, qword [rsp + 0x60]
cmp word [rdx], 0x3d
jne 0x10008a60
add rdx, 2
mov rcx, rbp
mov qword [rsp + 0x60], rdx
mov rdx, rbx
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008b08
cmp dword [rbx + 0xc], 1
jne 0x10008dea
test edi, edi
je 0x10008ad8
mov rcx, qword [rbx]
movzx eax, word [rcx]
cmp ax, 0x64
je 0x10008d00
cmp ax, 0x73
je 0x10008778
cmp ax, 0x62
je 0x10008bb0
cmp esi, 2
mov r15d, 0x80020009
setne r14b
test byte [0x1000c060], 4
je 0x10008820
mov edx, 0xffffffff
call sym.wine_dbgstr_wn
lea r9, str.Wrong_resource_type:__s_n
mov ecx, 2
lea r8, str.do_process_key
mov qword [rsp + 0x20], rax
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x10008820
mov rdx, qword [rsp + 0x60]
cmp word [rdx], 0x3d
je 0x10008997
cmp esi, 2
jne 0x10008601
nop dword [rax + rax]
test byte [0x1000c060], 4
jne 0x10008d92
mov rcx, qword [rsp + 0x70]
mov r15d, 0x80020009
call qword [sym.imp.ucrtbase.dll_free]
jmp 0x10008840
test byte [0x1000c060], 4
je 0x100088df
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call sym.wine_dbgstr_wn
mov dword [rsp + 0x28], r14d
lea r9, str.Could_not_open_key__s:__08lx_n
lea r8, str.do_process_key
mov qword [rsp + 0x20], rax
lea rdx, [0x1000c060]
mov ecx, 2
call sym.wine_dbg_log.constprop.0_3
jmp 0x100088df
mov rax, qword [rsp + 0x60]
cmp word [rax], 0x2d
jne 0x10008aec
add rax, 2
mov qword [rsp + 0x60], rax
mov rdx, rbx
mov rcx, rbp
call sym.get_word
mov r15d, eax
test r15d, r15d
jns 0x100085fe
nop dword [rax + rax]
cmp esi, 2
setne r14b
jmp 0x10008820
mov rcx, r8
mov edx, 0xffffffff
call sym.wine_dbgstr_wn
lea r8, str.do_process_key
mov ecx, 3
lea r9, str.Deleting__s_n
mov qword [rsp + 0x20], rax
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
mov r8, qword [rsp + 0x70]
jmp 0x10008762
mov rdx, r9
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov r9, qword [rbx]
jmp 0x100085d3
mov rcx, r9
mov edx, 0xffffffff
call sym.wine_dbgstr_wn
lea r9, str.Deleting__s_n
mov ecx, 3
lea r8, str.do_process_key
mov qword [rsp + 0x20], rax
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
mov r9, qword [rbx]
jmp 0x1000895d
mov rdx, rbx
mov rcx, rbp
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008b08
mov r14, qword [rbx]
movzx edx, word [r14]
test dx, dx
je 0x10008ebc
mov rax, r14
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x10008be0
sub rax, r14
mov dword [rsp + 0x4c], edx
sar rax, 1
add eax, 1
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
mov dword [rsp + 0x48], eax
mov ecx, eax
mov rax, qword [rsp + 0x38]
call rax
mov edx, dword [rsp + 0x4c]
test rax, rax
mov qword [rsp + 0x40], rax
je 0x10008ecf
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x10008c88
mov r10, qword [rsp + 0x40]
lea r9d, [rax - 1]
xor r11d, r11d
jmp 0x10008c3b
mov r11, rcx
movzx ecx, dx
call sym.xdigit_to_int
mov r8d, eax
cmp eax, 0xffffffff
je 0x10008ddf
lea eax, [r11 + r11 + 1]
movzx ecx, word [r14 + rax*2]
call sym.xdigit_to_int
cmp eax, 0xffffffff
je 0x10008ddf
shl r8d, 4
lea rcx, [r11 + 1]
or r8d, eax
mov byte [r10 + r11], r8b
cmp r11, r9
je 0x10008c88
lea eax, [rcx + rcx]
movzx edx, word [r14 + rax*2]
test dx, dx
jne 0x10008c38
mov eax, dword [rsp + 0x7c]
xor edx, edx
test eax, eax
je 0x10008c97
mov rdx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
je 0x10008ce6
test byte [0x1000c060], 4
jne 0x10008ee1
movzx r10d, r14w
or r10d, 0x80070000
test r14d, r14d
cmovg r14d, r10d
mov r15d, r14d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ucrtbase.dll_free]
jmp 0x10008afa
mov rdx, rbx
mov rcx, rbp
call sym.get_word
mov r15d, eax
test eax, eax
js 0x10008b08
mov rcx, qword [rbx]
xor edx, edx
mov r8d, 0xa
call qword [sym.imp.ucrtbase.dll_wcstoul]
mov ecx, dword [rsp + 0x7c]
xor edx, edx
mov dword [rsp + 0x5c], eax
test ecx, ecx
je 0x10008d3a
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x5c]
mov rcx, qword [rsp + 0x68]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
je 0x10008afa
test byte [0x1000c060], 4
jne 0x10008e62
movzx r10d, r14w
or r10d, 0x80070000
test r14d, r14d
cmovg r14d, r10d
mov r15d, r14d
jmp 0x10008afa
lea r9, str.value_not_set__n
lea r8, str.do_process_key
mov ecx, 2
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x10008a6d
test byte [0x1000c060], 4
jne 0x10008e3a
movzx eax, r15w
mov edx, r15d
mov r14d, 1
or eax, 0x80070000
test r15d, r15d
cmovg edx, eax
mov r15d, edx
jmp 0x10008820
mov r15d, 0x80004005
jmp 0x10008ce6
cmp esi, 2
mov r15d, 0x80020009
setne r14b
test byte [0x1000c060], 4
je 0x10008820
mov rcx, qword [rbx]
mov edx, 0xffffffff
call sym.wine_dbgstr_wn
lea r9, str.Wrong_registry_type:__s_n
mov ecx, 2
lea r8, str.do_process_key
mov qword [rsp + 0x20], rax
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x10008820
mov dword [rsp + 0x20], eax
lea r9, str.Could_not_create_open__key:__08lx_n
lea r8, str.do_process_key
mov ecx, 2
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x10008dbf
mov dword [rsp + 0x20], eax
lea r9, str.Could_set_value_of_key:__08lx_n
lea r8, str.do_process_key
mov ecx, 2
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x10008d78
mov dword [rsp + 0x20], eax
lea r9, str.Could_set_value_of_key:__08lx_n
lea r8, str.do_process_key
mov ecx, 2
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x100087fe
mov eax, 2
jmp 0x100087b4
mov rax, qword [rsp + 0x38]
xor ecx, ecx
call rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x10008f09
cmp esi, 2
mov r15d, 0x8007000e
setne r14b
jmp 0x10008820
mov dword [rsp + 0x20], eax
lea r9, str.Could_not_set_value_of_key:_0x_08lx_n
lea r8, str.do_process_key
mov ecx, 2
lea rdx, [0x1000c060]
call sym.wine_dbg_log.constprop.0_3
jmp 0x10008cd1
mov dword [rsp + 0x48], 0
jmp 0x10008c88