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

Disassembly:
mov r11, rsp
push rbp
push rbx
push r14
lea rbp, [r11 - 0x468]
sub rsp, 0x550
mov rax, qword [0x14009cb48]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov qword [r11 + 0x10], rsi
lea rax, [0x140087cb0]
mov qword [rcx], rax
lea rdx, [rbp - 0x20]
mov r14, rcx
mov qword [r11 + 0x18], rdi
add rcx, 0x10
mov qword [r11 + 0x20], r15
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, [0x140046cb0]
lea rcx, [r14 + 0x10]
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]
lea rdx, [rbp - 8]
lea rcx, [r14 + 0x10]
call fcn.14004aba0
xor esi, esi
test byte [0x14009bd00], 0x19
je 0x140049a0a
cmp qword [rbp + 0x10], 0x10
lea rax, [rbp - 8]
mov rcx, qword [rbp + 8]
lea rdx, [rsi - 1]
mov r8, qword [r14 + 0xf8]
cmovae rax, qword [rbp - 8]
cmp r8, rcx
jbe 0x140049914
int3
sub rcx, r8
add rax, r8
cmp rcx, rdx
mov qword [rsp + 0x50], rax
cmovb rdx, rcx
mov ecx, 0x38
mov qword [rsp + 0x58], rdx
call fcn.14007fdf0
test rax, rax
je 0x140049963
movaps xmm0, xmmword [rsp + 0x50]
lea r8, [rbp - 0x60]
mov r9d, dword [r14 + 0x108]
mov rcx, rax
mov rdx, qword [r14 + 0x100]
movdqa xmmword [rbp - 0x60], xmm0
call fcn.140056f10
mov rdi, rax
jmp 0x140049966
mov rdi, rsi
call sub.KERNEL32.dll_GetCurrentThreadId
lea rcx, [rbp - 0x78]
mov ebx, eax
call fcn.140056b40
mov dword [rsp + 0x48], 0x8008
lea rax, str.message
mov qword [rbp + 0x20], rax
lea r8, str.LogMessage
lea rax, [rbp + 0x18]
mov word [rbp + 0x18], 0x801
mov qword [rsp + 0x40], rax
lea rdx, [0x14009bd00]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebx
mov cl, 0x49
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x30], rdi
call fcn.14005a8a0
movzx edx, byte [rbp + 0x18]
mov rbx, rsi
test dl, dl
je 0x140049a0a
nop dword [rax + rax]
cmp byte [rbp + rbx + 0x19], 8
jne 0x1400499ff
mov rcx, qword [rbp + rbx*8 + 0x30]
test rcx, rcx
je 0x1400499ff
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movzx edx, byte [rbp + 0x18]
inc rbx
movzx eax, dl
cmp rbx, rax
jb 0x1400499e0
mov rax, qword [0x1400afa38]
test rax, rax
je 0x140049a42
mov r9, qword [r14 + 0xf8]
lea rcx, [rbp - 8]
mov r8d, dword [r14 + 0x108]
mov rdx, qword [r14 + 0x100]
mov qword [rsp + 0x20], rcx
mov ecx, dword [r14 + 8]
call rax
test al, al
jne 0x140049c4a
mov eax, dword [0x14009b7e8]
test al, 2
je 0x140049a66
cmp qword [rbp + 0x10], 0x10
lea rcx, [rbp - 8]
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14009b7e8]
test al, 4
jne 0x140049a78
cmp dword [r14 + 8], 2
jl 0x140049ac4
test eax, 0xfffffffe
jne 0x140049ac4
cmp qword [rbp + 0x10], 0x10
lea rdi, [rbp - 8]
mov rbx, qword [rbp + 8]
mov ecx, 2
cmovae rdi, qword [rbp - 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 1
mov rdx, rbx
mov r9, rax
mov rcx, rdi
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 [0x14009b7e8]
test al, 1
je 0x140049af9
call fcn.14004a420
test al, al
je 0x140049af9
cmp qword [rbp + 0x10], 0x10
lea rdx, [rbp - 8]
mov r8d, dword [rbp + 8]
lea r9, [rbp - 0x80]
cmovae rdx, qword [rbp - 8]
mov rcx, qword [0x1400afa20]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [r14 + 8], 3
jne 0x140049c4a
mov rcx, qword [0x1400afa90]
test rcx, rcx
je 0x140049b3f
cmp qword [rbp + 0x10], 0x10
lea rax, [rbp - 8]
lea rdx, [rbp - 0x50]
cmovae rax, qword [rbp - 8]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x50], xmm0
call fcn.140053ee0
cmp qword [rbp + 0x10], 0x10
lea rdx, [rbp - 8]
mov r8d, 0x400
lea rcx, [rbp + 0x40]
cmovae rdx, qword [rbp - 8]
call fcn.140051ec0
lea rcx, [rbp + 0x40]
call fcn.140042350
mov rcx, qword [0x1400afa60]
cmp qword [0x1400afa58], rcx
je 0x140049c49
test rcx, rcx
cmove rcx, qword [0x1400afa50]
dec rcx
cmp rcx, qword [0x1400afa50]
jbe 0x140049b91
int3
mov rax, qword [0x1400afa48]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x60]
call fcn.140056e30
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140049c3d
mov r9, qword [rbp + 0x10]
lea rdx, [rbp - 8]
mov r8, qword [rbp - 8]
cmp r9, 0x10
cmovae rdx, r8
add rdx, r15
mov qword [rsp + 0x50], rdx
je 0x140049be0
cmp byte [rdx], sil
je 0x140049be0
inc rsi
cmp byte [rsi + rdx], 0
jne 0x140049bd7
mov rdx, qword [r14 + 0xf8]
lea rcx, [rbp - 8]
cmp r9, 0x10
mov qword [rsp + 0x58], rsi
movaps xmm0, xmmword [rsp + 0x50]
lea r9, [rbp - 0x30]
cmovae rcx, r8
movdqa xmmword [rbp - 0x40], xmm0
mov r8d, dword [r14 + 0x108]
add rcx, rdx
mov qword [rsp + 0x70], rcx
sub r15, rdx
mov rdx, qword [r14 + 0x100]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov qword [rsp + 0x78], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x30], xmm0
call qword [rax + 8]
lea rcx, [rsp + 0x60]
call fcn.140056e90
jmp 0x140049c4a
int3
mov rdx, qword [rbp + 0x10]
mov r15, qword [rsp + 0x588]
mov rdi, qword [rsp + 0x580]
mov rsi, qword [rsp + 0x578]
cmp rdx, 0x10
jb 0x140049ca0
mov rcx, qword [rbp - 8]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049c9b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049c9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061b00
lea rcx, [r14 + 0x118]
call fcn.14004f600
mov rax, qword [r14 + 0x10]
lea rbx, [r14 + 0x98]
lea rcx, [rbx - 0x80]
movsxd rdx, dword [rax + 4]
lea rax, [0x140087810]
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.140042f10
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 + 0x440]
xor rcx, rsp
call fcn.1400801e0
add rsp, 0x550
pop r14
pop rbx
pop rbp
ret