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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
lea rbp, [r11 - 0x428]
sub rsp, 0x510
mov rax, qword [0x1400893e8]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, rcx
mov qword [r11 + 0x10], rdi
add rcx, 8
mov qword [r11 + 0x20], r15
lea rdx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_ostream_char__struct_std::char_traits_char__::tellp_void____ptr64]
lea rdx, [0x140041390]
lea rcx, [rsi + 8]
mov r15, qword [rax + 8]
add r15, qword [rax]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, dword [rsi + 0x80]
xor edi, edi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], dil
test cl, 2
jne 0x140041649
mov rax, qword [rsi + 0x50]
mov r8, qword [rax]
test r8, r8
je 0x140041649
cmp r8, qword [rsi + 0x78]
mov rax, qword [rsi + 0x30]
mov qword [rsp + 0x50], r8
cmovb r8, qword [rsi + 0x78]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x14004166e
test cl, 4
jne 0x140041677
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
test rcx, rcx
je 0x140041677
mov rax, qword [rsi + 0x28]
mov rdx, qword [rax]
mov rax, qword [rsi + 0x60]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rbp - 0x58]
call fcn.14003e7d0
test byte [0x1400884f0], 0x19
je 0x1400417ba
cmp qword [rbp - 0x40], 0x10
lea rax, [rbp - 0x58]
mov r8, qword [rsi + 0xf0]
lea rdx, [rsp + 0x60]
cmovae rax, qword [rbp - 0x58]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x60], rax
mov r9, 0xffffffffffffffff
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x540], r14
call fcn.140048290
mov ecx, 0x38
call fcn.140070710
test rax, rax
je 0x1400416fd
movaps xmm0, xmmword [rbp - 0x80]
lea r8, [rsp + 0x70]
mov r9d, dword [rsi + 0x100]
mov rcx, rax
mov rdx, qword [rsi + 0xf8]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.14004d500
mov r14, rax
jmp 0x140041700
mov r14, rdi
mov qword [rsp + 0x50], rdi
call sub.KERNEL32.dll_GetCurrentThreadId
lea rcx, [rsp + 0x50]
mov ebx, eax
call fcn.14004cfb0
mov dword [rsp + 0x48], 0x8008
lea rax, str.message
mov qword [rbp - 0x30], rax
lea r8, str.LogMessage
lea rax, [rbp - 0x38]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x40], rax
lea rdx, [0x1400884f0]
lea rax, [rsp + 0x50]
mov word [rbp - 0x38], 0x801
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebx
mov cl, 0x49
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x20], r14
call fcn.140051460
movzx edx, byte [rbp - 0x38]
mov rbx, rdi
mov r14, qword [rsp + 0x540]
test dl, dl
je 0x1400417ba
nop dword [rax]
cmp byte [rbp + rbx - 0x37], 8
jne 0x1400417af
mov rcx, qword [rbp + rbx*8 - 0x20]
test rcx, rcx
je 0x1400417af
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movzx edx, byte [rbp - 0x38]
inc rbx
movzx eax, dl
cmp rbx, rax
jb 0x140041790
mov rax, qword [0x1400899a8]
test rax, rax
je 0x1400417f0
mov r9, qword [rsi + 0xf0]
lea rcx, [rbp - 0x58]
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsi]
call rax
test al, al
jne 0x1400419fb
mov eax, dword [0x140088054]
test al, 2
je 0x140041814
cmp qword [rbp - 0x40], 0x10
lea rcx, [rbp - 0x58]
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140088054]
test al, 4
jne 0x140041824
cmp dword [rsi], 2
jl 0x14004186d
test eax, 0xfffffffe
jne 0x14004186d
cmp qword [rbp - 0x40], 0x10
lea rbx, [rbp - 0x58]
mov ecx, 2
cmovae rbx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rbp - 0x48]
mov r8d, 1
mov r9, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [0x140088054]
test al, 1
je 0x1400418a3
call fcn.1400422b0
test al, al
je 0x1400418a3
cmp qword [rbp - 0x40], 0x10
lea rdx, [rbp - 0x58]
mov r8d, dword [rbp - 0x48]
lea r9, [rsp + 0x50]
cmovae rdx, qword [rbp - 0x58]
mov rcx, qword [0x140089970]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x1400419fb
mov rcx, qword [0x1400899d8]
test rcx, rcx
je 0x1400418e9
cmp qword [rbp - 0x40], 0x10
lea rax, [rbp - 0x58]
lea rdx, [rsp + 0x60]
cmovae rax, qword [rbp - 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
call fcn.14004b200
cmp qword [rbp - 0x40], 0x10
lea rdx, [rbp - 0x58]
mov r8d, 0x400
mov dword [rbp - 0x10], 0xbedead01
cmovae rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0xc]
mov dword [rbp + 0x3f4], 0x5050dead
call fcn.1400493b0
lea rcx, [rbp - 0x10]
call fcn.1400198b0
mov rcx, qword [0x1400899a0]
cmp qword [0x140089998], rcx
je 0x1400419fa
test rcx, rcx
cmove rcx, qword [0x140089990]
dec rcx
cmp rcx, qword [0x140089990]
jbe 0x14004194c
int3
mov rax, qword [0x140089988]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x50]
call fcn.14004d470
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400419ee
mov r9, qword [rbp - 0x40]
lea rdx, [rbp - 0x58]
mov r8, qword [rbp - 0x58]
cmp r9, 0x10
cmovae rdx, r8
add rdx, r15
mov qword [rsp + 0x70], rdx
je 0x14004199b
cmp byte [rdx], dil
je 0x14004199b
inc rdi
cmp byte [rdi + rdx], 0
jne 0x140041992
mov rdx, qword [rsi + 0xf0]
lea rcx, [rbp - 0x58]
cmp r9, 0x10
mov qword [rsp + 0x78], rdi
movaps xmm0, xmmword [rsp + 0x70]
lea r9, [rbp - 0x80]
cmovae rcx, r8
movdqa xmmword [rsp + 0x60], xmm0
mov r8d, dword [rsi + 0x100]
add rcx, rdx
mov qword [rbp - 0x80], rcx
sub r15, rdx
mov rdx, qword [rsi + 0xf8]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov qword [rbp - 0x78], r15
call qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.14004d4d0
jmp 0x1400419fb
int3
mov rdx, qword [rbp - 0x40]
mov r15, qword [rsp + 0x548]
mov rdi, qword [rsp + 0x538]
cmp rdx, 0x10
jb 0x140041a49
mov rcx, qword [rbp - 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041a44
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041a44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064280
lea rcx, [rsi + 0x110]
call fcn.140046b30
mov rax, qword [rsi + 8]
lea rbx, [rsi + 0x90]
lea rcx, [rbx - 0x80]
movsxd rdx, dword [rax + 4]
lea rax, [0x140075188]
mov qword [rdx + rbx - 0x88], rax
mov rax, qword [rbx - 0x88]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0x88]
mov dword [rdx + rbx - 0x8c], r8d
call fcn.1400414f0
lea rcx, [rbx - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400707e0
add rsp, 0x510
pop rsi
pop rbx
pop rbp
ret