Function at 0x14006df58
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rbp + 0x180], rax
and dword [rsp + 0x68], 0
mov ebx, ecx
mov rcx, qword [0x14009b020]
lea r12, [0x14009b020]
lea r13, [0x14008ea18]
mov r14b, 2
cmp rcx, r12
je 0x14006dfcb
test byte [rcx + 0x1c], r14b
je 0x14006dfcb
cmp byte [rcx + 0x19], 5
jb 0x14006dfcb
mov rcx, qword [rcx + 0x10]
mov edx, 0x12
mov r8, r13
call fcn.1400042fc
lea r9, str.SoftwareMicrosoftFaxDevices
mov dword [rsp + 0x20], ebx
lea r8, str._s_010lu
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140004280
mov ebx, eax
test eax, eax
jns 0x14006e036
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e01e
test byte [rcx + 0x1c], r14b
je 0x14006e01e
cmp byte [rcx + 0x19], r14b
jb 0x14006e01e
mov rcx, qword [rcx + 0x10]
mov edx, 0x13
mov r9d, eax
mov r8, r13
call fcn.140004328
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x14006e02f
movzx ebx, bx
mov eax, ebx
jmp 0x14006e2c0
mov r9d, 0x2001f
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006ec14
mov rsi, rax
test rax, rax
jne 0x14006e0a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e2be
test byte [rcx + 0x1c], r14b
je 0x14006e2be
mov bl, 3
cmp byte [rcx + 0x19], bl
jb 0x14006e2be
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x14]
mov r9d, eax
mov r8, r13
call fcn.1400046fc
jmp 0x14006e2be
lea rdx, str.F10A5326_0261_4715_B367_2970427BBD99
mov rcx, rsi
call fcn.14006e2f4
mov bl, 3
test eax, eax
jne 0x14006e0dd
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e0dd
test byte [rcx + 0x1c], r14b
je 0x14006e0dd
cmp byte [rcx + 0x19], bl
jb 0x14006e0dd
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x15]
mov r8, r13
call fcn.1400042fc
lea rdx, str.Permanent_Lineid
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14006e11f
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e11f
test byte [rcx + 0x1c], r14b
je 0x14006e11f
cmp byte [rcx + 0x19], bl
jb 0x14006e11f
mov rcx, qword [rcx + 0x10]
mov edx, 0x16
mov r8, r13
call fcn.1400042fc
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x68]
and qword [rsp + 0x50], 0
xor r9d, r9d
and dword [rsp + 0x60], 0
xor r8d, r8d
and dword [rsp + 0x64], 0
xor edx, edx
mov qword [rsp + 0x48], rax
mov rcx, rsi
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14006e1af
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e2af
test byte [rcx + 0x1c], r14b
je 0x14006e2af
cmp byte [rcx + 0x19], bl
jb 0x14006e2af
mov edx, 0x17
jmp 0x14006e2a3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp dword [rsp + 0x60], 0
jne 0x14006e2be
cmp dword [rsp + 0x64], 0
jne 0x14006e2be
mov r9d, 0x30006
lea rdx, str.SoftwareMicrosoftFaxDevices
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006ec14
mov rsi, rax
test rax, rax
jne 0x14006e241
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e02f
test byte [rcx + 0x1c], r14b
je 0x14006e02f
cmp byte [rcx + 0x19], r14b
jb 0x14006e02f
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x18]
mov r9d, eax
mov r8, r13
call fcn.140023570
jmp 0x14006e02f
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e26d
test byte [rcx + 0x1c], r14b
je 0x14006e26d
cmp byte [rcx + 0x19], bl
jb 0x14006e26d
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x52]
mov edx, 0x19
mov r8, r13
call fcn.1400044cc
lea rdx, [rbp - 0x52]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14006e2af
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006e2af
test byte [rcx + 0x1c], r14b
je 0x14006e2af
cmp byte [rcx + 0x19], r14b
jb 0x14006e2af
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.1400042fc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret