Function at 0x1400545d0
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 [0x140165040]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rax, [0x14013c3a0]
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.140057620
movzx r12d, byte [rsp + 0xb7]
test r12b, r12b
jns 0x140054648
mov rcx, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
call fcn.1400fa65c
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0xa0]
mov rdx, r14
call fcn.14002ca46
lea rdx, [0x140175830]
mov rcx, r14
call fcn.14004140a
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x140191008]
mov ebp, eax
mov rcx, r14
call fcn.14002e9fa
mov rcx, rbx
mov edx, ebp
call fcn.140019a80
mov rcx, rbx
call fcn.140018ccc
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], r13
movaps xmm0, xmmword [0x14013ab10]
movaps xmmword [rsp + 0x50], xmm0
lea rbx, [rsp + 0x50]
lea r14, [rsp + 0xa0]
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.140057620
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
mov rcx, r15
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.140046e7c
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 [0x1401496f8]
movzx eax, byte [rax + 0x56]
test al, al
jne 0x140054771
cmp byte [rsp + 0x9f], 0
js 0x14005478b
cmp dword [rsi + 8], 3
je 0x1400547a2
jmp 0x1400548f0
movzx edx, al
lea rcx, [rsp + 0x80]
call fcn.140055240
cmp byte [rsp + 0x9f], 0
jns 0x140054766
mov rcx, qword [rsp + 0x88]
call fcn.1400fa65c
cmp dword [rsi + 8], 3
jne 0x1400548f0
cmp byte [0x140176464], 0
jne 0x1400548f0
mov byte [0x140176464], 1
mov eax, dword [0x140176470]
mov ecx, dword [0x140173698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140054d37
lea r8, [rsp + 0x88]
mov rcx, rdi
mov rdx, r14
call fcn.140057620
cmp byte [rsp + 0xb7], 0
jns 0x140054800
mov r14, qword [rsp + 0xa0]
add r14, qword [rsi + 0x118]
mov ebp, dword [rsi + 0x128]
mov r15, qword [rsi + 0x120]
test r15, r15
je 0x140054833
mov rcx, r15
mov edx, 0x5c
call fcn.1400fd2ec
lea r8, [rax + 1]
test rax, rax
cmove r8, r15
jmp 0x140054836
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.14006f9e0
cmp byte [rsp + 0xb7], 0
jns 0x14005486c
mov rcx, qword [rsp + 0xa0]
call fcn.1400fa65c
movzx eax, byte [rsp + 0x9f]
test al, al
js 0x14005488a
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], rax
jmp 0x1400548be
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rcx
test rcx, rcx
js 0x140054c3d
je 0x1400548be
test rax, rax
je 0x140054c69
mov rcx, qword [0x140176468]
lea rdx, [rsp + 0xa0]
call fcn.1400700b0
cmp byte [rsp + 0x9f], 0
jns 0x1400548e9
mov rcx, qword [rsp + 0x88]
call fcn.1400fa65c
mov byte [0x140176464], 0
mov rax, qword [0x140176418]
test rax, rax
je 0x140054927
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 [0x140191008]
test al, al
jne 0x140054bb1
mov eax, dword [0x140167020]
test al, 2
je 0x14005494c
cmp byte [rsp + 0x67], 0
jns 0x14005493d
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140167020]
test al, 4
jne 0x14005495b
cmp eax, 1
ja 0x1400549a8
cmp dword [rsi + 8], 2
jl 0x1400549a8
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 0x1400549a8
xor r15d, r15d
nop dword [rax + rax]
mov r8d, ebx
sub r8d, r15d
lea rdx, [r14 + r15]
mov ecx, 2
call fcn.140112e48
test eax, eax
js 0x1400549a2
mov eax, eax
add r15, rax
cmp r15, rbx
jb 0x140054980
mov eax, dword [0x140167020]
test al, 1
je 0x1400549f8
call fcn.140053bd0
test al, al
je 0x1400549f8
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 [0x140176430]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x140054bb1
lea rbx, [rsp + 0xa0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.14012e050
cmp byte [rsp + 0x67], 0
jns 0x140054a28
mov rdx, qword [rsp + 0x50]
jmp 0x140054a2d
lea rdx, [rsp + 0x50]
mov r8d, 0x400
mov rcx, rbx
call fcn.140053540
mov rcx, rbx
call fcn.1400189e0
mov eax, dword [0x140176460]
mov ecx, dword [0x140173698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140054cc1
mov rax, qword [0x140176450]
cmp rax, qword [0x140176458]
je 0x140054d79
mov qword [rsp + 0x88], r13
mov eax, dword [0x140176460]
mov ecx, dword [0x140173698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140054cfc
mov rdx, qword [0x140176458]
test rdx, rdx
mov rax, qword [0x140176448]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140054d7c
shl rdx, 3
add rdx, qword [0x140176440]
lea rcx, [rsp + 0x88]
call fcn.140057840
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140054ba4
cmp byte [rsp + 0x67], 0
jns 0x140054b01
mov r14, qword [rsp + 0x50]
jmp 0x140054b06
lea r14, [rsp + 0x50]
mov rcx, r14
add rcx, r12
mov qword [rsp + 0x40], rcx
je 0x140054c95
call fcn.1401167c0
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 0x140054c3d
je 0x140054b49
test r14, r14
je 0x140054c69
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov eax, 1
lock xadd dword [rbx], eax
test eax, eax
jle 0x140054d7f
cmp eax, 0x7fffffff
je 0x140054d82
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 [0x140191008]
lock dec dword [rbx]
jne 0x140054ba4
mov rcx, rbx
call fcn.1400577b0
lea rcx, [rsp + 0x88]
call fcn.140057870
cmp byte [rsp + 0x67], 0
jns 0x140054bc2
mov rcx, qword [rsp + 0x50]
call fcn.1400fa65c
lea rcx, [rsi + 0x12c]
call fcn.14006f690
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x14013bfa0]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x14013bfb0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140054bfc
mov rcx, qword [rsi + 0x58]
call fcn.1400fa65c
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.1400fb950
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.140021ffc
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.140021ffc
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.140021ffc
lea rcx, [0x140176460]
call fcn.1400fa6ac
cmp dword [0x140176460], 0xffffffff
jne 0x140054a68
xorps xmm0, xmm0
movups xmmword [0x140176450], xmm0
movups xmmword [0x140176440], xmm0
lea rcx, [0x140176460]
call fcn.1400fa760
jmp 0x140054a68
lea rcx, [0x140176460]
call fcn.1400fa6ac
cmp dword [0x140176460], 0xffffffff
jne 0x140054aa9
xorps xmm0, xmm0
movups xmmword [0x140176450], xmm0
movups xmmword [0x140176440], xmm0
lea rcx, [0x140176460]
call fcn.1400fa760
jmp 0x140054aa9
lea rcx, [0x140176470]
call fcn.1400fa6ac
cmp dword [0x140176470], 0xffffffff
jne 0x1400547db
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140070080
mov qword [0x140176468], rax
lea rcx, [0x140176470]
call fcn.1400fa760
jmp 0x1400547db
int3
int3
int3
int3