Function at 0x1400714e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r8d, 2
cmp qword [rcx + 0x708], 0
mov ebp, edx
mov rsi, rcx
mov edx, 2
je 0x140071790
call fcn.14005b6d0
mov rbx, qword [rsi + 0xa18]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov r13, qword [rsi + 0x708]
test rbx, rbx
je 0x1400715d2
mov rcx, rbx
call fcn.14006f500
cmp byte [r13], 0x2d
jne 0x14007165d
cmp byte [r13 + 1], 0
jne 0x14007165d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x83
mov edx, 1
lea rcx, str._Netscape_HTTP_Cookie_File_n_https:__curl.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
mov r9, rax
mov qword [rsp + 0x30], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
movsxd rax, dword [rbx + 0x200]
test eax, eax
je 0x1400715c2
lea rdx, [rax*8]
mov rax, qword [0x1401847f0]
mov ecx, 1
call qword [rax]
mov r12, qword [0x140184840]
mov r14, rax
test rax, rax
je 0x1400717b0
mov byte [rsp + 0x2f], 1
jmp 0x1400716d3
mov rcx, qword [rsp + 0x38]
mov r12, qword [0x140184840]
call qword [r12]
test bpl, bpl
je 0x140071640
mov rax, qword [rsi + 0xe8]
mov r12, qword [rsi + 0xa18]
test rax, rax
je 0x1400715f3
cmp qword [rax + 0xb8], r12
je 0x140071640
test r12, r12
je 0x140071635
mov rdi, r12
lea rbp, [r12 + 0x1f8]
nop dword [rax + rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x140071620
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14006f4a0
test rbx, rbx
jne 0x140071610
add rdi, 8
cmp rdi, rbp
jne 0x140071608
mov rax, qword [0x140184840]
mov rcx, r12
call qword [rax]
mov qword [rsi + 0xa18], 0
mov edx, 2
mov rcx, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14005b720
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, r13
mov rcx, rsi
call fcn.140073520
test eax, eax
jne 0x14007179a
mov r9, qword [rsp + 0x30]
mov r8d, 0x83
mov edx, 1
lea rcx, str._Netscape_HTTP_Cookie_File_n_https:__curl.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
movsxd rax, dword [rbx + 0x200]
mov r12, qword [0x140184840]
test eax, eax
je 0x1400717d8
lea rdx, [rax*8]
mov rax, qword [0x1401847f0]
mov ecx, 1
call qword [rax]
mov byte [rsp + 0x2f], 0
mov r14, rax
test rax, rax
je 0x14007181f
mov rdx, rbx
lea rcx, [rbx + 0x1f8]
xor ebx, ebx
nop
mov rax, qword [rdx]
test rax, rax
je 0x140071707
nop dword [rax + rax]
cmp qword [rax + 0x28], 0
je 0x1400716ff
mov qword [r14 + rbx*8], rax
add rbx, 1
mov rax, qword [rax]
test rax, rax
jne 0x1400716f0
add rdx, 8
cmp rdx, rcx
jne 0x1400716e0
lea r9, [0x14006f4e0]
mov r8d, 8
mov rdx, rbx
mov rcx, r14
call sub.api_ms_win_crt_utility_l1_1_0.dll_qsort
test rbx, rbx
je 0x1400717ba
mov r12, qword [0x140184840]
xor edi, edi
xor eax, eax
jmp 0x140071764
mov rcx, qword [rsp + 0x30]
mov r8, rax
lea rdx, [0x14017726c]
call fcn.14004f9f0
mov rcx, r15
call qword [r12]
lea eax, [rdi + 1]
mov rdi, rax
cmp rax, rbx
jae 0x1400717c1
mov rcx, qword [r14 + rax*8]
call fcn.14006f7d0
mov r15, rax
test rax, rax
jne 0x14007173e
mov rcx, r14
call qword [r12]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400717b0
cmp byte [rsp + 0x2f], 0
jne 0x1400717b0
jmp 0x1400717ab
call fcn.14005b6d0
jmp 0x1400715d2
mov rcx, qword [rsp + 0x30]
mov r12, qword [0x140184840]
test rcx, rcx
je 0x1400717b0
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [rsp + 0x38]
jmp 0x1400715ce
mov r12, qword [0x140184840]
mov rcx, r14
call qword [r12]
cmp byte [rsp + 0x2f], 0
mov rcx, qword [rsp + 0x38]
jne 0x1400715ce
mov rcx, qword [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], 0
test rcx, rcx
je 0x1400715ce
mov rdx, r13
call fcn.1400563c0
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400715ce
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x1400717ab
jmp 0x1400717b0
mov r12, qword [0x140184840]
jmp 0x14007177c