Function at 0x140013cb0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdi, rcx
call fcn.1401298ec
mov esi, dword [rax]
call fcn.1401298ec
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x78]
movabs r13, 0x7ffffffffffffff8
test al, 0x10
mov dword [rsp + 0x60], ebp
je 0x1400140be
mov rax, qword [rdi + 0x48]
mov rbx, qword [rdi + 0x70]
cmp rbx, rax
jae 0x140013d15
mov qword [rdi + 0x70], rax
mov rbx, rax
mov r14, qword [rdi + 0x40]
sub rbx, r14
js 0x14001405a
cmp rbx, r13
jae 0x14001406d
cmp rbx, 0x16
ja 0x140013fcc
lea rcx, [rsp + 0x28]
mov byte [rcx + 0x17], bl
lea r15, [rcx + rbx]
cmp rcx, r14
ja 0x140013d4f
cmp r15, r14
ja 0x1400140ab
test rbx, rbx
je 0x140013d5f
mov rdx, r14
mov r8, rbx
call fcn.14012dd60
lea r14, [rdi + 0x10]
mov byte [r15], 0
movsx rbx, byte [rsp + 0x3f]
test rbx, rbx
jns 0x140013d77
mov rbx, qword [rsp + 0x30]
jns 0x140013d83
mov rcx, qword [rsp + 0x28]
call fcn.1401298a0
mov rax, qword [r14]
movsxd rax, dword [rax + 4]
mov r15, qword [r14 + rax + 0x30]
lea r12, [0x140242858]
cmp r15, r12
jne 0x140014077
lea rax, [0x140243550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140243550]
cmp rax, 0xffffffffffffffff
jne 0x140014136
movsxd rax, dword [0x140243558]
lea rdx, [rax - 1]
mov rcx, qword [r15 + 0x10]
mov r8, qword [r15 + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x140014055
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140014055
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov dl, 0xa
call qword [0x140223bc8]
mov ebp, eax
cmp r15, r12
jne 0x14001410e
mov rcx, r14
mov edx, ebp
call fcn.140014430
mov rcx, r14
call fcn.140014310
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1401fd0c0]
movaps xmmword [rsp + 0x40], xmm0
mov eax, dword [rdi + 0x78]
test al, 0x10
je 0x1400140db
mov rax, qword [rdi + 0x48]
mov r14, qword [rdi + 0x70]
cmp r14, rax
jae 0x140013e53
mov qword [rdi + 0x70], rax
mov r14, rax
mov r15, qword [rdi + 0x40]
sub r14, r15
js 0x14001405a
cmp r14, r13
jae 0x140014081
cmp r14, 0x16
ja 0x140013f8f
lea rcx, [rsp + 0x40]
mov byte [rcx + 0x17], r14b
lea r12, [rcx + r14]
cmp rcx, r15
ja 0x140013e8e
cmp r12, r15
ja 0x1400140ab
test r14, r14
je 0x140013e9e
mov rdx, r15
mov r8, r14
call fcn.14012dd60
mov byte [r12], 0
mov r8, qword [rdi + 0x118]
lea r15, [rsp + 0x28]
mov qword [rsp + 0x20], r15
lea r12, [rsp + 0x68]
lea r14, [rsp + 0x40]
mov rcx, r12
mov rdx, r14
mov r9, 0xffffffffffffffff
call fcn.1400ba060
mov eax, dword [rdi + 0x128]
mov rcx, qword [rdi + 0x120]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], 0x58
mov al, byte [0x1402435d8]
test al, al
jne 0x1400141ad
cmp byte [rsp + 0x7f], 0
jns 0x140013f14
mov rcx, qword [rsp + 0x68]
call fcn.1401298a0
cmp dword [rdi + 8], 3
je 0x1400141f1
mov eax, dword [0x140233650]
test al, 2
jne 0x14001408b
test al, 4
jne 0x14001400c
test eax, 0xfffffffa
jne 0x140013f45
cmp dword [rdi + 8], 2
jge 0x14001400c
test al, 1
jne 0x140014163
cmp dword [rdi + 8], 3
mov ebp, dword [rsp + 0x60]
je 0x1400140f9
cmp byte [rsp + 0x57], 0
jns 0x140013f6c
mov rcx, qword [rsp + 0x40]
call fcn.1401298a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1401298ec
mov dword [rax], esi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
and r13, r14
add r13, 8
mov r12, r14
or r12, 7
cmp r12, 0x17
cmove r12, r13
inc r12
mov rcx, r12
call fcn.1401298a8
mov rcx, rax
mov qword [rsp + 0x40], rax
bts r12, 0x3f
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r14
jmp 0x140013e7c
mov rax, rbx
and rax, r13
add rax, 8
mov r15, rbx
or r15, 7
cmp r15, 0x17
cmove r15, rax
inc r15
mov rcx, r15
call fcn.1401298a8
mov rcx, rax
mov qword [rsp + 0x28], rax
bts r15, 0x3f
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rbx
jmp 0x140013d3d
lea r14, [rsp + 0x40]
movsx r15, byte [r14 + 0x17]
test r15, r15
cmovs r15, qword [r14 + 8]
cmovs r14, qword [r14]
test r15, r15
je 0x140013f45
xor r12d, r12d
mov r8d, r15d
sub r8d, r12d
lea rdx, [r14 + r12]
mov ecx, 2
call fcn.14012a1e0
test eax, eax
jns 0x140014294
mov eax, dword [0x140233650]
jmp 0x140013f45
call fcn.140163630
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude_string_view:330:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
call fcn.140163630
lea rcx, [rsp + 0x28]
call fcn.1401686c0
lock inc dword [r15 + 8]
jmp 0x140013d9f
lea rcx, [rsp + 0x40]
call fcn.1401686c0
cmp byte [rsp + 0x57], 0
jns 0x140014097
mov r14, qword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140233650]
jmp 0x140013f2c
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h:145:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
call fcn.140163630
xor r14d, r14d
mov ebx, 0
test al, 8
je 0x140013d35
mov r14, qword [rdi + 0x28]
mov rbx, qword [rdi + 0x38]
jmp 0x140013d19
xor r14d, r14d
mov r15d, 0
test al, 8
je 0x140013e73
mov r15, qword [rdi + 0x28]
mov r14, qword [rdi + 0x38]
jmp 0x140013e57
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140186860
jmp 0x140013f5b
mov eax, 0xffffffff
lock xadd dword [r15 + 8], eax
test eax, eax
jne 0x140013e07
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x140223bc8]
jmp 0x140013e07
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
lea rdx, [rsp + 0x40]
mov qword [rdx], rcx
lea rcx, [0x140243550]
lea r8, [0x1400933d0]
call fcn.140006410
jmp 0x140013dbc
call fcn.1401864b0
test al, al
je 0x140013f4d
lea r9, [rsp + 0x28]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x40]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x140243858]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140013f4d
movzx ecx, al
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x28]
mov qword [r9], rax
lea rax, [rsp + 0x64]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r12
lea rax, str.LogMessage
lea r8, [rsp + 0x90]
mov qword [r8], rax
lea rdx, [rsp + 0x80]
call fcn.140186f10
jmp 0x140013f03
cmp byte [0x14024389c], 0
jne 0x140013f1e
mov byte [0x14024389c], 1
mov eax, dword [0x1402438a8]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400142cd
mov rcx, rdi
mov rdx, r15
call fcn.140186790
movsx rax, byte [rsp + 0x3f]
test rax, rax
jns 0x14001424a
mov rax, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rax
test rax, rax
js 0x1400142a7
sete al
test r15, r15
setne cl
or cl, al
je 0x1400142ba
mov rcx, qword [0x1402438a0]
lea rdx, [rsp + 0x68]
call fcn.14000ff00
cmp byte [rsp + 0x3f], 0
jns 0x140014288
mov rcx, qword [rsp + 0x28]
call fcn.1401298a0
mov byte [0x14024389c], 0
jmp 0x140013f1e
mov eax, eax
add r12, rax
cmp r12, r15
jb 0x14001402e
jmp 0x14001404a
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.140163630
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.140163630
lea rcx, [0x1402438a8]
call fcn.1401299b4
cmp dword [0x1402438a8], 0xffffffff
jne 0x14001422a
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140014420
mov qword [0x1402438a0], rax
lea rcx, [0x1402438a8]
call fcn.140129a1c
jmp 0x14001422a