Function at 0x1400038d0
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, 0x498
mov rsi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x490], rax
movabs r13, 0x7ffffffffffffff7
lea rax, [0x14029ec40]
mov qword [rcx], rax
mov eax, dword [rcx + 0x78]
test al, 0x10
je 0x140003d13
mov rax, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x70]
cmp rdi, rax
jae 0x14000392b
mov qword [rsi + 0x70], rax
mov rdi, rax
mov rbx, qword [rsi + 0x40]
sub rdi, rbx
js 0x140003f7d
cmp rdi, r13
ja 0x140003f66
cmp rdi, 0x16
jbe 0x140003c9b
lea rax, [r13 + 1]
and rax, rdi
add rax, 8
mov r14, rdi
or r14, 7
cmp r14, 0x17
cmove r14, rax
inc r14
mov rcx, r14
call fcn.1401cbbc4
mov rcx, rax
mov qword [rsp + 0x90], rax
lea rax, [r13 + 9]
or rax, r14
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x98], rdi
lea r14, [rcx + rdi]
cmp rcx, rbx
ja 0x1400039a4
cmp r14, rbx
ja 0x140003fbb
test rdi, rdi
je 0x1400039b4
mov rdx, rbx
mov r8, rdi
call fcn.1401d0030
lea r15, [rsi + 0x10]
lea rdi, [rsi + 0x18]
mov byte [r14], 0
movzx ebx, byte [rsp + 0xa7]
test bl, bl
jns 0x1400039d4
mov rbx, qword [rsp + 0x98]
jns 0x1400039e3
mov rcx, qword [rsp + 0x90]
call fcn.1401cbbbc
mov rax, qword [r15]
movsxd rax, dword [rax + 4]
mov rax, qword [r15 + rax + 0x30]
lea r14, [rsp + 0x90]
mov qword [r14], rax
lock inc dword [rax + 8]
lea rdx, [0x1402e3b78]
mov rcx, r14
call fcn.1401591d0
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1402f5008]
mov ebp, eax
mov rcx, qword [r14]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
je 0x140003fa9
mov rcx, r15
mov edx, ebp
call fcn.140004070
mov rcx, r15
call fcn.1400037c0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x14029ca60]
movaps xmmword [rsp + 0x60], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x140003ccc
mov rax, qword [rsi + 0x48]
mov r15, qword [rsi + 0x70]
cmp r15, rax
jae 0x140003a85
mov qword [rsi + 0x70], rax
mov r15, rax
mov r12, qword [rsi + 0x40]
sub r15, r12
js 0x140003f7d
cmp r15, r13
ja 0x140003f73
cmp r15, 0x16
jbe 0x140003c8d
lea rax, [r13 + 1]
and rax, r15
add rax, 8
mov rbp, r13
mov r13, r15
or r13, 7
cmp r13, 0x17
cmove r13, rax
inc r13
mov rcx, r13
call fcn.1401cbbc4
mov rcx, rax
mov qword [rsp + 0x60], rax
add rbp, 9
or rbp, r13
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
lea r13, [rcx + r15]
cmp rcx, r12
ja 0x140003af8
cmp r13, r12
ja 0x140003fbb
test r15, r15
je 0x140003b08
mov rdx, r12
mov r8, r15
call fcn.1401d0030
mov byte [r13], 0
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
lea r12, [rsp + 0x48]
lea r15, [rsp + 0x60]
mov rcx, r12
mov rdx, r15
mov r9, 0xffffffffffffffff
call fcn.1400208c0
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x80], rcx
test byte [0x1402d95a0], 0x19
jne 0x140003ce6
cmp byte [rsp + 0x5f], 0
jns 0x140003b6f
mov rcx, qword [rsp + 0x48]
call fcn.1401cbbbc
cmp dword [rsi + 8], 3
je 0x140003d81
mov eax, dword [0x1402da9cc]
test al, 2
jne 0x140003cac
test al, 4
jne 0x140003b96
cmp eax, 1
ja 0x140003be2
cmp dword [rsi + 8], 2
jl 0x140003be2
lea r14, [rsp + 0x60]
movzx ecx, byte [r14 + 0x17]
mov r15d, ecx
and r15d, 0x7f
test cl, cl
cmovs r15, qword [r14 + 8]
cmovs r14, qword [r14]
test r15, r15
je 0x140003be2
xor r12d, r12d
mov r8d, r15d
sub r8d, r12d
lea rdx, [r14 + r12]
mov ecx, 2
call fcn.1401cbc98
test eax, eax
js 0x140003bdc
mov eax, eax
add r12, rax
cmp r12, r15
jb 0x140003bba
mov eax, dword [0x1402da9cc]
test al, 1
jne 0x140003d2f
cmp dword [rsi + 8], 3
je 0x140003de0
cmp byte [rsp + 0x77], 0
jns 0x140003c05
mov rcx, qword [rsp + 0x60]
call fcn.1401cbbbc
mov ecx, dword [rsi + 0x130]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [rsi + 0x12c]
call fcn.1401cbc78
mov dword [rax], ebx
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, str._N__
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x14029e710]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140003c4c
mov rcx, qword [rsi + 0x58]
call fcn.1401cbbbc
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.140159340
mov rcx, rdi
call fcn.14014b4b0
mov rcx, rsi
call fcn.140159250
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401ce5b0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x60]
mov byte [rcx + 0x17], r15b
jmp 0x140003ae6
lea rcx, [rsp + 0x90]
mov byte [rcx + 0x17], dil
jmp 0x140003992
cmp byte [rsp + 0x77], 0
jns 0x140003cb8
mov r15, qword [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402da9cc]
jmp 0x140003b87
xor r15d, r15d
mov r12d, 0
test al, 8
je 0x140003c8d
mov r12, qword [rsi + 0x28]
mov r15, qword [rsi + 0x38]
jmp 0x140003a89
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x90]
mov qword [rcx], rax
lea rax, [rsp + 0x8c]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r12
call fcn.14023cbc0
jmp 0x140003b5e
xor ebx, ebx
mov edi, 0
test al, 8
je 0x140003c9b
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x38]
jmp 0x14000392f
call fcn.14023c5a0
test al, al
je 0x140003bea
lea r9, [rsp + 0x90]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1402e5a30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140003bea
cmp byte [0x1402e5a64], 0
jne 0x140003b79
mov byte [0x1402e5a64], 1
mov eax, dword [0x1402e5a70]
mov ecx, dword [0x1402db110]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004019
mov rcx, rsi
mov rdx, r14
call fcn.14023c950
movzx r8d, byte [rsp + 0xa7]
test r8b, r8b
js 0x140003f14
and r8d, 0x7f
jmp 0x140003f24
lea r14, [rsp + 0x90]
mov r8d, 0x400
mov rcx, r14
mov dl, 0xaa
call fcn.1401d06e0
cmp byte [rsp + 0x77], 0
js 0x140003e06
lea rdx, [rsp + 0x60]
jmp 0x140003e0b
mov rdx, qword [rsp + 0x60]
mov r8d, 0x400
mov rcx, r14
call fcn.1401c9b00
mov rcx, r14
call fcn.14014b4b0
call fcn.14023c880
mov rax, qword [0x1402e5a50]
cmp rax, qword [0x1402e5a58]
je 0x140004013
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x48], rax
call fcn.14023c880
mov rdx, qword [0x1402e5a58]
test rdx, rdx
mov rax, qword [0x1402e5a48]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140004016
shl rdx, 3
add rdx, qword [0x1402e5a40]
lea r14, [rsp + 0x48]
mov rcx, r14
call fcn.1401ca810
cmp qword [r14], 0
jne 0x140003e9c
lea rcx, [rsp + 0x48]
call fcn.1401ca840
jmp 0x140003bf4
cmp byte [rsp + 0x77], 0
js 0x140003eaa
lea r14, [rsp + 0x60]
jmp 0x140003eaf
mov r14, qword [rsp + 0x60]
mov rcx, r14
add rcx, rbx
mov qword [rsp + 0x38], rcx
je 0x140003fe7
call fcn.1401f05b0
lea r12, [rsp + 0x38]
mov qword [r12 + 8], rax
mov rax, qword [rsi + 0x118]
sub rbx, rax
add r14, rax
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1401c8260
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x48]
mov r9, r15
call fcn.14023c8f0
jmp 0x140003e8d
mov r8, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
lea r12, [rsp + 0x48]
mov rcx, r12
mov rdx, r14
call fcn.1401c8260
mov rcx, qword [0x1402e5a68]
mov rdx, r12
call fcn.140007350
cmp byte [rsp + 0xa7], 0
jns 0x140003f5a
mov rcx, qword [rsp + 0x90]
call fcn.1401cbbbc
mov byte [0x1402e5a64], 0
jmp 0x140003b79
lea rcx, [rsp + 0x90]
call fcn.140207060
lea rcx, [rsp + 0x60]
call fcn.140207060
lea rax, str.std::string_view::string_view_iterator__sentinel__received_invalid_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.___end_____begin____0
mov r8d, 0x147
call fcn.140207060
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1402f5008]
jmp 0x140003a39
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1____n
mov r8d, 0xf3
call fcn.140207060
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140207060
int3
int3
lea rcx, [0x1402e5a70]
call fcn.1401cc16c
cmp dword [0x1402e5a70], 0xffffffff
jne 0x140003dba
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140004060
mov qword [0x1402e5a68], rax
lea rcx, [0x1402e5a70]
call fcn.1401cc1d4
jmp 0x140003dba