Function at 0x1400f2fa0
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 [0x1402922b8]
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, [0x140190b68]
cmp byte [0x1402a2940], r14b
je 0x1400f3172
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], 0xd
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.140024ce0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rcx, qword [rbp - 0x80]
call fcn.14012fc60
nop
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov rbx, qword [0x1402a29b8]
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, [0x1402a2950]
call fcn.1400f5000
nop
mov qword [rbp + 0x80], rsi
lea rax, [rbp + 0xa0]
mov rcx, qword [rbp + 0x88]
cmp rcx, rax
je 0x1400f3172
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x1000
jb 0x1400f316d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400f3424
mov rcx, r8
call fcn.14012fc60
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 0x1400f31c1
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 [0x1402a2940], 0
je 0x1400f31f1
mov rbx, qword [0x1402a29b8]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
mov rdx, rbx
lea rcx, [0x1402a2950]
call fcn.1400f51e0
mov rax, qword [rdi + 0xe8]
cmp rax, qword [rdi + 0xe0]
je 0x1400f33f9
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 [0x1402a2940], 0
je 0x1400f3337
mov qword [rbp - 0x18], r14
lea rax, str.Flush_Buffer
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x40], 0xd
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.140024ce0
nop
lea rax, [rsp + 0x68]
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x80]
call fcn.14012fc60
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], rax
cmp byte [0x1402a2940], 0
je 0x1400f3333
mov rbx, qword [0x1402a29b8]
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, [0x1402a2950]
call fcn.1400f5000
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 0x1400f3383
mov rax, qword [rdi + 0xe0]
mov qword [rdi + 0xe8], rax
cmp byte [rbp - 0x30], 0
je 0x1400f33b5
mov byte [rbp - 0x30], 0
cmp byte [0x1402a2940], 0
je 0x1400f33b5
mov rbx, qword [0x1402a29b8]
call sub.KERNEL32.dll_GetCurrentThreadId
mov r8d, eax
mov rdx, rbx
lea rcx, [0x1402a2950]
call fcn.1400f51e0
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 0x1400f33f9
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x1000
jb 0x1400f33f4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400f342b
mov rcx, r8
call fcn.14012fc60
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14012fd90
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