Function at 0x1401a38f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov qword [rsp + 0x58], 0
test rdx, rdx
je 0x1401a3bfc
mov r14, r8
mov rdi, rdx
mov rsi, rcx
test r8, r8
jne 0x1401a3927
mov r14, qword [rdi + 0x20]
xor ebx, ebx
test byte [rdi + 0x28], 2
jne 0x1401a3aba
test r14, r14
je 0x1401a3aba
cmp byte [r14], 0
je 0x1401a3aba
lea r8, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov rcx, rsi
mov rdx, r14
call fcn.140214460
mov ebx, eax
test eax, eax
jne 0x1401a3aac
mov r9, qword [rsp + 0x60]
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
mov edx, 0x6f
mov r8d, 1
call sub.msvcrt.dll_fwrite
mov r15, qword [rdi]
xor ebx, ebx
test r15, r15
je 0x1401a3a6f
lea r12, [0x14026d099]
jmp 0x1401a39db
cmp byte [r13 + 0x20], 0
mov r8, r12
lea rax, [0x14026d09b]
cmove r8, rax
mov r9, qword [r13 + 0x18]
lea rax, str.unlimited
mov qword [rsp + 0x20], rax
mov rcx, rbp
lea rdx, str._s_s___s__n
call fcn.1401ac6b0
test r15, r15
je 0x1401a3a6f
mov r13, qword [r15]
mov r15, qword [r15 + 0x10]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [r13 + 0x28]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
je 0x1401a39a0
lea rdx, [rsp + 0x68]
call fcn.140214420
test eax, eax
jne 0x1401a3a6d
cmp byte [r13 + 0x20], 0
mov r8, r12
lea rax, [0x14026d09b]
cmove r8, rax
mov r9, qword [r13 + 0x18]
mov eax, dword [rsp + 0x7c]
mov ecx, 0x76c
add eax, ecx
mov ecx, dword [rsp + 0x78]
inc ecx
mov edx, dword [rsp + 0x74]
mov r10d, dword [rsp + 0x70]
mov r11d, dword [rsp + 0x68]
mov r13d, dword [rsp + 0x6c]
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov rcx, rbp
lea rdx, str._s_s___d_02d_02d__02d:_02d:_02d__n
jmp 0x1401a39cd
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_fclose
mov rcx, qword [rsp + 0x58]
test ebx, ebx
jne 0x1401a3a9e
test rcx, rcx
je 0x1401a3a9e
mov rdx, r14
call fcn.140214570
test eax, eax
mov ebx, 0x17
cmove ebx, eax
mov rcx, qword [rsp + 0x58]
test ebx, ebx
je 0x1401a3aac
test rcx, rcx
je 0x1401a3aac
call sub.msvcrt.dll__unlink
mov rax, qword [0x1402654c0]
mov rcx, qword [rsp + 0x58]
call qword [rax]
cmp qword [rsi + 0x2d0], 0
je 0x1401a3bfe
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], 0
mov rbp, qword [rdi]
test rbp, rbp
je 0x1401a3bfe
movabs r13, 0x7fffffffffffffff
lea rdi, [rsp + 0x7c]
lea r14, [rsp + 0x68]
lea r15, [rsp + 0x90]
lea r12, [rsp + 0xa0]
mov rbx, qword [rbp]
mov rbp, qword [rbp + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x68], rcx
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x70], rax
movzx eax, byte [rbx + 0x20]
mov dword [rsp + 0x78], eax
mov rcx, qword [rbx + 0x28]
cmp rcx, r13
jne 0x1401a3b60
movabs rax, 0x6574696d696c6e75
mov qword [rdi], rax
mov word [rdi + 8], 0x64
jmp 0x1401a3bd1
mov rdx, r12
call fcn.140214420
test eax, eax
jne 0x1401a3c23
mov r9d, dword [rsp + 0xb4]
mov eax, 0x76c
add r9d, eax
mov eax, dword [rsp + 0xb0]
inc eax
mov ecx, dword [rsp + 0xac]
mov edx, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0xa0]
mov r10d, dword [rsp + 0xa4]
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov edx, 0x12
mov rcx, rdi
lea r8, str._d_02d_02d__02d:_02d:_02d
call fcn.1401ac550
mov r9, qword [rsi + 0x2d8]
mov rcx, rsi
mov rdx, r14
mov r8, r15
call qword [rsi + 0x2d0]
test eax, eax
jne 0x1401a3c14
inc qword [rsp + 0x90]
test rbp, rbp
jne 0x1401a3b10
xor ebx, ebx
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
cmp eax, 2
mov ebx, 0x2b
cmovne ebx, ecx
jmp 0x1401a3bfe
mov ebx, eax
jmp 0x1401a3bfe