Function at 0x1400797c0
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 0x140079836
test byte [rcx + 0x1c], 2
je 0x140079836
cmp byte [rcx + 0x19], 5
jb 0x140079836
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x23]
lea r8, [0x14008c6c8]
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 0x1400798b6
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14007988d
test byte [rcx + 0x1c], 2
je 0x14007988d
cmp byte [rcx + 0x19], 2
jb 0x14007988d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c6c8]
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 0x140079a43
mov r12, 0xffffffff80000002
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x20019
xor r8d, r8d
call fcn.14006b230
mov rbx, rax
test rax, rax
jne 0x140079943
mov r9d, 0x20019
lea rdx, str.SoftwareMicrosoftFaxSetupOriginal_Setup_Data
xor r8d, r8d
mov rcx, r12
xor edi, edi
call fcn.14006b230
mov rbx, rax
test rax, rax
jne 0x140079943
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x1400798af
test byte [rax + 0x1c], 2
je 0x1400798af
cmp byte [rax + 0x19], 2
jb 0x1400798af
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008c6c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x1400798af
lea rcx, [0x140087fe8]
call fcn.140067e3c
lea r9, [0x140088808]
mov qword [rsi + 0x10], rax
lea r8, str.CSID
mov edx, 1
mov rcx, rbx
call fcn.14006b310
lea r9, [0x140088808]
mov qword [rsi], rax
lea r8, str.TSID
mov edx, 1
mov rcx, rbx
call fcn.14006b310
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.14006b5c0
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.14006b5c0
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 0x140079a3e
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 0x140079a3e
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140079a3e
test byte [rcx + 0x1c], 2
je 0x140079a3e
cmp byte [rcx + 0x19], 2
jb 0x140079a3e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008c6c8]
call fcn.140001050
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret