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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140199040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x58]
mov qword [rcx], r15
call fcn.14004a710
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x1400d450a
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x70]
cmp rax, rcx
jae 0x1400d40da
mov qword [rsi + 0x70], rcx
mov rax, rcx
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x40], rcx
sub rax, rcx
mov qword [rsp + 0x48], rax
js 0x1400d456d
lea rbx, [rsi + 0x10]
lea rdi, [rsp + 0x80]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.14003d490
movsx rdi, byte [rdi + 0x17]
test rdi, rdi
jns 0x1400d4121
mov rdi, qword [rsp + 0x88]
jns 0x1400d4130
mov rcx, qword [rsp + 0x80]
call fcn.140098d0c
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0x80]
mov rdx, r14
call fcn.140035286
lea rdx, [0x1401aa148]
mov rcx, r14
call fcn.140037f0a
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x14018a6e8]
mov ebp, eax
mov rcx, r14
call fcn.1400353c8
mov rcx, rbx
mov edx, ebp
call fcn.140027ac6
mov rcx, rbx
call fcn.1400272d2
mov qword [rsp + 0x50], r15
movaps xmm0, xmmword [0x140165510]
movaps xmmword [rsp + 0x40], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x1400d4538
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x70]
cmp rax, rcx
jae 0x1400d41bb
mov qword [rsi + 0x70], rcx
mov rax, rcx
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x80], rcx
sub rax, rcx
mov qword [rsp + 0x88], rax
js 0x1400d456d
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x80]
lea r8, [rsp + 0x28]
mov rcx, rbx
mov rdx, r14
call fcn.14003d490
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.140038868
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], 0x70
mov rax, qword [0x1401758b0]
mov al, byte [rax + 0x70]
test al, al
jne 0x1400d4464
cmp byte [rsp + 0x3f], 0
jns 0x1400d425a
mov rcx, qword [rsp + 0x28]
call fcn.140098d0c
cmp dword [rsi + 8], 3
jne 0x1400d426d
cmp byte [0x1401ab074], 0
je 0x1400d43c1
mov rax, qword [0x1401ab030]
test rax, rax
je 0x1400d42a4
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], rbx
call qword [0x14018a6e8]
test al, al
jne 0x1400d4324
mov eax, dword [0x14019b4cc]
test al, 2
je 0x1400d42c9
cmp byte [rsp + 0x57], 0
jns 0x1400d42ba
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14019b4cc]
test al, 4
jne 0x1400d42da
test eax, 0xfffffffa
jne 0x1400d4320
cmp dword [rsi + 8], 2
jl 0x1400d4320
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 0x1400d4320
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.1400b2188
test eax, eax
js 0x1400d431a
mov eax, eax
add r15, rax
cmp r15, r14
jb 0x1400d42f8
mov eax, dword [0x14019b4cc]
test al, 1
jne 0x1400d4378
cmp dword [rsi + 8], 3
je 0x1400d4366
cmp byte [rsp + 0x57], 0
jns 0x1400d433b
mov rcx, qword [rsp + 0x40]
call fcn.140098d0c
lea rcx, [rsp + 0x58]
call fcn.14004a750
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009a1f0
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.1400d4590
jmp 0x1400d432a
call fcn.1400d3db0
test al, al
je 0x1400d4324
lea r9, [rsp + 0x80]
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 [0x1401ab018]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400d4324
mov byte [0x1401ab074], 1
mov eax, dword [0x1401ab080]
mov ecx, dword [0x1401a7af0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d44c8
mov rcx, rsi
mov rdx, r14
call fcn.14010eca0
movsx rax, byte [rsp + 0x97]
test rax, rax
jns 0x1400d4416
mov rax, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], rax
test rax, rax
js 0x1400d44a2
je 0x1400d4430
test r14, r14
je 0x1400d44b5
mov rcx, qword [0x1401ab078]
lea rdx, [rsp + 0x28]
call fcn.140068dd0
cmp byte [rsp + 0x97], 0
jns 0x1400d4458
mov rcx, qword [rsp + 0x80]
call fcn.140098d0c
mov byte [0x1401ab074], 0
jmp 0x1400d426d
movzx ecx, al
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x80]
mov qword [r9], rax
lea rax, [rsp + 0x74]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r15
lea rax, str.LogMessage
lea r8, [rsp + 0x78]
mov qword [r8], rax
lea rdx, [rsp + 0x60]
call fcn.14006cae0
jmp 0x1400d4249
lea rcx, [0x140168205]
lea rdx, str....._third_partylibc_srcinclude_string_view:311:_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.1400e0394
lea rcx, [0x140168205]
lea rdx, str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1400e0394
lea rcx, [0x1401ab080]
call fcn.140098d5c
cmp dword [0x1401ab080], 0xffffffff
jne 0x1400d43ed
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140068da0
mov qword [0x1401ab078], rax
lea rcx, [0x1401ab080]
call fcn.140098e10
jmp 0x1400d43ed
test al, 8
jne 0x1400d451b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
jmp 0x1400d40f1
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x40], rax
sub rcx, rax
mov qword [rsp + 0x48], rcx
jns 0x1400d40f1
jmp 0x1400d456d
test al, 8
jne 0x1400d454c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
jmp 0x1400d41d8
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x80], rax
sub rcx, rax
mov qword [rsp + 0x88], rcx
jns 0x1400d41d8
lea rcx, [0x140168205]
lea rdx, str....._third_partylibc_srcinclude_string_view:323:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
call fcn.1400e0394
int3