Function at 0x140042340
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 [0x1400da040]
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.140045600
movzx edi, byte [rsp + 0x67]
test dil, dil
jns 0x14004239f
mov rcx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
call fcn.14007fd68
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r15, [rsp + 0x50]
mov rdx, r15
call fcn.140021ee6
lea rdx, [0x1400ea568]
mov rcx, r15
call fcn.140036938
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1400cf708]
mov ebp, eax
mov rcx, r15
call fcn.140023e9a
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 [0x1400bca40]
movaps xmmword [rsp + 0x30], xmm0
lea rbx, [rsp + 0x30]
lea r15, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140045600
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r15
mov rcx, r12
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.14003c110
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 [0x1400c7e80]
movzx eax, byte [rax + 0x56]
test al, al
jne 0x1400424bc
cmp byte [rsp + 0xa7], 0
js 0x1400424d6
cmp dword [rsi + 8], 3
je 0x1400424ed
jmp 0x140042620
movzx edx, al
lea rcx, [rsp + 0x88]
call fcn.140043210
cmp byte [rsp + 0xa7], 0
jns 0x1400424b1
mov rcx, qword [rsp + 0x90]
call fcn.14007fd68
cmp dword [rsi + 8], 3
jne 0x140042620
cmp byte [0x1400eb19c], 0
jne 0x140042620
mov byte [0x1400eb19c], 1
mov eax, dword [0x1400eb1a8]
mov ecx, dword [0x1400e8618]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042792
lea r8, [rsp + 0x90]
mov rcx, r14
mov rdx, r15
call fcn.140045600
cmp byte [rsp + 0x67], 0
jns 0x140042545
mov r15, qword [rsp + 0x50]
add r15, qword [rsi + 0x118]
mov ebp, dword [rsi + 0x128]
mov r14, qword [rsi + 0x120]
test r14, r14
je 0x140042578
mov rcx, r14
mov edx, 0x5c
call fcn.140082a3c
lea r8, [rax + 1]
test rax, rax
cmove r8, r14
jmp 0x14004257b
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.140052be0
cmp byte [rsp + 0x67], 0
jns 0x1400425ab
mov rcx, qword [rsp + 0x50]
call fcn.14007fd68
movzx eax, byte [rsp + 0xa7]
test al, al
js 0x1400425c3
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rax
jmp 0x1400425f1
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
test rcx, rcx
js 0x14004276c
je 0x1400425f1
test rax, rax
je 0x14004277f
mov rcx, qword [0x1400eb1a0]
lea rdx, [rsp + 0x50]
call fcn.1400535a0
cmp byte [rsp + 0xa7], 0
jns 0x140042619
mov rcx, qword [rsp + 0x90]
call fcn.14007fd68
mov byte [0x1400eb19c], 0
mov rax, qword [0x1400eb150]
test rax, rax
je 0x140042657
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 [0x1400cf708]
test al, al
jne 0x140042722
mov eax, dword [0x1400dc020]
test al, 2
je 0x14004267c
cmp byte [rsp + 0x47], 0
jns 0x14004266d
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400dc020]
test al, 4
jne 0x14004268d
test eax, 0xfffffffa
jne 0x1400426d8
cmp dword [rsi + 8], 2
jl 0x1400426d8
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 0x1400426d8
xor r15d, r15d
nop dword [rax]
mov r8d, ebx
sub r8d, r15d
lea rdx, [r14 + r15]
mov ecx, 2
call fcn.14009563c
test eax, eax
js 0x1400426d2
mov eax, eax
add r15, rax
cmp r15, rbx
jb 0x1400426b0
mov eax, dword [0x1400dc020]
test al, 1
je 0x140042722
call fcn.140041a30
test al, al
je 0x140042722
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 [0x1400eb168]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x140042738
lea r8, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.1400428a0
cmp byte [rsp + 0x47], 0
jns 0x140042749
mov rcx, qword [rsp + 0x30]
call fcn.14007fd68
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140081090
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400be8df]
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.14001b450
lea rcx, [0x1400be8df]
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.14001b450
lea rcx, [0x1400eb1a8]
call fcn.14007fdac
cmp dword [0x1400eb1a8], 0xffffffff
jne 0x140042526
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140053570
mov qword [0x1400eb1a0], rax
lea rcx, [0x1400eb1a8]
call fcn.14007fe60
jmp 0x140042526