Function at 0x1400816a0
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 0x140081950
call sym.Curl_share_lock
mov rbx, qword [rsi + 0xa18]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov r13, qword [rsi + 0x708]
test rbx, rbx
je 0x140081792
mov rcx, rbx
call sym.remove_expired
cmp byte [r13], 0x2d
jne 0x14008181d
cmp byte [r13 + 1], 0
jne 0x14008181d
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 sym.fwrite
movsxd rax, dword [rbx + 0x200]
test eax, eax
je 0x140081782
lea rdx, [rax*8]
mov rax, qword [0x1401869f0]
mov ecx, 1
call qword [rax]
mov r12, qword [0x140186a40]
mov r14, rax
test rax, rax
je 0x140081970
mov byte [rsp + 0x2f], 1
jmp 0x140081893
mov rcx, qword [rsp + 0x38]
mov r12, qword [0x140186a40]
call qword [r12]
test bpl, bpl
je 0x140081800
mov rax, qword [rsi + 0xe8]
mov r12, qword [rsi + 0xa18]
test rax, rax
je 0x1400817b3
cmp qword [rax + 0xb8], r12
je 0x140081800
test r12, r12
je 0x1400817f5
mov rdi, r12
lea rbp, [r12 + 0x1f8]
nop dword [rax + rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400817e0
mov rcx, rbx
mov rbx, qword [rbx]
call sym.freecookie
test rbx, rbx
jne 0x1400817d0
add rdi, 8
cmp rdi, rbp
jne 0x1400817c8
mov rax, qword [0x140186a40]
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 sym.Curl_share_unlock
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, r13
mov rcx, rsi
call sym.Curl_fopen
test eax, eax
jne 0x14008195a
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 sym.fwrite
movsxd rax, dword [rbx + 0x200]
mov r12, qword [0x140186a40]
test eax, eax
je 0x140081998
lea rdx, [rax*8]
mov rax, qword [0x1401869f0]
mov ecx, 1
call qword [rax]
mov byte [rsp + 0x2f], 0
mov r14, rax
test rax, rax
je 0x1400819df
mov rdx, rbx
lea rcx, [rbx + 0x1f8]
xor ebx, ebx
nop
mov rax, qword [rdx]
test rax, rax
je 0x1400818c7
nop dword [rax + rax]
cmp qword [rax + 0x28], 0
je 0x1400818bf
mov qword [r14 + rbx*8], rax
add rbx, 1
mov rax, qword [rax]
test rax, rax
jne 0x1400818b0
add rdx, 8
cmp rdx, rcx
jne 0x1400818a0
lea r9, [sym.cookie_sort_ct]
mov r8d, 8
mov rdx, rbx
mov rcx, r14
call sym.qsort
test rbx, rbx
je 0x14008197a
mov r12, qword [0x140186a40]
xor edi, edi
xor eax, eax
jmp 0x140081924
mov rcx, qword [rsp + 0x30]
mov r8, rax
lea rdx, [0x14017964c]
call sym.curl_mfprintf
mov rcx, r15
call qword [r12]
lea eax, [rdi + 1]
mov rdi, rax
cmp rax, rbx
jae 0x140081981
mov rcx, qword [r14 + rax*8]
call sym.get_netscape_format
mov r15, rax
test rax, rax
jne 0x1400818fe
mov rcx, r14
call qword [r12]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140081970
cmp byte [rsp + 0x2f], 0
jne 0x140081970
jmp 0x14008196b
call sym.Curl_share_lock
jmp 0x140081792
mov rcx, qword [rsp + 0x30]
mov r12, qword [0x140186a40]
test rcx, rcx
je 0x140081970
call sym.fclose
mov rcx, qword [rsp + 0x38]
jmp 0x14008178e
mov r12, qword [0x140186a40]
mov rcx, r14
call qword [r12]
cmp byte [rsp + 0x2f], 0
mov rcx, qword [rsp + 0x38]
jne 0x14008178e
mov rcx, qword [rsp + 0x30]
call sym.fclose
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], 0
test rcx, rcx
je 0x14008178e
mov rdx, r13
call sym.Curl_rename
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14008178e
call sym.unlink
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x14008196b
jmp 0x140081970
mov r12, qword [0x140186a40]
jmp 0x14008193c