Function at 0x140006100
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x908
movdqu xmm2, xmmword [rdx]
mov r14d, dword [rsp + 0x978]
movups xmmword [rsp + 0x40], xmm2
movdqu xmm3, xmmword [rdx + 0x10]
mov r12, rcx
mov r13, rdx
mov dword [rsp + 0x20], r14d
lea r15, [rsp + 0x40]
mov rbx, r8
lea rbp, [rsp + 0xc0]
mov rdx, r15
lea r8, [rsp + 0x70]
mov rcx, rbp
movups xmmword [rsp + 0x50], xmm3
mov qword [rsp + 0x968], r9
lea r9, [rsp + 0x78]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
call sym.tb_tcp_unsized_recv
mov edx, dword [rsp + 0xd0]
test edx, edx
je 0x1400061b8
mov ecx, 0x83
mov rdi, r12
mov rsi, rbp
rep movsq qword [rdi], qword [rsi]
mov rax, r12
add rsp, 0x908
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x80]
mov byte [rsi + rax], 0
mov r8, rsi
call sym.tb_io_merge_path_fn
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
lea rax, [rbx + 1]
cmp rdx, rax
jb 0x140006400
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
mov byte [rdi + rbx], 0
call sym.free
mov rcx, rdi
lea rdx, [0x140010574]
call sym.fopen
mov rdi, rax
test rax, rax
je 0x140006440
mov rcx, qword [r13]
mov rax, qword [r13 + 0x10]
lea rsi, [rsp + 0x4e0]
mov r9d, 8
mov rdx, qword [r13 + 0x18]
mov rbx, qword [r13 + 8]
mov dword [rsp + 0x20], r14d
lea r8, [rsp + 0x68]
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0x40], rcx
mov rcx, rsi
mov qword [rsp + 0x58], rdx
mov rdx, r15
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x48], rbx
call sym.tb_tcp_recv_entire
mov eax, dword [rsp + 0x4f0]
test eax, eax
jne 0x1400063d8
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x970]
bswap rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x38], rdx
call sym.malloc
mov rdx, qword [rsp + 0x38]
test rax, rax
mov rsi, rax
je 0x1400064b5
test rdx, rdx
jne 0x14000635a
nop
mov rcx, rsi
call sym.free
cmp qword [rsp + 0x968], 0
je 0x1400064a6
mov rax, qword [rsp + 0x968]
mov rsi, qword [rsp + 0x30]
mov qword [rax], rsi
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call sym.tb_err.constprop.0
mov edx, dword [rsp + 0xd0]
jmp 0x1400063b5
mov rcx, rsi
mov r9, rdi
mov r8, rbx
mov edx, 1
call sym.fwrite
mov rcx, rdi
call sym.ferror
test eax, eax
jne 0x140006470
mov rdx, qword [rsp + 0x68]
sub rdx, rbx
mov qword [rsp + 0x68], rdx
je 0x1400062e0
movdqu xmm0, xmmword [r13]
mov rbx, rdx
mov r8, rsi
mov rcx, rbp
cmp qword [rsp + 0x970], rdx
mov rdx, r15
cmovbe rbx, qword [rsp + 0x970]
movups xmmword [rsp + 0x40], xmm0
movdqu xmm1, xmmword [r13 + 0x10]
mov dword [rsp + 0x20], r14d
mov r9, rbx
movups xmmword [rsp + 0x50], xmm1
call sym.tb_tcp_recv_entire
mov edx, dword [rsp + 0xd0]
test edx, edx
je 0x140006328
mov rcx, rsi
mov dword [rsp + 0x30], edx
call sym.free
mov edx, dword [rsp + 0x30]
mov rcx, rdi
mov dword [rsp + 0x30], edx
call sym.fclose
mov edx, dword [rsp + 0x30]
mov dword [rsp + 0xd0], edx
jmp 0x14000618c
mov ecx, 0x83
mov rdi, rbp
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0xc0]
mov ecx, 0x83
mov rdi, r12
rep movsq qword [rdi], qword [rsi]
jmp 0x14000619a
mov rcx, qword [rsp + 0x30]
add rdx, 0x400
call sym.realloc
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140006203
mov r8d, 0x6cf
lea rdx, str.._cli_.._common_tb.h
lea rcx, str.___full_path_____items___NULL___Out_of_memory._
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x140006203
mov rsi, qword [sym.imp.msvcrt.dll__errno]
call rsi
mov ecx, dword [rax]
call sym.strerror
mov rbx, rax
call rsi
mov r9, rbx
mov edx, 1
mov rcx, r12
movsxd r8, dword [rax]
call sym.tb_err
jmp 0x14000619a
mov r13, qword [sym.imp.msvcrt.dll__errno]
call r13
mov ecx, dword [rax]
call sym.strerror
mov rbx, rax
call r13
mov edx, 1
mov r9, rbx
mov rcx, rbp
movsxd r8, dword [rax]
call sym.tb_err
mov edx, dword [rsp + 0xd0]
jmp 0x1400063a5
mov rcx, qword [rsp + 0x30]
call sym.free
jmp 0x140006307
lea rdx, str.._cli_.._common_tb.h
mov r8d, 0x6de
lea rcx, str.buf___NULL___Out_of_memory__
call qword [sym.imp.msvcrt.dll__assert]
mov rdx, qword [rsp + 0x68]
jmp 0x1400062d5