Function at 0x140006060
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], r15
mov r15, rcx
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x28], 0xfffffffffffffffe
cmp qword [r15 + 0x78], 0
je 0x140006095
cmp byte [r15 + 0x81], 0
jne 0x1400060ac
mov eax, 1
mov rbx, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x30]
mov r15, qword [rbp + 0x40]
lea rsp, [rbp + 0x50]
pop rbp
ret
mov rax, qword [r15]
mov rcx, r15
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400060d3
xor eax, eax
mov rbx, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x30]
mov r15, qword [rbp + 0x40]
lea rsp, [rbp + 0x50]
pop rbp
ret
mov edx, 8
lea rcx, [rbp]
xor r8d, r8d
mov qword [rbp + 0x18], setsockopt
mov qword [rbp + 0x10], 0
mov byte [rbp], 0
call fcn.140009580
test al, al
jne 0x140006339
lea rsi, [r15 + 0x84]
mov r11, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
cmp r11, 0x10
jae 0x14000611b
lea rbx, [rbp]
jmp 0x14000611f
mov rbx, qword [rbp]
mov rcx, qword [r15 + 0x78]
lea r10, vtable.std::codecvt_char__char__int_.0
mov rax, qword [rcx]
cmp rax, r10
jne 0x14000613b
mov qword [rbp + 0x20], rbx
jmp 0x1400061d5
mov r11, rsp
add r9, rbx
mov rdx, rsi
mov r8, rbx
lea r10, [rbp + 0x20]
mov qword [r11 + 0x20], r10
call qword [rax + 0x40]
mov r11, qword [rbp + 0x18]
test eax, eax
je 0x1400061d1
cmp eax, 1
je 0x1400061cb
cmp eax, 3
je 0x140006196
cmp r11, 0x10
jae 0x1400062e0
xor eax, eax
mov rbx, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x30]
mov r15, qword [rbp + 0x40]
mov qword [rbp + 0x18], setsockopt
mov qword [rbp + 0x10], 0
mov byte [rbp], 0
lea rsp, [rbp + 0x50]
pop rbp
ret
cmp r11, 0x10
jae 0x14000632b
mov eax, 1
mov rbx, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x30]
mov r15, qword [rbp + 0x40]
mov qword [rbp + 0x18], setsockopt
mov qword [rbp + 0x10], 0
mov byte [rbp], 0
lea rsp, [rbp + 0x50]
pop rbp
ret
mov rbx, qword [rbp + 0x20]
jmp 0x1400061dd
mov rbx, qword [rbp + 0x20]
mov byte [r15 + 0x81], 0
cmp r11, 0x10
jae 0x1400061f2
lea rax, [rbp]
sub rbx, rax
jne 0x140006285
jmp 0x1400061ff
mov rcx, qword [rbp]
sub rbx, rcx
jne 0x140006289
cmp byte [r15 + 0x81], 0
je 0x1400062ee
test rbx, rbx
jne 0x140006107
mov rbx, qword [rbp + 0x10]
mov rax, rbx
neg rax
dec rax
cmp rax, 8
jbe 0x140006279
add rbx, 8
lea rcx, [rbp]
mov rdx, rbx
xor r8d, r8d
call fcn.140009580
test al, al
je 0x140006107
cmp qword [rbp + 0x18], 0x10
lea rax, [rbp]
mov r8, qword [rbp + 0x10]
cmovae rax, qword [rbp]
mov qword [rax + r8], 0
cmp qword [rbp + 0x18], 0x10
lea rax, [rbp]
mov qword [rbp + 0x10], rbx
cmovae rax, qword [rbp]
mov byte [rax + rbx], 0
jmp 0x140006107
lea rcx, [0x140157ca0]
call fcn.14010ac98
lea rcx, [rbp]
mov edx, 1
mov r8, rbx
mov r9, qword [r15 + 0x90]
call fcn.140115548
cmp rbx, rax
je 0x1400061ff
cmp qword [rbp + 0x18], 0x10
jae 0x1400062d5
xor eax, eax
mov rbx, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x30]
mov r15, qword [rbp + 0x40]
mov qword [rbp + 0x18], setsockopt
mov qword [rbp + 0x10], 0
mov byte [rbp], 0
lea rsp, [rbp + 0x50]
pop rbp
ret
mov rcx, qword [rbp]
call fcn.1401100d8
jmp 0x1400062ad
mov rcx, qword [rbp]
call fcn.1401100d8
jmp 0x14000616e
cmp qword [rbp + 0x18], 0x10
jae 0x140006320
mov eax, 1
mov rbx, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x30]
mov r15, qword [rbp + 0x40]
mov qword [rbp + 0x18], setsockopt
mov qword [rbp + 0x10], 0
mov byte [rbp], 0
lea rsp, [rbp + 0x50]
pop rbp
ret
mov rcx, qword [rbp]
call fcn.1401100d8
jmp 0x1400062f5
mov rcx, qword [rbp]
call fcn.1401100d8
jmp 0x1400061a0
cmp qword [rbp + 0x18], 0x10
lea rax, [rbp]
cmovae rax, qword [rbp]
mov qword [rax], 0
mov qword [rbp + 0x10], 8
mov byte [rax + 8], 0
jmp 0x140006100