Function at 0x140088e10
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 + 0x98], 0
xor esi, esi
test rdx, rdx
je 0x140089094
mov rdi, r8
mov rbx, rdx
test r8, r8
jne 0x140088e5a
mov rdi, qword [rbx]
test byte [rbx + 0x28], 4
jne 0x140089094
test rdi, rdi
je 0x140089094
cmp byte [rdi], 0
je 0x140089094
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0x98]
mov rdx, rdi
call fcn.1400bde00
mov esi, eax
test eax, eax
jne 0x140089086
mov r9, qword [rsp + 0xa0]
lea rcx, str._Your_alt_svc_cache._https:__curl.se_docs_alt_svc.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
mov edx, 0x75
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r12, qword [rbx + 8]
xor esi, esi
test r12, r12
je 0x14008903e
mov qword [rsp + 0x88], rdi
lea rsi, [0x140120733]
jmp 0x140088f60
lea r8, [0x14012032d]
mov ebp, dword [rsp + 0xa8]
mov r9, rsi
mov esi, dword [rsp + 0xac]
mov edi, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xb4]
mov dword [rsp + 0x78], r11d
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x60], esi
mov rsi, r9
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], r10d
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x20], eax
mov rcx, r15
mov r9, qword [rsp + 0x90]
lea rdx, str._s__s__u__s__s__u___d_02d_02d__02d:_02d:_02d___u__d_n
call fcn.1400a8c30
test r12, r12
je 0x140089030
mov rbp, qword [r12]
mov r12, qword [r12 + 0x10]
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x20]
lea rdx, [rsp + 0xa8]
call fcn.1400bdda0
test eax, eax
jne 0x140089034
mov ecx, dword [rbp + 0x1c]
mov rax, rsi
cmp ecx, 8
je 0x140088fb8
cmp ecx, 0x20
je 0x140088fa8
cmp ecx, 0x10
jne 0x140088fb1
lea rax, [0x1401204e3]
jmp 0x140088fb8
lea rax, [0x14012032d]
jmp 0x140088fb8
lea rax, [0x140122c0a]
mov r11d, dword [rbp + 0x2c]
movzx r14d, byte [rbp + 0x28]
mov ecx, dword [rsp + 0xb8]
inc ecx
mov edx, dword [rsp + 0xbc]
mov r8d, 0x76c
add edx, r8d
movzx ebx, word [rbp + 0x18]
mov r13, qword [rbp + 0x10]
movzx r8d, word [rbp + 8]
mov dword [rsp + 0x84], r8d
mov r8, qword [rbp]
mov qword [rsp + 0x90], r8
mov ebp, dword [rbp + 0xc]
mov r8, rsi
cmp ebp, 8
je 0x140088ee1
cmp ebp, 0x20
je 0x140088eda
cmp ebp, 0x10
jne 0x140089024
lea r8, [0x1401204e3]
jmp 0x140088ee1
lea r8, [0x140122c0a]
jmp 0x140088ee1
xor esi, esi
jmp 0x140089036
mov esi, eax
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x98]
test esi, esi
jne 0x140089077
test rcx, rcx
je 0x140089077
mov rdx, rdi
call fcn.1400bdf50
test eax, eax
mov esi, reloc.WS2_32.dll_socket
cmove esi, eax
mov rcx, qword [rsp + 0x98]
test esi, esi
je 0x140089086
test rcx, rcx
je 0x140089086
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
mov rcx, qword [rsp + 0x98]
call qword [0x140136438]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400d2000
mov eax, esi
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret