Function at 0x140265770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
lea r15, vtable.fmt::v6::internal::buffer_char_.0
xor r14d, r14d
lea r12, [0x140472dd8]
cmp byte [0x1406942a0], r14b
je 0x140265942
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r14
mov qword [rbp + 0x90], r14
mov qword [rbp + 0x98], r14
lea rsi, vtable.fmt::v6::basic_memory_buffer_char__256__class_std::allocator_char__.0
mov qword [rbp + 0x80], rsi
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x98], 0x100
lea rax, vtable.eax::StringBuffer_256_.0
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x90], r14
lea rax, str.swap
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x20], reloc.WS2_32.dll_listen
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 2
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x60], r14d
lea rax, [rsp + 0x68]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r14d
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], r14d
mov dword [rbp - 0x58], r14d
movdqa xmmword [rsp + 0x20], xmm1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140061fc0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rcx, qword [rbp - 0x80]
call fcn.1402f1e30
nop
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov rbx, qword [0x140694318]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rbp - 0x40], xmm0
lea r9, [rbp - 0x40]
mov rdx, rbx
lea rcx, [0x1406942b0]
call fcn.140267fa0
nop
mov qword [rbp + 0x80], rsi
lea rax, [rbp + 0xa0]
mov rcx, qword [rbp + 0x88]
cmp rcx, rax
je 0x140265942
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x1000
jb 0x14026593d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140265bf4
mov rcx, r8
call fcn.1402f1e30
lea rbx, [rdi + 0xa0]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rdx, [rbx + 0x40]
lea r8, [rbx + 0x28]
cmp r8, rdx
je 0x140265991
mov rcx, qword [r8]
mov rax, qword [rdx]
mov qword [r8], rax
mov qword [rdx], rcx
mov rcx, qword [r8 + 8]
mov rax, qword [rdx + 8]
mov qword [r8 + 8], rax
mov qword [rdx + 8], rcx
mov rcx, qword [r8 + 0x10]
mov rax, qword [rdx + 0x10]
mov qword [r8 + 0x10], rax
mov qword [rdx + 0x10], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x1406942a0], 0
je 0x1402659c1
mov rbx, qword [0x140694318]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
mov rdx, rbx
lea rcx, [0x1406942b0]
call fcn.140268300
mov rax, qword [rdi + 0xe8]
cmp rax, qword [rdi + 0xe0]
je 0x140265bc9
mov byte [rbp - 0x30], 0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
lea rsi, vtable.fmt::v6::basic_memory_buffer_char__128__class_std::allocator_char__.0
mov qword [rbp - 0x28], rsi
lea rax, [rbp - 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], 0x80
lea rax, vtable.eax::StringBuffer_128_.0
mov qword [rbp - 0x28], rax
cmp byte [0x1406942a0], 0
je 0x140265b07
mov qword [rbp - 0x18], r14
lea rax, str.Flush_Buffer
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x40], reloc.WS2_32.dll_listen
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 2
movaps xmm1, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x60], r14d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r14d
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], r14d
mov dword [rbp - 0x58], r14d
movdqa xmmword [rsp + 0x20], xmm1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140061fc0
nop
lea rax, [rsp + 0x68]
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x80]
call fcn.1402f1e30
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], rax
cmp byte [0x1406942a0], 0
je 0x140265b03
mov rbx, qword [0x140694318]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rbp - 0x40], xmm0
lea r9, [rbp - 0x40]
mov rdx, rbx
lea rcx, [0x1406942b0]
call fcn.140267fa0
mov byte [rbp - 0x30], 1
mov r8, qword [rdi + 0xe8]
sub r8, qword [rdi + 0xe0]
mov r9, qword [rdi + 0x70]
mov edx, 1
mov rcx, qword [rdi + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rax, qword [rdi + 0xe8]
cmp qword [rdi + 0xe0], rax
je 0x140265b53
mov rax, qword [rdi + 0xe0]
mov qword [rdi + 0xe8], rax
cmp byte [rbp - 0x30], 0
je 0x140265b85
mov byte [rbp - 0x30], 0
cmp byte [0x1406942a0], 0
je 0x140265b85
mov rbx, qword [0x140694318]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
mov rdx, rbx
lea rcx, [0x1406942b0]
call fcn.140268300
nop
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x28], rsi
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140265bc9
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x1000
jb 0x140265bc4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140265bfb
mov rcx, r8
call fcn.1402f1e30
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1402f2210
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3