Function at 0x140016910
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov rdx, rcx
mov rsi, qword [0x1400416c8]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
cmp qword [rcx + 0x18], 8
jb 0x140016978
mov rdx, qword [rcx]
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], rsi
mov word [rsp + 0x98], si
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x98]
call fcn.14000ce60
nop
lea r8, [rsp + 0x98]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14000b8a0
nop
cmp qword [rsp + 0xb0], 8
jb 0x1400169e3
mov rcx, qword [rsp + 0x98]
call fcn.14001a248
mov r14d, esi
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
movabs rax, 0x6666666666666667
mov edi, r14d
mov rcx, r15
sub rcx, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x140016cc9
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
lea rax, [rdi + rdi*4]
lea rdx, [r13 + rax*8]
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], rsi
mov word [rsp + 0x70], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.14000c9d0
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.14000ba30
mov r12, qword [rsp + 0xa0]
mov rcx, r12
mov rbx, qword [rsp + 0x98]
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 3
je 0x140016b36
test rbx, rbx
je 0x140016af2
mov rdi, rbx
nop dword [rax]
cmp rdi, r12
je 0x140016ae9
cmp qword [rdi + 0x18], 8
jb 0x140016ad4
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
add rdi, 0x28
jmp 0x140016ac0
mov rcx, rbx
call fcn.14001a248
nop
test r13, r13
je 0x140016b31
mov rdi, r13
nop word [rax + rax]
cmp rdi, r15
je 0x140016b29
cmp qword [rdi + 0x18], 8
jb 0x140016b14
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
add rdi, 0x28
jmp 0x140016b00
mov rcx, r13
call fcn.14001a248
jmp 0x140016d16
mov qword [0x1400416c8], 0xffffffff80000002
mov esi, 1
lea rdi, [rbx + 0x50]
mov r8, qword [rdi + 0x10]
cmp r8, rsi
jae 0x140016b5b
mov rsi, r8
test r8, r8
je 0x140016bab
mov rax, qword [rdi + 0x18]
cmp rax, 8
jb 0x140016b6a
mov rdx, qword [rdi]
jmp 0x140016b6d
mov rdx, rdi
cmp rax, 8
jb 0x140016b78
mov rcx, qword [rdi]
jmp 0x140016b7b
mov rcx, rdi
sub r8, rsi
add r8, r8
lea rdx, [rdx + rsi*2]
call fcn.14001aa60
mov r11, qword [rdi + 0x10]
sub r11, rsi
mov qword [rdi + 0x10], r11
cmp qword [rdi + 0x18], 8
jb 0x140016ba1
mov rax, qword [rdi]
jmp 0x140016ba4
mov rax, rdi
xor ecx, ecx
mov word [rax + r11*2], cx
mov r9, qword [rbx + 0x60]
mov esi, 1
dec r9
mov r8, qword [rdi + 0x10]
cmp r8, r9
jae 0x140016bcc
lea rcx, str.invalid_string_position
call fcn.1400195ac
sub r8, r9
cmp r8, rsi
jae 0x140016bdc
mov rsi, r8
test r8, r8
je 0x140016c36
mov rax, qword [rdi + 0x18]
cmp rax, 8
jb 0x140016beb
mov rdx, qword [rdi]
jmp 0x140016bee
mov rdx, rdi
cmp rax, 8
jb 0x140016bf9
mov rcx, qword [rdi]
jmp 0x140016bfc
mov rcx, rdi
sub r8, rsi
add r8, r8
lea rax, [r9 + rsi]
lea rdx, [rdx + rax*2]
lea rcx, [rcx + r9*2]
call fcn.14001aa60
mov r11, qword [rdi + 0x10]
sub r11, rsi
mov qword [rdi + 0x10], r11
cmp qword [rdi + 0x18], 8
jb 0x140016c2a
mov rax, qword [rdi]
jmp 0x140016c2d
mov rax, rdi
xor esi, esi
mov word [rax + r11*2], si
jmp 0x140016c38
xor esi, esi
cmp qword [rdi + 0x18], 8
jb 0x140016c42
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1400418d8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x1400416c8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016c88
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdi, rbx
nop dword [rax + rax]
cmp rdi, r12
je 0x140016cb9
cmp qword [rdi + 0x18], 8
jb 0x140016ca4
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
add rdi, 0x28
jmp 0x140016c90
mov rcx, rbx
call fcn.14001a248
inc r14d
jmp 0x1400169f0
test r13, r13
je 0x140016d03
mov rdi, r13
cmp rdi, r15
je 0x140016cfa
cmp qword [rdi + 0x18], 8
jb 0x140016ce5
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
add rdi, 0x28
jmp 0x140016cd1
mov rcx, r13
call fcn.14001a248
nop
mov rsi, qword [rsp + 0x38]
jmp 0x140016d0f
mov qword [0x1400416c8], rsi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140019650
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret