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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x1401ab040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov eax, dword [rcx + 0x78]
test al, 0x10
je 0x1400e3cad
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x70]
cmp rax, rcx
jae 0x1400e38c3
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 0x1400e3d07
lea rbx, [rsi + 0x10]
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140041790
movsx rdi, byte [rdi + 0x17]
test rdi, rdi
jns 0x1400e3904
mov rdi, qword [rsp + 0x78]
jns 0x1400e3910
mov rcx, qword [rsp + 0x70]
call fcn.1400a65cc
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0x70]
mov rdx, r14
call fcn.1400319c2
lea rdx, [0x1401bcf78]
mov rcx, r14
call fcn.14003e432
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x14019aa20]
mov ebp, eax
mov rcx, r14
call fcn.14003276e
mov rcx, rbx
mov edx, ebp
call fcn.140029666
mov rcx, rbx
call fcn.140028e72
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140178510]
movaps xmmword [rsp + 0x40], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x1400e3cdb
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x70]
cmp rax, rcx
jae 0x1400e39a2
mov qword [rsi + 0x70], rcx
mov rax, rcx
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x70], rcx
sub rax, rcx
mov qword [rsp + 0x78], rax
js 0x1400e3d07
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x70]
lea r8, [rsp + 0x28]
mov rcx, rbx
mov rdx, r14
call fcn.140041790
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.14003edb4
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x60], rcx
test byte [0x1401ad5d0], 0x19
jne 0x1400e3c1a
cmp byte [rsp + 0x3f], 0
jns 0x1400e3a2a
mov rcx, qword [rsp + 0x28]
call fcn.1400a65cc
cmp dword [rsi + 8], 3
jne 0x1400e3a3d
cmp byte [0x1401be11c], 0
je 0x1400e3b84
mov rax, qword [0x1401be0d8]
test rax, rax
je 0x1400e3a74
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 [0x14019aa20]
test al, al
jne 0x1400e3af4
mov eax, dword [0x1401ae70c]
test al, 2
je 0x1400e3a99
cmp byte [rsp + 0x57], 0
jns 0x1400e3a8a
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1401ae70c]
test al, 4
jne 0x1400e3aaa
test eax, 0xfffffffa
jne 0x1400e3af0
cmp dword [rsi + 8], 2
jl 0x1400e3af0
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 0x1400e3af0
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.1400bfa48
test eax, eax
js 0x1400e3aea
mov eax, eax
add r15, rax
cmp r15, r14
jb 0x1400e3ac8
mov eax, dword [0x1401ae70c]
test al, 1
jne 0x1400e3b3e
cmp dword [rsi + 8], 3
je 0x1400e3b2c
cmp byte [rsp + 0x57], 0
jns 0x1400e3b0b
mov rcx, qword [rsp + 0x40]
call fcn.1400a65cc
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400a7ab0
nop
add rsp, 0x98
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.1400e3d20
jmp 0x1400e3afa
call fcn.1400e35b0
test al, al
je 0x1400e3af4
lea r9, [rsp + 0x70]
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 [0x1401be0c0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400e3af4
mov byte [0x1401be11c], 1
mov eax, dword [0x1401be128]
mov ecx, dword [0x1401bad70]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e3c6b
mov rcx, rsi
mov rdx, r14
call fcn.14011f220
movsx rax, byte [rsp + 0x87]
test rax, rax
jns 0x1400e3bd3
mov rax, qword [rsp + 0x78]
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], rax
test rax, rax
js 0x1400e3c45
je 0x1400e3be9
test r14, r14
je 0x1400e3c58
mov rcx, qword [0x1401be120]
lea rdx, [rsp + 0x28]
call fcn.1400702e0
cmp byte [rsp + 0x87], 0
jns 0x1400e3c0e
mov rcx, qword [rsp + 0x70]
call fcn.1400a65cc
mov byte [0x1401be11c], 0
jmp 0x1400e3a3d
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
lea rax, [rsp + 0x6c]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r15
lea rcx, str.LogMessage
call fcn.1400736c0
jmp 0x1400e3a19
lea rcx, [0x14017b0a5]
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.1400ef50b
lea rcx, [0x14017b0a5]
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.1400ef50b
lea rcx, [0x1401be128]
call fcn.1400a661c
cmp dword [0x1401be128], 0xffffffff
jne 0x1400e3bb0
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.1400702b0
mov qword [0x1401be120], rax
lea rcx, [0x1401be128]
call fcn.1400a66d0
jmp 0x1400e3bb0
test al, 8
jne 0x1400e3cbe
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
jmp 0x1400e38da
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x40], rax
sub rcx, rax
mov qword [rsp + 0x48], rcx
jns 0x1400e38da
jmp 0x1400e3d07
test al, 8
jne 0x1400e3cec
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
jmp 0x1400e39b9
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x70], rax
sub rcx, rax
mov qword [rsp + 0x78], rcx
jns 0x1400e39b9
lea rcx, [0x14017b0a5]
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.1400ef50b
int3