Function at 0x14002ac40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x68], 0
mov rdi, rcx
je 0x14002ae85
cmp byte [rcx + 0x71], 0
je 0x14002ae85
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14002ac85
xor al, al
jmp 0x14002ae72
xor ecx, ecx
mov qword [rsp + 0x88], rbx
mov edx, 0xf
mov qword [rsp + 0x90], rsi
cmp rdx, 0x10
mov byte [rbp - 0x30], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x60], r14
cmovae rax, rcx
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x30], rcx
lea r14, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov qword [rbp - 0x20], 8
xor esi, esi
mov byte [rax + 8], cl
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
nop word [rax + rax]
mov r10, qword [rdi + 0x68]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
lea rbx, [rbp - 0x30]
cmovae rcx, rdx
cmovae rbx, rdx
mov r11, qword [r10]
cmp r11, r14
jne 0x14002ae89
mov qword [rbp - 0x38], rbx
mov eax, esi
test eax, eax
je 0x14002ad23
sub eax, 1
je 0x14002ad27
sub eax, 2
je 0x14002ae0d
xor bl, bl
jmp 0x14002ae0f
mov byte [rdi + 0x71], sil
cmp r8, 0x10
lea rax, [rbp - 0x30]
cmovae rax, rdx
sub rbx, rax
je 0x14002ad65
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
mov r8, rbx
cmovae rcx, rdx
mov edx, 1
call fcn.14008b4e0
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14002ad1c
cmp byte [rdi + 0x71], sil
je 0x14002ae0d
test rbx, rbx
jne 0x14002ace0
mov rcx, qword [rbp - 0x20]
or rax, 0xffffffffffffffff
sub rax, rcx
cmp rax, 8
jbe 0x14002aec2
lea rbx, [rcx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14002aeb8
cmp r8, rbx
jae 0x14002adf0
mov r8, rcx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400054e0
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
test rbx, rbx
je 0x14002ace0
mov rax, qword [rbp - 0x20]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
xor edx, edx
mov qword [rcx + rax], rdx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
mov qword [rbp - 0x20], rbx
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rbx], dl
jmp 0x14002accd
test rbx, rbx
jne 0x14002adc0
cmp r8, 0x10
mov qword [rbp - 0x20], rsi
lea rax, [rbp - 0x30]
cmovae rax, rdx
mov byte [rax], sil
jmp 0x14002accd
mov bl, 1
cmp r8, 0x10
jb 0x14002ae5a
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14002ae52
test byte [rbp - 0x30], 0x1f
jne 0x14002aecc
mov rax, qword [rdx - 8]
cmp rax, rdx
jae 0x14002aed2
sub rdx, rax
cmp rdx, 8
jb 0x14002aed8
cmp rdx, 0x27
ja 0x14002aede
mov rdx, rax
mov rcx, rdx
call fcn.140080c40
mov rsi, qword [rsp + 0x90]
movzx eax, bl
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400812a0
add rsp, 0x68
pop rdi
pop rbp
ret
mov al, 1
jmp 0x14002ae72
mov r9, qword [rbp - 0x20]
lea rax, [rbp - 0x38]
add r9, rcx
mov qword [rsp + 0x20], rax
mov rcx, r10
lea rdx, [rdi + 0x74]
mov r8, rbx
call qword [r11 + 0x40]
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x38]
jmp 0x14002ad0a
lea rcx, [rbp - 0x30]
call fcn.140004e90
int3
lea rcx, [rbp - 0x30]
call fcn.140004e90
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3