Function at 0x140214b70
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 [0x140601e40]
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, [0x140438af8]
cmp byte [0x14062c970], r14b
je 0x140214d42
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.140035840
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rcx, qword [rbp - 0x80]
call fcn.140283db0
nop
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov rbx, qword [0x14062c9e8]
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, [0x14062c980]
call fcn.140217380
nop
mov qword [rbp + 0x80], rsi
lea rax, [rbp + 0xa0]
mov rcx, qword [rbp + 0x88]
cmp rcx, rax
je 0x140214d42
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x1000
jb 0x140214d3d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140214ff4
mov rcx, r8
call fcn.140283db0
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 0x140214d91
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 [0x14062c970], 0
je 0x140214dc1
mov rbx, qword [0x14062c9e8]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
mov rdx, rbx
lea rcx, [0x14062c980]
call fcn.140217b70
mov rax, qword [rdi + 0xe8]
cmp rax, qword [rdi + 0xe0]
je 0x140214fc9
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 [0x14062c970], 0
je 0x140214f07
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.140035840
nop
lea rax, [rsp + 0x68]
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x80]
call fcn.140283db0
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], rax
cmp byte [0x14062c970], 0
je 0x140214f03
mov rbx, qword [0x14062c9e8]
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, [0x14062c980]
call fcn.140217380
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 0x140214f53
mov rax, qword [rdi + 0xe0]
mov qword [rdi + 0xe8], rax
cmp byte [rbp - 0x30], 0
je 0x140214f85
mov byte [rbp - 0x30], 0
cmp byte [0x14062c970], 0
je 0x140214f85
mov rbx, qword [0x14062c9e8]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
mov rdx, rbx
lea rcx, [0x14062c980]
call fcn.140217b70
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 0x140214fc9
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x1000
jb 0x140214fc4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140214ffb
mov rcx, r8
call fcn.140283db0
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140284180
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