Function at 0x140144700
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [rcx + 0x790], 0
mov rbx, rcx
mov edi, edx
je 0x140144a08
cmp qword [rcx + 0x1230], 0
je 0x140144732
call fcn.140144600
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140144762
test byte [rax + 4], 4
je 0x140144762
mov r10, qword [rax + 0x10]
test r10, r10
je 0x140144762
mov r9, qword [rax + 0x20]
mov r8d, 2
mov edx, 2
mov rcx, rbx
call r10
mov r14, qword [rbx + 0x790]
mov rsi, qword [rbx + 0xae8]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], r14
test rsi, rsi
je 0x140144832
mov rcx, rsi
call fcn.1401428f0
cmp byte [r14], 0x2d
jne 0x1401448bd
cmp byte [r14 + 1], 0
jne 0x1401448bd
mov ecx, 1
call qword [fcn.14034e890]
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 + 0x40], rax
mov r12, rax
call sub.msvcrt.dll_fwrite
movsxd rax, dword [rsi + 0x808]
test eax, eax
je 0x14014481a
lea rdx, [rax*8]
mov rax, qword [0x14048b5a0]
mov ecx, 1
call qword [rax]
mov r15, rax
test rax, rax
je 0x140144b93
mov byte [rsp + 0x3f], 1
mov qword [rsp + 0x28], 0
jmp 0x140144945
mov qword [rsp + 0x28], 0
mov rbp, qword [0x14048b5b0]
mov rcx, qword [rsp + 0x28]
call qword [rbp]
mov rax, qword [rbx + 0xe0]
test dil, dil
je 0x140144875
mov rcx, qword [rbx + 0xae8]
test rax, rax
je 0x14014485e
mov rcx, qword [rbx + 0xae8]
cmp rcx, qword [rax + 0xb0]
je 0x140144af9
call fcn.1401429c0
mov rax, qword [rbx + 0xe0]
mov qword [rbx + 0xae8], 0
test rax, rax
je 0x1401448ac
mov edx, dword [rax + 4]
and edx, 4
test edx, edx
je 0x1401448ac
mov r9, qword [rax + 0x18]
test r9, r9
je 0x1401448ac
mov r8, qword [rax + 0x20]
mov edx, 2
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp r9
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x30]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140143850
mov r15d, eax
test eax, eax
jne 0x140144a98
mov r12, qword [rsp + 0x40]
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, r12
call sub.msvcrt.dll_fwrite
mov rcx, qword [rsp + 0x48]
movsxd rax, dword [rsi + 0x808]
mov rbp, qword [0x14048b5b0]
mov qword [rsp + 0x28], rcx
test eax, eax
je 0x140144b23
lea rdx, [rax*8]
mov rax, qword [0x14048b5a0]
mov ecx, 1
call qword [rax]
mov r15, rax
test rax, rax
je 0x140144bae
mov byte [rsp + 0x3f], 0
mov rdx, rsi
lea rcx, [rsi + 0x800]
xor r13d, r13d
nop word [rax + rax]
mov rax, qword [rdx]
test rax, rax
je 0x140144977
cmp qword [rax + 0x28], 0
je 0x14014496f
mov qword [r15 + r13*8], rax
add r13, 1
mov rax, qword [rax]
test rax, rax
jne 0x140144960
add rdx, 8
cmp rcx, rdx
jne 0x140144958
lea r9, [0x14013c190]
mov r8d, 8
mov rdx, r13
mov rcx, r15
call sub.msvcrt.dll_qsort
test r13, r13
je 0x140144b0b
mov rbp, qword [0x14048b5b0]
xor esi, esi
xor eax, eax
jmp 0x1401449d5
mov r8, rax
lea rdx, [0x1403f3b64]
mov rcx, r12
call fcn.14011ff50
mov rcx, r14
call qword [rbp]
lea eax, [rsi + 1]
mov rsi, rax
cmp rax, r13
jae 0x140144b12
mov rcx, qword [r15 + rax*8]
call fcn.140142a40
mov r14, rax
test rax, rax
jne 0x1401449ae
mov rcx, r15
mov r15d, 0x1b
call qword [rbp]
cmp byte [rsp + 0x3f], 0
jne 0x140144abb
jmp 0x140144ab3
test dl, dl
je 0x140144a70
mov rcx, qword [rcx + 0x1230]
test rcx, rcx
je 0x140144b6c
call fcn.140124050
mov rdx, qword [rbx + 0xe0]
mov qword [rbx + 0x1230], 0
mov rax, rdx
test rdx, rdx
je 0x140144b7f
test byte [rdx + 4], 4
je 0x14014484a
mov r10, qword [rdx + 0x10]
test r10, r10
je 0x140144b8b
mov r9, qword [rax + 0x20]
mov r8d, 2
mov edx, 2
mov rcx, rbx
call r10
jmp 0x140144832
mov rax, qword [rcx + 0xe0]
test rax, rax
je 0x1401448ac
test byte [rax + 4], 4
je 0x1401448ac
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x140144a56
jmp 0x14014487a
mov rax, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rbp, qword [0x14048b5b0]
mov qword [rsp + 0x28], rax
test r12, r12
je 0x140144abb
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, qword [rsp + 0x28]
call qword [rbp]
mov ecx, r15d
call fcn.1401276d0
mov r8, qword [rbx + 0x790]
lea rdx, str.WARNING:_failed_to_save_cookies_in__s:__s
mov rcx, rbx
mov r9, rax
call fcn.140123250
mov rax, qword [rbx + 0xe0]
test dil, dil
jne 0x14014483e
jmp 0x140144875
mov rax, qword [rbx + 0xe0]
mov edx, dword [rax + 4]
and edx, 4
jmp 0x140144880
mov rbp, qword [0x14048b5b0]
mov rcx, r15
call qword [rbp]
cmp byte [rsp + 0x3f], 0
jne 0x14014482a
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], 0
test rax, rax
je 0x14014482a
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.140129790
test eax, eax
je 0x14014482a
mov rcx, qword [rsp + 0x28]
mov r15d, 0x17
call sub.msvcrt.dll__unlink
jmp 0x140144abb
mov rdx, qword [rbx + 0xe0]
mov rax, rdx
test rdx, rdx
jne 0x140144a3f
mov rcx, qword [rbx + 0xae8]
jmp 0x14014485e
mov rax, rdx
jmp 0x14014484a
mov qword [rsp + 0x28], 0
mov rbp, qword [0x14048b5b0]
mov r15d, 0x1b
jmp 0x140144abb
mov rbp, qword [0x14048b5b0]
mov r15d, 0x1b
jmp 0x140144ab3