Function at 0x140078f50
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 [0x14009b940]
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 [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140078fc6
test byte [rcx + 0x1c], 2
je 0x140078fc6
cmp byte [rcx + 0x19], 5
jb 0x140078fc6
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x23]
lea r8, [0x14008c4c8]
call fcn.140001024
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.140002ac0
mov ebx, eax
test eax, eax
jns 0x140079046
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14007901d
test byte [rcx + 0x1c], 2
je 0x14007901d
cmp byte [rcx + 0x19], 2
jb 0x14007901d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
mov edx, 0x25
mov r9d, eax
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400791d3
mov r12, 0xffffffff80000002
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x20019
xor r8d, r8d
call fcn.14006aa3c
mov rbx, rax
test rax, rax
jne 0x1400790d3
mov r9d, 0x20019
lea rdx, str.SoftwareMicrosoftFaxSetupOriginal_Setup_Data
xor r8d, r8d
mov rcx, r12
xor edi, edi
call fcn.14006aa3c
mov rbx, rax
test rax, rax
jne 0x1400790d3
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14007903f
test byte [rax + 0x1c], 2
je 0x14007903f
cmp byte [rax + 0x19], 2
jb 0x14007903f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008c4c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x14007903f
lea rcx, [0x140087e38]
call fcn.140067b9c
lea r9, [0x140088658]
mov qword [rsi + 0x10], rax
lea r8, str.CSID
mov edx, 1
mov rcx, rbx
call fcn.14006ab1c
lea r9, [0x140088658]
mov qword [rsi], rax
lea r8, str.TSID
mov edx, 1
mov rcx, rbx
call fcn.14006ab1c
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.14006adcc
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.14006adcc
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 0x1400791ce
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 0x1400791ce
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x1400791ce
test byte [rcx + 0x1c], 2
je 0x1400791ce
cmp byte [rcx + 0x19], 2
jb 0x1400791ce
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008c4c8]
call fcn.140001050
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e3c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret