Function at 0x14004ac60
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, 0x4a8
mov rsi, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rax, [0x1400c6fa8]
mov qword [rcx], rax
lea rbx, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea rdx, [rsp + 0xa0]
lea r15, [rsp + 0x88]
mov rcx, rdi
mov r8, r15
call fcn.14004cf60
movzx r12d, byte [rsp + 0xb7]
test r12b, r12b
jns 0x14004acd8
mov rcx, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
call fcn.1400866dc
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0xa0]
mov rdx, r14
call fcn.140024ed6
lea rdx, [0x1400f4598]
mov rcx, r14
call fcn.14003989a
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x14010c008]
mov ebp, eax
mov rcx, r14
call fcn.140026e8a
mov rcx, rbx
mov edx, ebp
call fcn.14001964c
mov rcx, rbx
call fcn.140018ccc
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], r13
movaps xmm0, xmmword [0x1400c5aa0]
movaps xmmword [rsp + 0x50], xmm0
lea rbx, [rsp + 0x50]
lea r14, [rsp + 0xa0]
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.14004cf60
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
mov rcx, r15
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.14003f1c4
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], 0x56
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x80], r14
mov rax, qword [0x1400cfc28]
movzx eax, byte [rax + 0x56]
test al, al
jne 0x14004ae01
cmp byte [rsp + 0x9f], 0
js 0x14004ae1b
cmp dword [rsi + 8], 3
je 0x14004ae32
jmp 0x14004af80
movzx edx, al
lea rcx, [rsp + 0x80]
call fcn.14004b8d0
cmp byte [rsp + 0x9f], 0
jns 0x14004adf6
mov rcx, qword [rsp + 0x88]
call fcn.1400866dc
cmp dword [rsi + 8], 3
jne 0x14004af80
cmp byte [0x1400f534c], 0
jne 0x14004af80
mov byte [0x1400f534c], 1
mov eax, dword [0x1400f5358]
mov ecx, dword [0x1400f2648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004b3c7
lea r8, [rsp + 0x88]
mov rcx, rdi
mov rdx, r14
call fcn.14004cf60
cmp byte [rsp + 0xb7], 0
jns 0x14004ae90
mov r14, qword [rsp + 0xa0]
add r14, qword [rsi + 0x118]
mov ebp, dword [rsi + 0x128]
mov r15, qword [rsi + 0x120]
test r15, r15
je 0x14004aec3
mov rcx, r15
mov edx, 0x5c
call fcn.14008946c
lea r8, [rax + 1]
test rax, rax
cmove r8, r15
jmp 0x14004aec6
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, str._s:_d:__s
lea r14, [rsp + 0x88]
mov rcx, r14
mov r9d, ebp
call fcn.1400470b0
cmp byte [rsp + 0xb7], 0
jns 0x14004aefc
mov rcx, qword [rsp + 0xa0]
call fcn.1400866dc
movzx eax, byte [rsp + 0x9f]
test al, al
js 0x14004af1a
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], rax
jmp 0x14004af4e
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rcx
test rcx, rcx
js 0x14004b2cd
je 0x14004af4e
test rax, rax
je 0x14004b2f9
mov rcx, qword [0x1400f5350]
lea rdx, [rsp + 0xa0]
call fcn.1400587a0
cmp byte [rsp + 0x9f], 0
jns 0x14004af79
mov rcx, qword [rsp + 0x88]
call fcn.1400866dc
mov byte [0x1400f534c], 0
mov rax, qword [0x1400f5300]
test rax, rax
je 0x14004afb7
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 [0x14010c008]
test al, al
jne 0x14004b241
mov eax, dword [0x1400e6478]
test al, 2
je 0x14004afdc
cmp byte [rsp + 0x67], 0
jns 0x14004afcd
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400e6478]
test al, 4
jne 0x14004afeb
cmp eax, 1
ja 0x14004b038
cmp dword [rsi + 8], 2
jl 0x14004b038
movzx ebx, byte [rsp + 0x67]
test bl, bl
cmovs rbx, qword [rsp + 0x58]
lea r14, [rsp + 0x50]
cmovs r14, qword [rsp + 0x50]
test rbx, rbx
je 0x14004b038
xor r15d, r15d
nop dword [rax + rax]
mov r8d, ebx
sub r8d, r15d
lea rdx, [r14 + r15]
mov ecx, 2
call fcn.14009d630
test eax, eax
js 0x14004b032
mov eax, eax
add r15, rax
cmp r15, rbx
jb 0x14004b010
mov eax, dword [0x1400e6478]
test al, 1
je 0x14004b088
call fcn.14004a260
test al, al
je 0x14004b088
mov dword [rsp + 0xa0], 0xaaaaaaaa
movzx r8d, byte [rsp + 0x67]
test r8b, r8b
cmovs r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x50]
cmovs rdx, qword [rsp + 0x50]
mov rcx, qword [0x1400f5318]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x14004b241
lea rbx, [rsp + 0xa0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.1400b8e90
cmp byte [rsp + 0x67], 0
jns 0x14004b0b8
mov rdx, qword [rsp + 0x50]
jmp 0x14004b0bd
lea rdx, [rsp + 0x50]
mov r8d, 0x400
mov rcx, rbx
call fcn.140047ee0
mov rcx, rbx
call fcn.1400189e0
mov eax, dword [0x1400f5348]
mov ecx, dword [0x1400f2648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004b351
mov rax, qword [0x1400f5338]
cmp rax, qword [0x1400f5340]
je 0x14004b409
mov qword [rsp + 0x88], r13
mov eax, dword [0x1400f5348]
mov ecx, dword [0x1400f2648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004b38c
mov rdx, qword [0x1400f5340]
test rdx, rdx
mov rax, qword [0x1400f5330]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x14004b40c
shl rdx, 3
add rdx, qword [0x1400f5328]
lea rcx, [rsp + 0x88]
call fcn.14004d1d0
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x14004b234
cmp byte [rsp + 0x67], 0
jns 0x14004b191
mov r14, qword [rsp + 0x50]
jmp 0x14004b196
lea r14, [rsp + 0x50]
mov rcx, r14
add rcx, r12
mov qword [rsp + 0x40], rcx
je 0x14004b325
call fcn.1400a16c0
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0x118]
add r14, rax
mov qword [rsp + 0x30], r14
sub r12, rax
mov qword [rsp + 0x38], r12
js 0x14004b2cd
je 0x14004b1d9
test r14, r14
je 0x14004b2f9
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov eax, 1
lock xadd dword [rbx], eax
test eax, eax
jle 0x14004b40f
cmp eax, 0x7fffffff
je 0x14004b412
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov rcx, rbx
call qword [0x14010c008]
lock dec dword [rbx]
jne 0x14004b234
mov rcx, rbx
call fcn.14004d140
lea rcx, [rsp + 0x88]
call fcn.14004d200
cmp byte [rsp + 0x67], 0
jns 0x14004b252
mov rcx, qword [rsp + 0x50]
call fcn.1400866dc
lea rcx, [rsi + 0x12c]
call fcn.14005afa0
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400c6ac0]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1400c6db0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x14004b28c
mov rcx, qword [rsi + 0x58]
call fcn.1400866dc
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.14001898a
mov rcx, rdi
call fcn.1400189e0
mov rcx, rsi
call fcn.140018984
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140087ae0
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
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.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.14001c2cc
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
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.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.14001c2cc
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.14001c2cc
lea rcx, [0x1400f5348]
call fcn.14008672c
cmp dword [0x1400f5348], 0xffffffff
jne 0x14004b0f8
xorps xmm0, xmm0
movups xmmword [0x1400f5338], xmm0
movups xmmword [0x1400f5328], xmm0
lea rcx, [0x1400f5348]
call fcn.1400867e0
jmp 0x14004b0f8
lea rcx, [0x1400f5348]
call fcn.14008672c
cmp dword [0x1400f5348], 0xffffffff
jne 0x14004b139
xorps xmm0, xmm0
movups xmmword [0x1400f5338], xmm0
movups xmmword [0x1400f5328], xmm0
lea rcx, [0x1400f5348]
call fcn.1400867e0
jmp 0x14004b139
lea rcx, [0x1400f5358]
call fcn.14008672c
cmp dword [0x1400f5358], 0xffffffff
jne 0x14004ae6b
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140058770
mov qword [0x1400f5350], rax
lea rcx, [0x1400f5358]
call fcn.1400867e0
jmp 0x14004ae6b
int3
int3
int3
int3