Function at 0x140041d00
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 0x140041dee
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 0x140041df8
mov rcx, rbx
call sym.remove_expired
cmp byte [r14], 0x2d
jne 0x140041e97
cmp byte [r14 + 1], 0
jne 0x140041e97
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 0x140041f5f
lea rdx, [rax*8]
mov rax, qword [0x14011e790]
mov ecx, 1
call qword [rax]
mov r15, qword [0x14011e7f0]
mov rsi, rax
test rax, rax
je 0x1400421df
mov edi, 1
jmp 0x140041f0e
mov rcx, qword [rsp + 0x58]
call sym.Curl_share_lock
test r13b, r13b
je 0x140041e75
mov rdi, qword [rsp + 0x58]
mov rax, qword [rdi + 0xe8]
mov r12, qword [rdi + 0xa40]
test rax, rax
je 0x140041e1e
cmp qword [rax + 0xe8], r12
je 0x140041e75
test r12, r12
je 0x140041e65
mov rsi, r12
lea rbp, [r12 + 0x1f8]
nop
mov rbx, qword [rsi]
test rbx, rbx
je 0x140041e50
nop dword [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call sym.freecookie
test rbx, rbx
jne 0x140041e40
add rsi, 8
cmp rbp, rsi
jne 0x140041e30
mov rax, qword [0x14011e7f0]
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 0x140041f73
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 [0x14011e7f0]
test eax, eax
je 0x14004216a
lea rdx, [rax*8]
mov ecx, 1
xor edi, edi
mov rax, qword [0x14011e790]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1400421f5
mov rcx, rbx
lea r8, [rbx + 0x1f8]
xor ebx, ebx
nop word [rax + rax]
mov rax, qword [rcx]
test rax, rax
jne 0x140041f47
jmp 0x140041feb
mov qword [rsi + rbx*8], rax
mov rax, qword [rax]
lea rdx, [rbx + 1]
test rax, rax
je 0x140041fe8
mov rbx, rdx
cmp qword [rax + 0x28], 0
jne 0x140041f30
mov rax, qword [rax]
test rax, rax
je 0x140041feb
mov rdx, rbx
jmp 0x140041f44
mov rcx, qword [rsp + 0x78]
mov r15, qword [0x14011e7f0]
call qword [r15]
jmp 0x140041df8
mov rcx, qword [rsp + 0x70]
mov r15, qword [0x14011e7f0]
test rcx, rcx
je 0x140041f89
call sym.fclose
mov rcx, qword [rsp + 0x78]
call qword [r15]
mov rax, qword [rsp + 0x58]
test byte [rax + 0xa37], 0x10
je 0x140041df8
mov rax, qword [rax + 0x11e8]
test rax, rax
je 0x140041fba
mov eax, dword [rax + 8]
test eax, eax
jle 0x140041df8
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 0x140041df8
mov rbx, rdx
add rcx, 8
cmp r8, rcx
jne 0x140041f20
lea r9, [sym.cookie_sort_ct]
mov r8d, 8
mov rdx, rbx
mov rcx, rsi
call sym.qsort
test rbx, rbx
je 0x1400421e9
mov qword [rsp + 0x68], r14
mov r15, qword [0x14011e7f0]
xor eax, eax
xor r12d, r12d
mov byte [rsp + 0x63], dil
lea rbp, [0x1400fa3bd]
mov dword [rsp + 0x64], r13d
jmp 0x1400420ce
lea r13, [0x1400fa3b2]
test r9, r9
je 0x140042138
cmp byte [r9], 0x2e
lea r8, [0x1400fa511]
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 0x1400421c0
mov rcx, qword [rsp + 0x70]
mov r8, rax
lea rdx, [0x1400fa5bc]
call sym.curl_mfprintf
mov rcx, rdi
call qword [r15]
lea eax, [r12 + 1]
mov r12, rax
cmp rax, rbx
jae 0x140042147
mov rax, qword [rsi + rax*8]
lea rdx, [0x1400fa3b7]
lea r10, [0x1400fa3b2]
lea r8, [0x1400fa280]
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 0x140042040
test r9, r9
lea r14, [0x1400fa52e]
lea r13, [0x1400fa3b7]
mov r8, rbp
cmove r9, r14
jmp 0x14004205f
lea r9, [0x1400fa52e]
mov r8, rbp
jmp 0x14004205f
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 0x140041f6b
mov rcx, qword [rsp + 0x70]
call sym.fclose
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x70], 0
test rcx, rcx
je 0x140041f6b
mov rdx, r14
call sym.Curl_rename
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x140041f6b
call sym.unlink
mov rcx, qword [rsp + 0x70]
mov esi, 0x17
test rcx, rcx
jne 0x140041f84
jmp 0x140041f89
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 0x1400421df
test dil, dil
je 0x1400421fe
mov esi, 0x1b
jmp 0x140041f89
mov r15, qword [0x14011e7f0]
jmp 0x140042156
mov r15, qword [0x14011e7f0]
jmp 0x1400421d0
mov esi, 0x1b
jmp 0x140041f84