Function at 0x140048780
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, 0x4b8
mov rsi, rcx
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
movabs r13, 0x7ffffffffffffff7
lea rax, [0x1401896e8]
mov qword [rcx], rax
mov eax, dword [rcx + 0x78]
test al, 0x10
je 0x140048c0a
mov rax, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x70]
cmp rdi, rax
jae 0x1400487db
mov qword [rsi + 0x70], rax
mov rdi, rax
mov rbx, qword [rsi + 0x40]
sub rdi, rbx
js 0x140048bde
cmp rdi, r13
ja 0x140048ba4
cmp rdi, 0x16
ja 0x140048b09
lea rcx, [rsp + 0xb0]
mov byte [rcx + 0x17], dil
lea r14, [rcx + rdi]
cmp rcx, rbx
ja 0x140048819
cmp r14, rbx
ja 0x140048c44
test rdi, rdi
je 0x140048829
mov rdx, rbx
mov r8, rdi
call fcn.1400dfb30
lea r15, [rsi + 0x10]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
mov byte [r14], 0
movzx ebx, byte [rsp + 0xc7]
test bl, bl
jns 0x14004884e
mov rbx, qword [rsp + 0xb8]
jns 0x14004885d
mov rcx, qword [rsp + 0xb0]
call fcn.1400dcbb4
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, r15
lea r14, [rsp + 0xb0]
mov rdx, r14
call fcn.1400a6e80
lea rdx, [0x1401cd7f8]
mov rcx, r14
call fcn.1400a7a40
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1401ea008]
mov ebp, eax
mov rcx, r14
call fcn.1400a6f90
mov rcx, r15
mov edx, ebp
call fcn.140025bc0
mov rcx, r15
call fcn.140024f70
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rdi
movaps xmm0, xmmword [0x1401879f0]
movaps xmmword [rsp + 0x70], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x140048c26
mov rax, qword [rsi + 0x48]
mov r15, qword [rsi + 0x70]
cmp r15, rax
jae 0x1400488f5
mov qword [rsi + 0x70], rax
mov r15, rax
mov r12, qword [rsi + 0x40]
sub r15, r12
js 0x140048bde
cmp r15, r13
ja 0x140048bb1
cmp r15, 0x16
ja 0x140048ac0
lea rcx, [rsp + 0x70]
mov byte [rcx + 0x17], r15b
lea r13, [rcx + r15]
cmp rcx, r12
ja 0x140048930
cmp r13, r12
ja 0x140048c44
test r15, r15
je 0x140048940
mov rdx, r12
mov r8, r15
call fcn.1400dfb30
mov byte [r13], 0
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
lea r12, [rsp + 0x58]
lea r15, [rsp + 0x70]
mov rcx, r12
mov rdx, r15
mov r9, 0xffffffffffffffff
call fcn.14003aa80
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0xa4], eax
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x90], 0x56
mov rax, qword [0x140197cc8]
mov al, byte [rax + 0x56]
test al, al
jne 0x140048de2
cmp byte [rsp + 0x6f], 0
jns 0x1400489b8
mov rcx, qword [rsp + 0x58]
call fcn.1400dcbb4
cmp dword [rsi + 8], 3
je 0x140048e2c
mov rax, qword [0x1401ce6b0]
test rax, rax
je 0x1400489f5
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], r15
call qword [0x1401ea008]
test al, al
jne 0x140048a2c
mov eax, dword [0x1401bb570]
test al, 2
jne 0x140048bbb
test al, 4
jne 0x140048b55
cmp eax, 1
ja 0x140048a1a
cmp dword [rsi + 8], 2
jge 0x140048b55
test al, 1
jne 0x140048d90
cmp dword [rsi + 8], 3
je 0x140048c70
cmp byte [rsp + 0x87], 0
jns 0x140048a40
mov rcx, qword [rsp + 0x70]
call fcn.1400dcbb4
lea rcx, [rsi + 0x12c]
call fcn.1400c00b0
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140189068]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x140189070]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140048a7a
mov rcx, qword [rsi + 0x58]
call fcn.1400dcbb4
sub rsi, 0xffffffffffffff80
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14009a980
mov rcx, rdi
call fcn.14009a9e0
mov rcx, rsi
call fcn.14009a970
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1400de0a0
nop
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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.1400dcb78
mov rcx, rax
mov qword [rsp + 0x70], rax
add rbp, 9
or rbp, r13
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], r15
jmp 0x14004891e
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.1400dcb78
mov rcx, rax
mov qword [rsp + 0xb0], rax
lea rax, [r13 + 9]
or rax, r14
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb8], rdi
jmp 0x140048807
lea r14, [rsp + 0x70]
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 0x140048a1a
xor r12d, r12d
mov r8d, r15d
sub r8d, r12d
lea rdx, [r14 + r12]
mov ecx, 2
call fcn.1400f6cc8
test eax, eax
jns 0x140048ed6
mov eax, dword [0x1401bb570]
jmp 0x140048a1a
lea rcx, [rsp + 0xb0]
call fcn.1401149d0
lea rcx, [rsp + 0x70]
call fcn.1401149d0
cmp byte [rsp + 0x87], 0
jns 0x140048bca
mov r15, qword [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1401bb570]
jmp 0x140048a03
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.140115ca0
xor ebx, ebx
mov edi, 0
test al, 8
je 0x1400487fb
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x38]
jmp 0x1400487df
xor r15d, r15d
mov r12d, 0
test al, 8
je 0x140048915
mov r12, qword [rsi + 0x28]
mov r15, qword [rsi + 0x38]
jmp 0x1400488f9
lea rax, str.char_traits::copy:_source_and_destination_ranges_overlap
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._std::__is_pointer_in_range___s1____s1____n____s2_
mov r8d, 0xf1
call fcn.140115ca0
lea r14, [rsp + 0xb0]
mov r8d, 0x400
mov rcx, r14
mov dl, 0xaa
call fcn.1400e01e0
cmp byte [rsp + 0x87], 0
js 0x140048c99
lea rdx, [rsp + 0x70]
jmp 0x140048c9e
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r14
call fcn.1400afb70
mov rcx, r14
call fcn.14009a9e0
call fcn.140131370
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x140048f15
mov qword [rsp + 0x58], rdi
call fcn.140131370
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x140048f18
shl rdx, 3
add rdx, qword [rax]
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.1400b5fc0
cmp qword [r14], 0
jne 0x140048d15
lea rcx, [rsp + 0x58]
call fcn.1400b5ff0
jmp 0x140048a2c
cmp byte [rsp + 0x87], 0
js 0x140048d26
lea r14, [rsp + 0x70]
jmp 0x140048d2b
mov r14, qword [rsp + 0x70]
mov rcx, r14
add rcx, rbx
mov qword [rsp + 0x48], rcx
je 0x140048ee9
call fcn.1400fb9e0
lea r12, [rsp + 0x48]
mov qword [r12 + 8], rax
mov rax, qword [rsi + 0x118]
sub rbx, rax
add r14, rax
lea r15, [rsp + 0x38]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14009b8b0
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x58]
mov r9, r15
call fcn.1401313e0
jmp 0x140048d06
call fcn.140131100
test al, al
je 0x140048a22
lea r9, [rsp + 0xb0]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x70]
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 [0x1401ce6c8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140048a22
movzx ecx, al
lea rax, [rsp + 0x98]
lea r9, [rsp + 0xb0]
mov qword [r9], rax
lea rax, [rsp + 0xa4]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r12
lea rax, str.LogMessage
lea r8, [rsp + 0xa8]
mov qword [r8], rax
lea rdx, [rsp + 0x90]
call fcn.140131820
jmp 0x1400489a7
cmp byte [0x1401ce6fc], 0
jne 0x1400489c2
mov byte [0x1401ce6fc], 1
mov eax, dword [0x1401ce708]
mov ecx, dword [0x1401c8138]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140048f1b
mov rcx, rsi
mov rdx, r14
call fcn.140131440
movzx r8d, byte [rsp + 0xc7]
test r8b, r8b
js 0x140048e84
and r8d, 0x7f
jmp 0x140048e94
mov r8, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xb0]
lea r12, [rsp + 0x58]
mov rcx, r12
mov rdx, r14
call fcn.14009b8b0
mov rcx, qword [0x1401ce700]
mov rdx, r12
call fcn.140059050
cmp byte [rsp + 0xc7], 0
jns 0x140048eca
mov rcx, qword [rsp + 0xb0]
call fcn.1400dcbb4
mov byte [0x1401ce6fc], 0
jmp 0x1400489c2
mov eax, eax
add r12, rax
cmp r12, r15
jb 0x140048b7d
jmp 0x140048b99
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.140115ca0
int3
int3
lea rcx, [0x1401ce708]
call fcn.1400dccd0
cmp dword [0x1401ce708], 0xffffffff
jne 0x140048e65
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140059020
mov qword [0x1401ce700], rax
lea rcx, [0x1401ce708]
call fcn.1400dcd68
jmp 0x140048e65