Function at 0x14001f2b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001f2f8
xor eax, eax
cmp edx, edx
cmovne eax, edx
jmp 0x14001f55a
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001f332
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001f332
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x14001f55a
cmp qword [rbx + 0x80], 0
jne 0x14001f344
or eax, 0xffffffff
jmp 0x14001f55a
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001f371
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x14001f395
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1400fd8b8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x14001f558
mov byte [rbp - 0x19], sil
mov edx, select
mov qword [rbp + 0x1f], rdx
mov byte [rbp + 7], 0
xor ecx, ecx
mov qword [rbp + 7], rcx
mov qword [rbp + 0x17], 8
lea rax, [rbp + 7]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
lea r15, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
lea r9, [rbp + 7]
cmovae r9, rdx
mov r10, qword [rbx + 0x68]
mov rdx, qword [rbp + 0x17]
add rdx, rcx
mov rax, qword [r10]
cmp rax, r15
je 0x14001f4d9
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r9
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rbx + 0x74]
mov rcx, r10
call qword [rax + 0x38]
test eax, eax
js 0x14001f4d4
cmp eax, 1
jg 0x14001f4cf
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
cmovae rax, rdx
mov rdi, qword [rbp - 9]
sub rdi, rax
je 0x14001f494
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
call fcn.1400fde58
mov r8, qword [rbp + 0x1f]
mov rdx, qword [rbp + 7]
cmp rdi, rax
jne 0x14001f4c6
mov byte [rbx + 0x71], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 0x11], rax
jne 0x14001f4cb
test rdi, rdi
jne 0x14001f3e0
cmp qword [rbp + 0x17], 0x20
jae 0x14001f4c6
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.140020b50
jmp 0x14001f3ca
or ebx, 0xffffffff
jmp 0x14001f505
mov ebx, esi
jmp 0x14001f505
cmp eax, 3
je 0x14001f4e5
or ebx, 0xffffffff
jmp 0x14001f4fd
lea rax, [rbp - 0x19]
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], r9
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rbx + 0x80]
call fcn.1400fd8b8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
jb 0x14001f558
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14001f550
test byte [rbp + 7], 0x1f
je 0x14001f523
call fcn.1400f7f64
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14001f532
call fcn.1400f7f64
int3
sub rdx, rax
cmp rdx, 8
jae 0x14001f541
call fcn.1400f7f64
int3
cmp rdx, 0x27
jbe 0x14001f54d
call fcn.1400f7f64
int3
mov rdx, rax
mov rcx, rdx
call fcn.1400cd710
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400d5050
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret