Function at 0x140005070
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov qword [rsp + 0x68], 0
mov rsi, rcx
mov r12, rdx
mov r13, r8
test rdx, rdx
je 0x14000521e
test r8, r8
je 0x1400050e8
mov r14d, dword [r12 + 0x28]
and r14d, 2
jne 0x1400050f8
cmp byte [r13], 0
je 0x1400050fb
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x60]
mov rdx, r13
mov rcx, rsi
call sym.Curl_fopen
mov r14d, eax
test eax, eax
je 0x1400052a0
mov rcx, qword [rsp + 0x68]
mov rax, qword [0x1401718c0]
call qword [rax]
jmp 0x1400050fb
mov r13, qword [rdx + 0x20]
test r13, r13
jne 0x1400050a3
nop dword [rax]
xor r14d, r14d
cmp qword [rsi + 0x2d8], 0
je 0x1400051b2
mov rcx, r12
call sym.Curl_llist_count
mov rcx, r12
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], rax
call sym.Curl_llist_head
mov r12, rax
test rax, rax
je 0x1400051b2
movabs rdi, 0x7fffffffffffffff
lea rbp, [rsp + 0x80]
movabs r13, 0x6574696d696c6e75
nop
mov rcx, r12
call sym.Curl_node_elem
mov rcx, r12
mov rbx, rax
call sym.Curl_node_next
mov rcx, qword [rbx + 0x20]
mov r12, rax
mov qword [rsp + 0xb0], rcx
call sym.strlen
movzx edx, byte [rbx + 0x28]
mov qword [rsp + 0xb8], rax
movzx eax, byte [rsp + 0xc0]
and edx, 1
and eax, 0xfffffffe
or eax, edx
mov byte [rsp + 0xc0], al
mov rcx, qword [rbx + 0x30]
cmp rcx, rdi
je 0x1400051d0
mov rdx, rbp
call sym.Curl_gmtime
mov r14d, eax
test eax, eax
je 0x140005228
mov eax, r14d
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0x64
mov qword [rsp + 0xc4], r13
mov word [rsp + 0xcc], ax
mov r9, qword [rsi + 0x2e0]
lea rdx, [rsp + 0xb0]
lea r8, [rsp + 0x70]
mov rcx, rsi
call qword [rsi + 0x2d8]
cmp eax, 2
je 0x140005290
test eax, eax
jne 0x14000521e
add qword [rsp + 0x70], 1
test r12, r12
jne 0x140005150
xor r14d, r14d
jmp 0x1400051b2
mov eax, dword [rsp + 0x80]
lea rcx, [rsp + 0xc4]
mov edx, 0x12
lea r8, str._d_02d_02d__02d:_02d:_02d
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x94]
lea r9d, [rax + 0x76c]
call sym.curl_msnprintf
jmp 0x1400051e5
mov r14d, 0x2b
jmp 0x1400051b2
mov r9, qword [rsp + 0x60]
mov r8d, 0x6f
mov edx, 1
lea rcx, str._Your_HSTS_cache._https:__curl.se_docs_hsts.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
call sym.fwrite
mov rcx, r12
call sym.Curl_llist_head
mov r15, rax
test rax, rax
je 0x14000540d
movabs rbx, 0x7fffffffffffffff
lea rbp, [0x140158697]
jmp 0x140005384
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x58], r10
call sym.Curl_gmtime
test eax, eax
jne 0x1400053e0
mov r9, qword [rdi + 0x20]
mov eax, dword [rsp + 0xc0]
lea r8, [0x140158699]
mov ecx, dword [rsp + 0xb0]
mov r10, qword [rsp + 0x58]
lea edx, [rax + 1]
mov eax, dword [rsp + 0xc4]
add eax, 0x76c
cmp byte [rdi + 0x28], 0
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0xb4]
mov dword [rsp + 0x28], edx
cmovne r8, rbp
lea rdx, str._s_s___d_02d_02d__02d:_02d:_02d__n
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0xb8]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0xbc]
mov dword [rsp + 0x30], ecx
mov rcx, r10
call sym.curl_mfprintf
test r15, r15
je 0x14000540d
mov rcx, r15
call sym.Curl_node_elem
mov rcx, r15
mov rdi, rax
call sym.Curl_node_next
mov rcx, qword [rdi + 0x30]
mov r10, qword [rsp + 0x60]
mov r15, rax
cmp rcx, rbx
jne 0x1400052f0
lea rax, str.unlimited
cmp byte [rdi + 0x28], 0
mov r9, qword [rdi + 0x20]
lea r8, [0x140158699]
mov qword [rsp + 0x20], rax
cmovne r8, rbp
lea rdx, str._s_s___s__n
mov rcx, r10
call sym.curl_mfprintf
jmp 0x14000537b
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x58], eax
call sym.fclose
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov r14d, edx
test rcx, rcx
je 0x1400050da
call sym.unlink
jmp 0x1400050d5
mov rcx, qword [rsp + 0x60]
call sym.fclose
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400050da
mov rdx, r13
call sym.Curl_rename
test eax, eax
je 0x1400050d5
mov edx, 0x17
jmp 0x1400053f2