Function at 0x18000f3e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x18000f626
cmp byte [rcx + 0x71], 0
je 0x18000f626
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x18000f42b
xor al, al
jmp 0x18000f628
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r14d, r14d
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x28]
cmovae r8, rcx
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18000f4a1
sub eax, 1
jne 0x18000f59e
jmp 0x18000f4a5
mov byte [rdi + 0x71], r14b
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x18000f4f7
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
cmp rbx, rax
jne 0x18000f5ab
cmp byte [rdi + 0x71], r14b
je 0x18000f5cb
test rbx, rbx
jne 0x18000f460
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x18000f5bd
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x18000f5af
cmp r9, rbx
jae 0x18000f548
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.18000fa80
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
jmp 0x18000f565
test rbx, rbx
jne 0x18000f56e
mov qword [rbp - 0x18], r14
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, rcx
mov byte [rax], r14b
jmp 0x18000f458
test rbx, rbx
je 0x18000f460
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, rcx
mov rax, qword [rbp - 0x18]
xor ecx, ecx
mov qword [rax + rdx], rcx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rbx + rax], cl
jmp 0x18000f458
sub eax, 2
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
je 0x18000f5cb
xor bl, bl
jmp 0x18000f5cd
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov bl, 1
cmp r9, 0x10
jb 0x18000f621
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x18000f61c
test byte [rbp - 0x28], 0x1f
je 0x18000f5ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000f5fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000f60c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x18000f619
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.180015d28
movzx eax, bl
jmp 0x18000f628
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret