Function at 0x1400b08c0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x58]
mov qword [rcx], r15
call fcn.140043580
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x1400b0d4a
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x70]
cmp rax, rcx
jae 0x1400b091a
mov qword [rsi + 0x70], rcx
mov rax, rcx
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x40], rcx
sub rax, rcx
mov qword [rsp + 0x48], rax
js 0x1400b0dad
lea rbx, [rsi + 0x10]
lea rdi, [rsp + 0x80]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.14003ad70
movsx rdi, byte [rdi + 0x17]
test rdi, rdi
jns 0x1400b0961
mov rdi, qword [rsp + 0x88]
jns 0x1400b0970
mov rcx, qword [rsp + 0x80]
call fcn.140077d00
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0x80]
mov rdx, r14
call fcn.14002c236
lea rdx, [0x140148518]
mov rcx, r14
call fcn.14002eeba
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x14012a4d0]
mov ebp, eax
mov rcx, r14
call fcn.14002c378
mov rcx, rbx
mov edx, ebp
call fcn.140021f3c
mov rcx, rbx
call fcn.140021902
mov qword [rsp + 0x50], r15
movaps xmm0, xmmword [0x14010db00]
movaps xmmword [rsp + 0x40], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x1400b0d78
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x70]
cmp rax, rcx
jae 0x1400b09fb
mov qword [rsi + 0x70], rcx
mov rax, rcx
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x80], rcx
sub rax, rcx
mov qword [rsp + 0x88], rax
js 0x1400b0dad
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x80]
lea r8, [rsp + 0x28]
mov rcx, rbx
mov rdx, r14
call fcn.14003ad70
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.14002f818
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], 0x70
mov rax, qword [0x14011f240]
mov al, byte [rax + 0x70]
test al, al
jne 0x1400b0ca4
cmp byte [rsp + 0x3f], 0
jns 0x1400b0a9a
mov rcx, qword [rsp + 0x28]
call fcn.140077d00
cmp dword [rsi + 8], 3
jne 0x1400b0aad
cmp byte [0x140149214], 0
je 0x1400b0c01
mov rax, qword [0x1401491d0]
test rax, rax
je 0x1400b0ae4
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 [0x14012a4d0]
test al, al
jne 0x1400b0b64
mov eax, dword [0x140139160]
test al, 2
je 0x1400b0b09
cmp byte [rsp + 0x57], 0
jns 0x1400b0afa
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140139160]
test al, 4
jne 0x1400b0b1a
test eax, 0xfffffffa
jne 0x1400b0b60
cmp dword [rsi + 8], 2
jl 0x1400b0b60
lea rbx, [rsp + 0x40]
movsx r14, byte [rbx + 0x17]
test r14, r14
cmovs r14, qword [rbx + 8]
cmovs rbx, qword [rbx]
test r14, r14
je 0x1400b0b60
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.140093844
test eax, eax
js 0x1400b0b5a
mov eax, eax
add r15, rax
cmp r15, r14
jb 0x1400b0b38
mov eax, dword [0x140139160]
test al, 1
jne 0x1400b0bb8
cmp dword [rsi + 8], 3
je 0x1400b0ba6
cmp byte [rsp + 0x57], 0
jns 0x1400b0b7b
mov rcx, qword [rsp + 0x40]
call fcn.140077d00
lea rcx, [rsp + 0x58]
call fcn.1400435c0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140079050
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.1400b0dd0
jmp 0x1400b0b6a
call fcn.1400b05f0
test al, al
je 0x1400b0b64
lea r9, [rsp + 0x80]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x40]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1401491b8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400b0b64
mov byte [0x140149214], 1
mov eax, dword [0x140149220]
mov ecx, dword [0x1401460a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b0d08
mov rcx, rsi
mov rdx, r14
call fcn.1400e48c0
movsx rax, byte [rsp + 0x97]
test rax, rax
jns 0x1400b0c56
mov rax, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], rax
test rax, rax
js 0x1400b0ce2
je 0x1400b0c70
test r14, r14
je 0x1400b0cf5
mov rcx, qword [0x140149218]
lea rdx, [rsp + 0x28]
call fcn.1400679a0
cmp byte [rsp + 0x97], 0
jns 0x1400b0c98
mov rcx, qword [rsp + 0x80]
call fcn.140077d00
mov byte [0x140149214], 0
jmp 0x1400b0aad
movzx ecx, al
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x80]
mov qword [r9], rax
lea rax, [rsp + 0x74]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r15
lea rax, str.LogMessage
lea r8, [rsp + 0x78]
mov qword [r8], rax
lea rdx, [rsp + 0x60]
call fcn.14005cdc0
jmp 0x1400b0a89
lea rcx, [0x140110299]
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.1400bde54
lea rcx, [0x140110299]
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.1400bde54
lea rcx, [0x140149220]
call fcn.140077d4c
cmp dword [0x140149220], 0xffffffff
jne 0x1400b0c2d
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140067980
mov qword [0x140149218], rax
lea rcx, [0x140149220]
call fcn.140077e00
jmp 0x1400b0c2d
test al, 8
jne 0x1400b0d5b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
jmp 0x1400b0931
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x40], rax
sub rcx, rax
mov qword [rsp + 0x48], rcx
jns 0x1400b0931
jmp 0x1400b0dad
test al, 8
jne 0x1400b0d8c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
jmp 0x1400b0a18
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x80], rax
sub rcx, rax
mov qword [rsp + 0x88], rcx
jns 0x1400b0a18
lea rcx, [0x140110299]
lea rdx, str....._third_partylibc_srcinclude_string_view:323:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
call fcn.1400bde54
int3