Function at 0x140042350
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, 0xb0
mov rsi, rcx
mov rax, qword [0x1400db028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rbx, [rcx + 0x10]
lea r14, [rcx + 0x18]
lea rdx, [rsp + 0x50]
lea r12, [rsp + 0x90]
mov rcx, r14
mov r8, r12
call fcn.140045610
movzx edi, byte [rsp + 0x67]
test dil, dil
jns 0x1400423af
mov rcx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
call fcn.140081c24
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r15, [rsp + 0x50]
mov rdx, r15
call fcn.140021ec6
lea rdx, [0x1400eb568]
mov rcx, r15
call fcn.140036918
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1400d0798]
mov ebp, eax
mov rcx, r15
call fcn.140023e7a
mov rcx, rbx
mov edx, ebp
call fcn.140019542
mov rcx, rbx
call fcn.140018bc2
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x1400bdae0]
movaps xmmword [rsp + 0x30], xmm0
lea rbx, [rsp + 0x30]
lea r15, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140045610
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r15
mov rcx, r12
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.14003c0f0
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x84], eax
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], 0x56
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x88], r15
mov rax, qword [0x1400c8f90]
movzx eax, byte [rax + 0x56]
test al, al
jne 0x1400424cc
cmp byte [rsp + 0xa7], 0
js 0x1400424e6
cmp dword [rsi + 8], 3
je 0x1400424fd
jmp 0x140042630
movzx edx, al
lea rcx, [rsp + 0x88]
call fcn.140043220
cmp byte [rsp + 0xa7], 0
jns 0x1400424c1
mov rcx, qword [rsp + 0x90]
call fcn.140081c24
cmp dword [rsi + 8], 3
jne 0x140042630
cmp byte [0x1400ec19c], 0
jne 0x140042630
mov byte [0x1400ec19c], 1
mov eax, dword [0x1400ec1a8]
mov ecx, dword [0x1400e9620]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400427a2
lea r8, [rsp + 0x90]
mov rcx, r14
mov rdx, r15
call fcn.140045610
cmp byte [rsp + 0x67], 0
jns 0x140042555
mov r15, qword [rsp + 0x50]
add r15, qword [rsi + 0x118]
mov ebp, dword [rsi + 0x128]
mov r14, qword [rsi + 0x120]
test r14, r14
je 0x140042588
mov rcx, r14
mov edx, 0x5c
call fcn.1400852e0
lea r8, [rax + 1]
test rax, rax
cmove r8, r14
jmp 0x14004258b
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea rdx, str._s:_d:__s
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, ebp
call fcn.1400544a0
cmp byte [rsp + 0x67], 0
jns 0x1400425bb
mov rcx, qword [rsp + 0x50]
call fcn.140081c24
movzx eax, byte [rsp + 0xa7]
test al, al
js 0x1400425d3
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rax
jmp 0x140042601
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
test rcx, rcx
js 0x14004277c
je 0x140042601
test rax, rax
je 0x14004278f
mov rcx, qword [0x1400ec1a0]
lea rdx, [rsp + 0x50]
call fcn.140054e60
cmp byte [rsp + 0xa7], 0
jns 0x140042629
mov rcx, qword [rsp + 0x90]
call fcn.140081c24
mov byte [0x1400ec19c], 0
mov rax, qword [0x1400ec150]
test rax, rax
je 0x140042667
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 [0x1400d0798]
test al, al
jne 0x140042732
mov eax, dword [0x1400dcfc0]
test al, 2
je 0x14004268c
cmp byte [rsp + 0x47], 0
jns 0x14004267d
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400dcfc0]
test al, 4
jne 0x14004269d
test eax, 0xfffffffa
jne 0x1400426e8
cmp dword [rsi + 8], 2
jl 0x1400426e8
movzx ebx, byte [rsp + 0x47]
test bl, bl
cmovs rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x30]
cmovs r14, qword [rsp + 0x30]
test rbx, rbx
je 0x1400426e8
xor r15d, r15d
nop dword [rax]
mov r8d, ebx
sub r8d, r15d
lea rdx, [r14 + r15]
mov ecx, 2
call fcn.140097eec
test eax, eax
js 0x1400426e2
mov eax, eax
add r15, rax
cmp r15, rbx
jb 0x1400426c0
mov eax, dword [0x1400dcfc0]
test al, 1
je 0x140042732
call fcn.140041a40
test al, al
je 0x140042732
mov dword [rsp + 0x50], 0xaaaaaaaa
movzx r8d, byte [rsp + 0x47]
test r8b, r8b
cmovs r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x30]
cmovs rdx, qword [rsp + 0x30]
mov rcx, qword [0x1400ec168]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x140042748
lea r8, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.1400428b0
cmp byte [rsp + 0x47], 0
jns 0x140042759
mov rcx, qword [rsp + 0x30]
call fcn.140081c24
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140082fb0
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400bf97f]
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.14001b460
lea rcx, [0x1400bf97f]
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.14001b460
lea rcx, [0x1400ec1a8]
call fcn.140081d40
cmp dword [0x1400ec1a8], 0xffffffff
jne 0x140042536
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140054e30
mov qword [0x1400ec1a0], rax
lea rcx, [0x1400ec1a8]
call fcn.140081dd8
jmp 0x140042536