Function at 0x14007c618
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x250
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
mov edi, 1
call sub.msvcrt.dll_memset
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x14007c68e
test byte [rcx + 0x1c], 2
je 0x14007c68e
cmp byte [rcx + 0x19], 5
jb 0x14007c68e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x23]
lea r8, [0x14008fb78]
call fcn.1400042fc
lea r9, str.SoftwareMicrosoftFaxSetupOriginal_Setup_Data
mov dword [rsp + 0x20], ebx
lea r8, str._s_010d
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.140004280
mov ebx, eax
test eax, eax
jns 0x14007c70b
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14007c6e5
test byte [rcx + 0x1c], 2
je 0x14007c6e5
cmp byte [rcx + 0x19], 2
jb 0x14007c6e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008fb78]
mov edx, 0x25
mov r9d, eax
call fcn.140004328
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x14007c6f6
movzx ebx, bx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14007c898
mov r12, 0xffffffff80000002
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x20019
xor r8d, r8d
call fcn.14006ec14
mov rbx, rax
test rax, rax
jne 0x14007c798
mov r9d, 0x20019
lea rdx, str.SoftwareMicrosoftFaxSetupOriginal_Setup_Data
xor r8d, r8d
mov rcx, r12
xor edi, edi
call fcn.14006ec14
mov rbx, rax
test rax, rax
jne 0x14007c798
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x14007c704
test byte [rax + 0x1c], 2
je 0x14007c704
cmp byte [rax + 0x19], 2
jb 0x14007c704
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008fb78]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14007c704
lea rcx, [0x14008b4d8]
call fcn.14006b71c
lea r9, [0x14008bcf8]
mov qword [rsi + 0x10], rax
lea r8, str.CSID
mov edx, 1
mov rcx, rbx
call fcn.14006da70
lea r9, [0x14008bcf8]
mov qword [rsi], rax
lea r8, str.TSID
mov edx, 1
mov rcx, rbx
call fcn.14006da70
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsi + 8], rax
lea rdx, str.Rings
mov rcx, rbx
call fcn.14006e9c0
neg eax
lea r8, [rsp + 0x30]
lea rdx, str.Flags
sbb ecx, ecx
xor r9d, r9d
and ecx, dword [rsp + 0x30]
and dword [rsp + 0x30], 0
mov dword [rsi + 0x18], ecx
mov rcx, rbx
call fcn.14006e9c0
neg eax
mov rcx, rbx
sbb edx, edx
and edx, dword [rsp + 0x30]
mov dword [rsi + 0x1c], edx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp edi, 1
jne 0x14007c893
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14007c893
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14007c893
test byte [rcx + 0x1c], 2
je 0x14007c893
cmp byte [rcx + 0x19], 2
jb 0x14007c893
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008fb78]
call fcn.1400046fc
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret