Function at 0x14002f550
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 [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], 0
test rdx, rdx
je 0x14002f89b
mov r14, r8
mov rdi, rdx
mov rsi, rcx
test r8, r8
jne 0x14002f599
mov r14, qword [rdi + 0x20]
xor ebx, ebx
test byte [rdi + 0x28], 2
jne 0x14002f752
test r14, r14
je 0x14002f752
cmp byte [r14], 0
je 0x14002f752
lea r8, [rsp + 0x78]
lea r9, [rsp + 0x70]
mov rcx, rsi
mov rdx, r14
call fcn.140071110
mov ebx, eax
test eax, eax
jne 0x14002f747
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 fcn.140093198
mov r15, qword [rdi]
xor ebx, ebx
test r15, r15
je 0x14002f70a
mov qword [rsp + 0x58], rdi
movabs rdi, 0x7fffffffffffffff
jmp 0x14002f65f
cmp byte [r13 + 0x20], 0
mov r9, qword [r13 + 0x18]
lea r8, [0x1400c1a29]
lea rax, [0x1400c3031]
cmove r8, rax
lea rax, str.unlimited
mov qword [rsp + 0x20], rax
mov rcx, rbp
lea rdx, str._s_s___s__n
call fcn.14003be00
test r15, r15
je 0x14002f705
mov r13, qword [r15]
mov r15, qword [r15 + 0x10]
mov rbp, qword [rsp + 0x78]
mov rcx, qword [r13 + 0x28]
cmp rcx, rdi
je 0x14002f620
lea rdx, [rsp + 0xa8]
call fcn.1400710b0
test eax, eax
jne 0x14002f703
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, [0x1400c1a29]
lea r13, [0x1400c3031]
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 0x14002f651
mov ebx, eax
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
call fcn.1400922e8
mov rcx, qword [rsp + 0x70]
test ebx, ebx
jne 0x14002f739
test rcx, rcx
je 0x14002f739
mov rdx, r14
call fcn.140071340
test eax, eax
mov ebx, reloc.WS2_32.dll_socket
cmove ebx, eax
mov rcx, qword [rsp + 0x70]
test ebx, ebx
je 0x14002f747
test rcx, rcx
je 0x14002f747
call fcn.14008faac
mov rcx, qword [rsp + 0x70]
call qword [fcn.140092c88]
cmp qword [rsi + 0x2c0], 0
je 0x14002f89d
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], 0
mov rbp, qword [rdi]
test rbp, rbp
je 0x14002f89d
movabs r13, 0x7fffffffffffffff
lea rdi, [rsp + 0xbc]
lea r14, [rsp + 0xa8]
lea r15, [rsp + 0x60]
lea r12, [rsp + 0x80]
nop word cs:[rax + rax]
mov rbx, qword [rbp]
mov rbp, qword [rbp + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0xa8], rcx
call fcn.140094370
mov qword [rsp + 0xb0], rax
movzx eax, byte [rbx + 0x20]
mov dword [rsp + 0xb8], eax
mov rcx, qword [rbx + 0x28]
cmp rcx, r13
jne 0x14002f800
movabs rax, 0x6574696d696c6e75
mov qword [rdi], rax
mov word [rdi + 8], 0x64
jmp 0x14002f873
mov rdx, r12
call fcn.1400710b0
test eax, eax
jne 0x14002f8d2
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.14003bc00
mov r9, qword [rsi + 0x2c8]
mov rcx, rsi
mov rdx, r14
mov r8, r15
call qword [rsi + 0x2c0]
test eax, eax
jne 0x14002f8c3
inc qword [rsp + 0x60]
test rbp, rbp
jne 0x14002f7b0
xor ebx, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140080da0
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, Ordinal_46
cmovne ebx, ecx
jmp 0x14002f89d
mov ebx, eax
jmp 0x14002f89d