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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov rsi, rcx
mov eax, dword [rcx + 0x78]
movabs r12, 0x7ffffffffffffff8
test al, 0x10
je 0x14000d3ce
mov rax, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x70]
cmp rdi, rax
jae 0x14000d03d
mov qword [rsi + 0x70], rax
mov rdi, rax
mov rbx, qword [rsi + 0x40]
sub rdi, rbx
js 0x14000d36a
cmp rdi, r12
jae 0x14000d37d
cmp rdi, 0x16
ja 0x14000d2dc
lea rcx, [rsp + 0x28]
mov byte [rcx + 0x17], dil
lea r14, [rcx + rdi]
cmp rcx, rbx
ja 0x14000d078
cmp r14, rbx
ja 0x14000d3bb
test rdi, rdi
je 0x14000d088
mov rdx, rbx
mov r8, rdi
call fcn.140163ed0
lea rbx, [rsi + 0x10]
mov byte [r14], 0
movsx rdi, byte [rsp + 0x3f]
test rdi, rdi
jns 0x14000d0a0
mov rdi, qword [rsp + 0x30]
jns 0x14000d0ac
mov rcx, qword [rsp + 0x28]
call fcn.14012aa6c
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
mov r14, qword [rbx + rax + 0x30]
lea r15, [0x140242858]
cmp r14, r15
jne 0x14000d387
lea rax, [0x140243550]
mov qword [rsp + 0x60], rax
mov rax, qword [0x140243550]
cmp rax, 0xffffffffffffffff
jne 0x14000d444
movsxd rax, dword [0x140243558]
lea rdx, [rax - 1]
mov rcx, qword [r14 + 0x10]
mov r8, qword [r14 + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x14000d365
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x14000d365
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov dl, 0xa
call qword [0x1402233e0]
mov ebp, eax
cmp r14, r15
jne 0x14000d41c
mov rcx, rbx
mov edx, ebp
call fcn.14000d740
mov rcx, rbx
call fcn.14000d620
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1401fd000]
movaps xmmword [rsp + 0x40], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x14000d3ea
mov rax, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x70]
cmp rbx, rax
jae 0x14000d17c
mov qword [rsi + 0x70], rax
mov rbx, rax
mov r14, qword [rsi + 0x40]
sub rbx, r14
js 0x14000d36a
cmp rbx, r12
jae 0x14000d391
cmp rbx, 0x16
ja 0x14000d29f
lea rcx, [rsp + 0x40]
mov byte [rcx + 0x17], bl
lea r15, [rcx + rbx]
cmp rcx, r14
ja 0x14000d1b6
cmp r15, r14
ja 0x14000d3bb
test rbx, rbx
je 0x14000d1c6
mov rdx, r14
mov r8, rbx
call fcn.140163ed0
mov byte [r15], 0
mov r8, qword [rsi + 0x118]
lea r14, [rsp + 0x28]
mov qword [rsp + 0x20], r14
lea r15, [rsp + 0x60]
lea rbx, [rsp + 0x40]
mov rcx, r15
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.140109fe0
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x78], 0x56
mov al, byte [0x1402435d6]
test al, al
jne 0x14000d4bb
cmp byte [rsp + 0x77], 0
jns 0x14000d238
mov rcx, qword [rsp + 0x60]
call fcn.14012aa6c
cmp dword [rsi + 8], 3
je 0x14000d4fc
mov eax, dword [0x1402336b0]
test al, 2
jne 0x14000d39b
test al, 4
jne 0x14000d31c
test eax, 0xfffffffa
jne 0x14000d269
cmp dword [rsi + 8], 2
jge 0x14000d31c
test al, 1
jne 0x14000d471
cmp dword [rsi + 8], 3
je 0x14000d407
cmp byte [rsp + 0x57], 0
jns 0x14000d28c
mov rcx, qword [rsp + 0x40]
call fcn.14012aa6c
nop
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
and r12, rbx
add r12, 8
mov r15, rbx
or r15, 7
cmp r15, 0x17
cmove r15, r12
inc r15
mov rcx, r15
call fcn.14012aa30
mov rcx, rax
mov qword [rsp + 0x40], rax
bts r15, 0x3f
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rbx
jmp 0x14000d1a4
mov rax, rdi
and rax, r12
add rax, 8
mov r14, rdi
or r14, 7
cmp r14, 0x17
cmove r14, rax
inc r14
mov rcx, r14
call fcn.14012aa30
mov rcx, rax
mov qword [rsp + 0x28], rax
bts r14, 0x3f
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdi
jmp 0x14000d066
lea rbx, [rsp + 0x40]
movsx r14, byte [rbx + 0x17]
test r14, r14
cmovs r14, qword [rbx + 8]
cmovs rbx, qword [rbx]
test r14, r14
je 0x14000d269
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.14012ae08
test eax, eax
jns 0x14000d599
mov eax, dword [0x1402336b0]
jmp 0x14000d269
call fcn.140164a90
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcinclude_string_view:326:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
call fcn.140164a90
lea rcx, [rsp + 0x28]
call fcn.140168b00
lock inc dword [r14 + 8]
jmp 0x14000d0c8
lea rcx, [rsp + 0x40]
call fcn.140168b00
cmp byte [rsp + 0x57], 0
jns 0x14000d3a7
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402336b0]
jmp 0x14000d250
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h:146:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
call fcn.140164a90
xor ebx, ebx
mov edi, 0
test al, 8
je 0x14000d05d
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x38]
jmp 0x14000d041
xor ebx, ebx
mov r14d, 0
test al, 8
je 0x14000d19c
mov r14, qword [rsi + 0x28]
mov rbx, qword [rsi + 0x38]
jmp 0x14000d180
lea r8, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140187230
jmp 0x14000d27b
mov eax, 0xffffffff
lock xadd dword [r14 + 8], eax
test eax, eax
jne 0x14000d130
mov rax, qword [r14]
mov rax, qword [rax + 8]
mov rcx, r14
call qword [0x1402233e0]
jmp 0x14000d130
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
lea rdx, [rsp + 0x40]
mov qword [rdx], rcx
lea rcx, [0x140243550]
lea r8, [0x140097dc0]
call fcn.140008070
jmp 0x14000d0e5
call fcn.140186e80
test al, al
je 0x14000d271
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 0x14000d271
movzx ecx, al
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x28]
mov qword [r9], rax
lea rax, [rsp + 0x5c]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r15
lea rax, str.LogMessage
lea r8, [rsp + 0x88]
mov qword [r8], rax
lea rdx, [rsp + 0x78]
call fcn.1401878b0
jmp 0x14000d227
cmp byte [0x14024389c], 0
jne 0x14000d242
mov byte [0x14024389c], 1
mov eax, dword [0x1402438a8]
mov ecx, dword [0x1402403d8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000d5d2
mov rcx, rsi
mov rdx, r14
call fcn.140187160
movsx rax, byte [rsp + 0x3f]
test rax, rax
jns 0x14000d555
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rax
test rax, rax
js 0x14000d5ac
je 0x14000d56b
test r14, r14
je 0x14000d5bf
mov rcx, qword [0x1402438a0]
lea rdx, [rsp + 0x60]
call fcn.140008a80
cmp byte [rsp + 0x3f], 0
jns 0x14000d58d
mov rcx, qword [rsp + 0x28]
call fcn.14012aa6c
mov byte [0x14024389c], 0
jmp 0x14000d242
mov eax, eax
add r15, rax
cmp r15, r14
jb 0x14000d33e
jmp 0x14000d35a
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcinclude_string_view:314:_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.140164a90
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.140164a90
lea rcx, [0x1402438a8]
call fcn.14012ad90
cmp dword [0x1402438a8], 0xffffffff
jne 0x14000d535
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.14000d730
mov qword [0x1402438a0], rax
lea rcx, [0x1402438a8]
call fcn.14012ad24
jmp 0x14000d535