Function at 0x14008a080
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rax, qword [0x14013aa80]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], 0
test rdx, rdx
je 0x14008a3cb
mov r14, r8
mov rdi, rdx
mov rsi, rcx
test r8, r8
jne 0x14008a0c9
mov r14, qword [rdi + 0x20]
xor ebx, ebx
test byte [rdi + 0x28], 2
jne 0x14008a284
test r14, r14
je 0x14008a284
cmp byte [r14], 0
je 0x14008a284
lea r8, [rsp + 0x78]
lea r9, [rsp + 0x70]
mov rcx, rsi
mov rdx, r14
call fcn.1400bde00
mov ebx, eax
test eax, eax
jne 0x14008a279
mov r9, qword [rsp + 0x78]
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, reloc.WS2_32.dll_WSAGetLastError
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r15, qword [rdi]
xor ebx, ebx
test r15, r15
je 0x14008a23a
mov qword [rsp + 0x58], rdi
movabs rdi, 0x7fffffffffffffff
jmp 0x14008a18f
cmp byte [r13 + 0x20], 0
mov r9, qword [r13 + 0x18]
lea r8, [0x140121aca]
lea rax, [0x140122c0a]
cmove r8, rax
lea rax, str.unlimited
mov qword [rsp + 0x20], rax
mov rcx, rbp
lea rdx, str._s_s___s__n
call fcn.1400a8c30
test r15, r15
je 0x14008a235
mov r13, qword [r15]
mov r15, qword [r15 + 0x10]
mov rbp, qword [rsp + 0x78]
mov rcx, qword [r13 + 0x28]
cmp rcx, rdi
je 0x14008a150
lea rdx, [rsp + 0xa8]
call fcn.1400bdda0
test eax, eax
jne 0x14008a233
mov eax, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xac]
mov edx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xb4]
mov r11d, dword [rsp + 0xb8]
inc r11d
mov r12d, dword [rsp + 0xbc]
mov r8d, 0x76c
add r12d, r8d
cmp byte [r13 + 0x20], 0
mov r9, qword [r13 + 0x18]
lea r8, [0x140121aca]
lea r13, [0x140122c0a]
cmove r8, r13
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r12d
mov rcx, rbp
lea rdx, str._s_s___d_02d_02d__02d:_02d:_02d__n
jmp 0x14008a181
mov ebx, eax
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x70]
test ebx, ebx
jne 0x14008a26a
test rcx, rcx
je 0x14008a26a
mov rdx, r14
call fcn.1400bdf50
test eax, eax
mov ebx, reloc.WS2_32.dll_socket
cmove ebx, eax
mov rcx, qword [rsp + 0x70]
test ebx, ebx
je 0x14008a279
test rcx, rcx
je 0x14008a279
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
mov rcx, qword [rsp + 0x70]
call qword [0x140136438]
cmp qword [rsi + 0x2e0], 0
je 0x14008a3cd
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], 0
mov rbp, qword [rdi]
test rbp, rbp
je 0x14008a3cd
movabs r13, 0x7fffffffffffffff
lea rdi, [rsp + 0xbc]
lea r14, [rsp + 0xa8]
lea r15, [rsp + 0x60]
lea r12, [rsp + 0x80]
nop word [rax + rax]
mov rbx, qword [rbp]
mov rbp, qword [rbp + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0xa8], rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0xb0], rax
movzx eax, byte [rbx + 0x20]
mov dword [rsp + 0xb8], eax
mov rcx, qword [rbx + 0x28]
cmp rcx, r13
jne 0x14008a330
movabs rax, 0x6574696d696c6e75
mov qword [rdi], rax
mov word [rdi + 8], 0x64
jmp 0x14008a3a3
mov rdx, r12
call fcn.1400bdda0
test eax, eax
jne 0x14008a402
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x84]
mov edx, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x8c]
mov r10d, dword [rsp + 0x90]
inc r10d
mov r9d, dword [rsp + 0x94]
mov r11d, 0x76c
add r9d, r11d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
mov edx, reloc.WS2_32.dll_select
mov rcx, rdi
lea r8, str._d_02d_02d__02d:_02d:_02d
call fcn.1400a8a30
mov r9, qword [rsi + 0x2e8]
mov rcx, rsi
mov rdx, r14
mov r8, r15
call qword [rsi + 0x2e0]
test eax, eax
jne 0x14008a3f3
inc qword [rsp + 0x60]
test rbp, rbp
jne 0x14008a2e0
xor ebx, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400d2000
mov eax, ebx
add rsp, 0xd8
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 0x14008a3cd
mov ebx, eax
jmp 0x14008a3cd