Function at 0x14002a6c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002a6ed
xor eax, eax
jmp 0x14002a8cc
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14002a727
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14002a727
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, esi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14002a8cc
cmp qword [rbx + 0x80], 0
jne 0x14002a739
or eax, 0xffffffff
jmp 0x14002a8cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002a766
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x14002a78a
mov rdx, qword [rbx + 0x80]
movsx ecx, sil
call fcn.14008af34
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x14002a8ca
xor ecx, ecx
mov byte [rbp - 0x28], 0
mov edx, 0xf
mov qword [rsp + 0xb8], r14
cmp rdx, 0x10
mov byte [rbp - 0x40], sil
lea rax, [rbp - 0x28]
mov qword [rbp - 0x10], rdx
cmovae rax, rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea r14, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov qword [rsp + 0xb0], rdi
mov byte [rax + 8], cl
mov rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
nop word [rax + rax]
mov rcx, qword [rbx + 0x68]
lea r10, [rbp - 0x28]
cmp r8, 0x10
lea r9, [rbp - 0x28]
cmovae r10, rdx
cmovae r9, rdx
mov r11, qword [rcx]
cmp r11, r14
je 0x14002a843
jmp 0x14002a8e3
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
jne 0x14002a835
test rdi, rdi
jne 0x14002a7e0
cmp qword [rbp - 0x18], 0x20
jae 0x14002a830
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp - 0x28]
call fcn.140004f80
jmp 0x14002a7cf
or ebx, 0xffffffff
jmp 0x14002a86f
mov ebx, esi
jmp 0x14002a86f
cmp eax, 3
je 0x14002a84f
or ebx, 0xffffffff
jmp 0x14002a867
lea rax, [rbp - 0x40]
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x38], rax
movsx ecx, byte [rbp - 0x40]
mov rdx, qword [rbx + 0x80]
call fcn.14008af34
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
mov rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
mov r14, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
cmp r8, 0x10
jb 0x14002a8ca
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14002a8c2
test byte [rbp - 0x28], 0x1f
jne 0x14002a97e
mov rax, qword [rdx - 8]
cmp rax, rdx
jae 0x14002a984
sub rdx, rax
cmp rdx, 8
jb 0x14002a98a
cmp rdx, 0x27
ja 0x14002a990
mov rdx, rax
mov rcx, rdx
call fcn.140080c40
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400812a0
add rsp, 0x80
pop rsi
pop rbx
pop rbp
ret
mov r8, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
add r8, r10
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x40]
mov qword [rsp + 0x28], r9
lea r9, [rbp - 0x3f]
mov qword [rsp + 0x20], rax
call qword [r11 + 0x38]
test eax, eax
js 0x14002a83e
cmp eax, 1
jg 0x14002a839
mov r8, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
mov rdx, qword [rbp - 0x28]
cmp r8, 0x10
mov rdi, qword [rbp - 0x30]
cmovae rax, rdx
sub rdi, rax
je 0x14002a805
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
cmp r8, 0x10
mov r8, rdi
cmovae rcx, rdx
mov edx, 1
call fcn.14008b4e0
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x28]
cmp rdi, rax
jne 0x14002a830
jmp 0x14002a805
call fcn.1400853c8
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3