Function at 0x1400790f0
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 0x140079166
test byte [rcx + 0x1c], 2
je 0x140079166
cmp byte [rcx + 0x19], 5
jb 0x140079166
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x23]
lea r8, [0x14008c658]
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 0x1400791e6
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x1400791bd
test byte [rcx + 0x1c], 2
je 0x1400791bd
cmp byte [rcx + 0x19], 2
jb 0x1400791bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c658]
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 0x140079373
mov r12, 0xffffffff80000002
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x20019
xor r8d, r8d
call fcn.14006abdc
mov rbx, rax
test rax, rax
jne 0x140079273
mov r9d, 0x20019
lea rdx, str.SoftwareMicrosoftFaxSetupOriginal_Setup_Data
xor r8d, r8d
mov rcx, r12
xor edi, edi
call fcn.14006abdc
mov rbx, rax
test rax, rax
jne 0x140079273
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x1400791df
test byte [rax + 0x1c], 2
je 0x1400791df
cmp byte [rax + 0x19], 2
jb 0x1400791df
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008c658]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x1400791df
lea rcx, [0x140087fc8]
call fcn.140067d3c
lea r9, [0x1400887e8]
mov qword [rsi + 0x10], rax
lea r8, str.CSID
mov edx, 1
mov rcx, rbx
call fcn.14006acbc
lea r9, [0x1400887e8]
mov qword [rsi], rax
lea r8, str.TSID
mov edx, 1
mov rcx, rbx
call fcn.14006acbc
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.14006af6c
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.14006af6c
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 0x14007936e
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 0x14007936e
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14007936e
test byte [rcx + 0x1c], 2
je 0x14007936e
cmp byte [rcx + 0x19], 2
jb 0x14007936e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x14008c658]
call fcn.140001050
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e560
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret