Function at 0x14004cd70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14d, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14004cda1
xor eax, eax
jmp 0x14004d032
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004cddd
mov r8, qword [rcx + 0x58]
movsxd r9, dword [r8]
lea rcx, [rdx + r9]
cmp rdx, rcx
jae 0x14004cddd
lea ecx, [r9 - 1]
mov eax, r14d
mov dword [r8], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r14b
jmp 0x14004d032
cmp qword [rdi + 0x80], 0
mov qword [rsp + 0xc8], rsi
jne 0x14004cdf8
or rax, 0xffffffffffffffff
jmp 0x14004d02a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14004ce25
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x68], 0
jne 0x14004ce4b
mov rdx, qword [rdi + 0x80]
movsx ecx, r14b
call fcn.14011c818
or rsi, 0xffffffffffffffff
cmp eax, esi
cmovne esi, r14d
jmp 0x14004d028
xor ecx, ecx
mov qword [rsp + 0x88], r12
mov edx, 0xf
mov byte [rbp + 0xf], 0
cmp rdx, 0x10
mov qword [rsp + 0x80], r15
lea rax, [rbp + 0xf]
mov byte [rbp - 9], r14b
cmovae rax, rcx
mov qword [rbp + 0x27], rdx
or rsi, 0xffffffffffffffff
mov qword [rbp + 0xf], rcx
mov qword [rbp + 0x1f], 8
lea r12, vtable.std::codecvt_char__char__struct__Mbstatet_.0
xor r15d, r15d
mov qword [rsp + 0xc0], rbx
mov byte [rax + 8], cl
mov r8, qword [rbp + 0x27]
mov r9, qword [rbp + 0x1f]
mov rdx, qword [rbp + 0xf]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x68]
lea rax, [rbp + 0xf]
cmp r8, 0x10
lea r10, [rbp + 0xf]
cmovae rax, rdx
cmovae r10, rdx
mov r11, qword [rcx]
cmp r11, r12
je 0x14004cf9a
jmp 0x14004d04a
lea rax, [rbp - 9]
mov byte [rdi + 0x71], 1
cmp qword [rbp - 1], rax
jne 0x14004cf8e
mov r9, qword [rbp + 0x1f]
test rbx, rbx
jne 0x14004ceb0
cmp r9, 0x20
jae 0x14004cfc5
mov rax, rsi
sub rax, r9
cmp rax, 8
jbe 0x14004d0eb
lea rbx, [r9 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14004d0e1
cmp r8, rbx
jae 0x14004cf71
mov r8, r9
lea rcx, [rbp + 0xf]
mov rdx, rbx
call fcn.14002b8bc
mov r8, qword [rbp + 0x27]
mov r9, qword [rbp + 0x1f]
mov rdx, qword [rbp + 0xf]
test rbx, rbx
je 0x14004ceb0
cmp r8, 0x10
lea rax, [rbp + 0xf]
cmovae rax, rdx
xor ecx, ecx
mov qword [r9 + rax], rcx
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
mov qword [rbp + 0x1f], rbx
cmovae rax, qword [rbp + 0xf]
mov byte [rax + rbx], cl
jmp 0x14004ce9f
test rbx, rbx
jne 0x14004cf45
cmp r8, 0x10
mov qword [rbp + 0x1f], r15
lea rax, [rbp + 0xf]
cmovae rax, rdx
mov byte [rax], r15b
jmp 0x14004ce9f
mov esi, r14d
jmp 0x14004cfc5
cmp eax, 3
je 0x14004cfa6
jmp 0x14004cfbd
lea rax, [rbp - 9]
mov qword [rbp + 7], r10
mov qword [rbp - 1], rax
movsx ecx, byte [rbp - 9]
mov rdx, qword [rdi + 0x80]
call fcn.14011c818
cmp eax, 0xffffffff
cmovne esi, r14d
mov rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x27]
cmp r8, 0x10
jb 0x14004d010
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14004d008
test byte [rbp + 0xf], 0x1f
jne 0x14004d0f5
mov rax, qword [rdx - 8]
cmp rax, rdx
jae 0x14004d0fb
sub rdx, rax
cmp rdx, 8
jb 0x14004d101
cmp rdx, 0x27
ja 0x14004d107
mov rdx, rax
mov rcx, rdx
call fcn.140111e78
mov rbx, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x88]
mov r15, qword [rsp + 0x80]
mov eax, esi
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140111850
add rsp, 0x90
pop r14
pop rdi
pop rbp
ret
add rax, r9
lea r8, [rbp + 7]
mov qword [rsp + 0x38], r8
lea rdx, [rdi + 0x74]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 8]
lea rax, [rbp - 1]
mov qword [rsp + 0x28], r10
lea r8, [rbp - 9]
mov qword [rsp + 0x20], rax
call qword [r11 + 0x38]
test eax, eax
js 0x14004cfbd
cmp eax, 1
jg 0x14004cf93
mov r8, qword [rbp + 0x27]
lea rax, [rbp + 0xf]
mov rdx, qword [rbp + 0xf]
cmp r8, 0x10
mov rbx, qword [rbp + 7]
cmovae rax, rdx
sub rbx, rax
je 0x14004ced9
mov r9, qword [rdi + 0x80]
lea rcx, [rbp + 0xf]
cmp r8, 0x10
mov r8, rbx
cmovae rcx, rdx
mov edx, 1
call fcn.14011d144
mov r8, qword [rbp + 0x27]
mov rdx, qword [rbp + 0xf]
cmp rbx, rax
jne 0x14004cfc5
jmp 0x14004ced9
lea rcx, [rbp + 0xf]
call fcn.14002b1c0
int3
lea rcx, [rbp + 0xf]
call fcn.14002b1c0
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3