Function at 0x1400421d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r8d, 2
cmp qword [rcx + 0x7e0], 0
mov r13d, edx
mov qword [rsp + 0x58], rcx
mov rdi, rcx
mov edx, 2
je 0x1400422be
call sym.Curl_share_lock
mov rbx, qword [rdi + 0xa40]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov r14, qword [rdi + 0x7e0]
test rbx, rbx
je 0x1400422c8
mov rcx, rbx
call sym.remove_expired
cmp byte [r14], 0x2d
jne 0x140042367
cmp byte [r14 + 1], 0
jne 0x140042367
mov ecx, 1
call qword [dbg.__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 + 0x70], rax
call sym.fwrite
movsxd rax, dword [rbx + 0x200]
test eax, eax
je 0x14004242f
lea rdx, [rax*8]
mov rax, qword [0x140129d40]
mov ecx, 1
call qword [rax]
mov r15, qword [0x140129da0]
mov rsi, rax
test rax, rax
je 0x1400426af
mov edi, 1
jmp 0x1400423de
mov rcx, qword [rsp + 0x58]
call sym.Curl_share_lock
test r13b, r13b
je 0x140042345
mov rdi, qword [rsp + 0x58]
mov rax, qword [rdi + 0xe8]
mov r12, qword [rdi + 0xa40]
test rax, rax
je 0x1400422ee
cmp qword [rax + 0xe8], r12
je 0x140042345
test r12, r12
je 0x140042335
mov rsi, r12
lea rbp, [r12 + 0x1f8]
nop
mov rbx, qword [rsi]
test rbx, rbx
je 0x140042320
nop dword [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call sym.freecookie
test rbx, rbx
jne 0x140042310
add rsi, 8
cmp rbp, rsi
jne 0x140042300
mov rax, qword [0x140129da0]
mov rcx, r12
call qword [rax]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xa40], 0
mov rcx, qword [rsp + 0x58]
mov edx, 2
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.Curl_share_unlock
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x70]
mov rdx, r14
call sym.Curl_fopen
mov esi, eax
test eax, eax
jne 0x140042443
mov r9, qword [rsp + 0x70]
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 r15, qword [0x140129da0]
test eax, eax
je 0x14004263a
lea rdx, [rax*8]
mov ecx, 1
xor edi, edi
mov rax, qword [0x140129d40]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1400426c5
mov rcx, rbx
lea r8, [rbx + 0x1f8]
xor ebx, ebx
nop word [rax + rax]
mov rax, qword [rcx]
test rax, rax
jne 0x140042417
jmp 0x1400424bb
mov qword [rsi + rbx*8], rax
mov rax, qword [rax]
lea rdx, [rbx + 1]
test rax, rax
je 0x1400424b8
mov rbx, rdx
cmp qword [rax + 0x28], 0
jne 0x140042400
mov rax, qword [rax]
test rax, rax
je 0x1400424bb
mov rdx, rbx
jmp 0x140042414
mov rcx, qword [rsp + 0x78]
mov r15, qword [0x140129da0]
call qword [r15]
jmp 0x1400422c8
mov rcx, qword [rsp + 0x70]
mov r15, qword [0x140129da0]
test rcx, rcx
je 0x140042459
call sym.fclose
mov rcx, qword [rsp + 0x78]
call qword [r15]
mov rax, qword [rsp + 0x58]
test byte [rax + 0xa37], 0x10
je 0x1400422c8
mov rax, qword [rax + 0x11e8]
test rax, rax
je 0x14004248a
mov eax, dword [rax + 8]
test eax, eax
jle 0x1400422c8
mov ecx, esi
call sym.curl_easy_strerror
mov rcx, qword [rsp + 0x58]
lea rdx, str.WARNING:_failed_to_save_cookies_in__s:__s
mov r9, rax
mov r8, qword [rcx + 0x7e0]
call sym.Curl_infof
jmp 0x1400422c8
mov rbx, rdx
add rcx, 8
cmp r8, rcx
jne 0x1400423f0
lea r9, [sym.cookie_sort_ct]
mov r8d, 8
mov rdx, rbx
mov rcx, rsi
call sym.qsort
test rbx, rbx
je 0x1400426b9
mov qword [rsp + 0x68], r14
mov r15, qword [0x140129da0]
xor eax, eax
xor r12d, r12d
mov byte [rsp + 0x63], dil
lea rbp, [0x1401054dd]
mov dword [rsp + 0x64], r13d
jmp 0x14004259e
lea r13, [0x1401054d2]
test r9, r9
je 0x140042608
cmp byte [r9], 0x2e
lea r8, [0x140105631]
cmove r8, rbp
cmp byte [rax + 0x3b], 0
lea rax, str.HttpOnly_
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rdi
cmove rax, rbp
lea rcx, str._s_s_s_t_s_t_s_t_s_t_lld_t_s_t_s
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x38], r11
mov rdx, rax
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x20], r13
call sym.curl_maprintf
mov rdi, rax
test rax, rax
je 0x140042690
mov rcx, qword [rsp + 0x70]
mov r8, rax
lea rdx, [0x1401056dc]
call sym.curl_mfprintf
mov rcx, rdi
call qword [r15]
lea eax, [r12 + 1]
mov r12, rax
cmp rax, rbx
jae 0x140042617
mov rax, qword [rsi + rax*8]
lea rdx, [0x1401054d7]
lea r10, [0x1401054d2]
lea r8, [0x1401053a0]
mov rcx, qword [rax + 0x10]
mov rdi, qword [rax + 8]
mov r11, qword [rax + 0x30]
mov r9, qword [rax + 0x28]
test rcx, rcx
cmove rcx, rbp
cmp byte [rax + 0x39], 0
cmove r10, rdx
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, r8
cmp byte [rax + 0x38], 0
jne 0x140042510
test r9, r9
lea r14, [0x14010564e]
lea r13, [0x1401054d7]
mov r8, rbp
cmove r9, r14
jmp 0x14004252f
lea r9, [0x14010564e]
mov r8, rbp
jmp 0x14004252f
mov r14, qword [rsp + 0x68]
movzx edi, byte [rsp + 0x63]
mov r13d, dword [rsp + 0x64]
mov rcx, rsi
call qword [r15]
mov rcx, qword [rsp + 0x78]
test dil, dil
jne 0x14004243b
mov rcx, qword [rsp + 0x70]
call sym.fclose
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x70], 0
test rcx, rcx
je 0x14004243b
mov rdx, r14
call sym.Curl_rename
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x14004243b
call sym.unlink
mov rcx, qword [rsp + 0x70]
mov esi, 0x17
test rcx, rcx
jne 0x140042454
jmp 0x140042459
movzx edi, byte [rsp + 0x63]
mov r13d, dword [rsp + 0x64]
mov rcx, rsi
call qword [r15]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400426af
test dil, dil
je 0x1400426ce
mov esi, 0x1b
jmp 0x140042459
mov r15, qword [0x140129da0]
jmp 0x140042626
mov r15, qword [0x140129da0]
jmp 0x1400426a0
mov esi, 0x1b
jmp 0x140042454