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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
lea rbp, [r11 - 0x418]
sub rsp, 0x500
mov rax, qword [0x14008c3d8]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
lea rax, [0x140075fb0]
mov qword [r11 + 0x10], rdi
mov qword [rcx], rax
lea rdx, [rsp + 0x70]
mov rsi, rcx
mov qword [r11 + 0x18], r12
add rcx, 0x10
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, [0x1400251a0]
lea rcx, [rsi + 0x10]
mov r12, qword [rax + 8]
add r12, 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 + 0x88]
xor edi, edi
mov eax, ecx
mov qword [rbp - 0x70], rdi
and al, 0x22
mov qword [rbp - 0x58], 0xf
mov ebx, edi
mov qword [rbp - 0x60], rbx
cmp al, 2
je 0x140028109
mov rax, qword [rsi + 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140028109
mov rax, qword [rsi + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsi + 0x80]
cmp r8, rax
cmovb r8, rax
sub r8, rdx
jmp 0x14002812e
test cl, 4
jne 0x140028140
mov rax, qword [rsi + 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140028140
mov rax, qword [rsi + 0x30]
mov rdx, qword [rax]
mov rax, qword [rsi + 0x68]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
test rdx, rdx
je 0x140028140
lea rcx, [rbp - 0x70]
call fcn.140026450
mov rbx, qword [rbp - 0x60]
test byte [0x14008b570], 0x19
je 0x14002827a
cmp qword [rbp - 0x58], 0x10
lea rax, [rbp - 0x70]
mov rcx, qword [rsi + 0xf8]
cmovae rax, qword [rbp - 0x70]
mov qword [rsp + 0x4f8], r14
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x4f0], r15
cmp rcx, rbx
jbe 0x14002817f
int3
sub rbx, rcx
lea r15, [rax + rcx]
mov ecx, 0x38
call fcn.1400716c0
test rax, rax
je 0x1400281c6
mov r9d, dword [rsi + 0x108]
lea r8, [rsp + 0x50]
mov rdx, qword [rsi + 0x100]
cmp rbx, r14
mov rcx, rax
mov qword [rsp + 0x50], r15
cmovb r14, rbx
mov qword [rsp + 0x58], r14
call fcn.140033030
mov r14, rax
jmp 0x1400281c9
mov r14, rdi
call sub.KERNEL32.dll_GetCurrentThreadId
lea rcx, [rsp + 0x60]
mov ebx, eax
call fcn.140030e50
mov dword [rsp + 0x48], 0x8008
lea rax, str.message
mov qword [rbp - 0x48], rax
lea r8, str.LogMessage
lea rax, [rbp - 0x50]
mov word [rbp - 0x50], 0x801
mov qword [rsp + 0x40], rax
lea rdx, [0x14008b570]
lea rax, [rsp + 0x60]
mov qword [rbp - 0x38], r14
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
call fcn.1400369f0
movzx edx, byte [rbp - 0x50]
mov rbx, rdi
mov r15, qword [rsp + 0x4f0]
mov r14, qword [rsp + 0x4f8]
test dl, dl
je 0x14002827a
nop dword [rax + rax]
cmp byte [rbp + rbx - 0x4f], 8
jne 0x14002826f
mov rcx, qword [rbp + rbx*8 - 0x38]
test rcx, rcx
je 0x14002826f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movzx edx, byte [rbp - 0x50]
inc rbx
movzx eax, dl
cmp rbx, rax
jb 0x140028250
mov rax, qword [0x14009eca8]
test rax, rax
je 0x1400282b1
mov r9, qword [rsi + 0xf8]
lea rcx, [rbp - 0x70]
mov r8d, dword [rsi + 0x108]
mov rdx, qword [rsi + 0x100]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsi + 8]
call rax
test al, al
jne 0x1400284b0
mov eax, dword [0x14008b040]
test al, 2
je 0x1400282d5
cmp qword [rbp - 0x58], 0x10
lea rcx, [rbp - 0x70]
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14008b040]
test al, 4
jne 0x1400282e6
cmp dword [rsi + 8], 2
jl 0x14002832f
test eax, 0xfffffffe
jne 0x14002832f
cmp qword [rbp - 0x58], 0x10
lea rbx, [rbp - 0x70]
mov ecx, 2
cmovae rbx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rbp - 0x60]
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 [0x14008b040]
test al, 1
je 0x140028365
call fcn.140028a90
test al, al
je 0x140028365
cmp qword [rbp - 0x58], 0x10
lea rdx, [rbp - 0x70]
mov r8d, dword [rbp - 0x60]
lea r9, [rsp + 0x60]
cmovae rdx, qword [rbp - 0x70]
mov rcx, qword [0x14009ec70]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x1400284b0
mov rcx, qword [0x14009f1b8]
test rcx, rcx
je 0x1400283ac
cmp qword [rbp - 0x58], 0x10
lea rax, [rbp - 0x70]
lea rdx, [rsp + 0x50]
cmovae rax, qword [rbp - 0x70]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.14003a390
cmp qword [rbp - 0x58], 0x10
lea rdx, [rbp - 0x70]
mov r8d, 0x400
lea rcx, [rbp - 0x20]
cmovae rdx, qword [rbp - 0x70]
call fcn.14002eb00
lea rcx, [rbp - 0x20]
call fcn.14001d0f0
mov rcx, qword [0x14009eca0]
cmp qword [0x14009ec98], rcx
je 0x1400284af
test rcx, rcx
cmove rcx, qword [0x14009ec90]
dec rcx
cmp rcx, qword [0x14009ec90]
jbe 0x1400283fe
int3
mov rax, qword [0x14009ec88]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x60]
call fcn.140032760
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400284a3
mov r9, qword [rbp - 0x58]
lea rdx, [rbp - 0x70]
mov r8, qword [rbp - 0x70]
cmp r9, 0x10
cmovae rdx, r8
add rdx, r12
mov qword [rsp + 0x50], rdx
je 0x14002844d
cmp byte [rdx], dil
je 0x14002844d
inc rdi
cmp byte [rdi + rdx], 0
jne 0x140028444
mov rdx, qword [rsi + 0xf8]
lea rcx, [rbp - 0x70]
cmp r9, 0x10
mov qword [rsp + 0x58], rdi
movaps xmm0, xmmword [rsp + 0x50]
lea r9, [rsp + 0x70]
cmovae rcx, r8
movdqa xmmword [rsp + 0x50], xmm0
mov r8d, dword [rsi + 0x108]
add rcx, rdx
mov qword [rsp + 0x70], rcx
sub r12, rdx
mov rdx, qword [rsi + 0x100]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov qword [rsp + 0x78], r12
call qword [rax + 8]
lea rcx, [rsp + 0x60]
call fcn.1400327b0
jmp 0x1400284b0
int3
mov rdx, qword [rbp - 0x58]
mov r12, qword [rsp + 0x530]
mov rdi, qword [rsp + 0x528]
cmp rdx, 0x10
jb 0x1400284fe
mov rcx, qword [rbp - 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400284f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400284f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071710
lea rcx, [rsi + 0x118]
call fcn.140032820
mov rax, qword [rsi + 0x10]
lea rbx, [rsi + 0x98]
lea rcx, [rbx - 0x80]
movsxd rdx, dword [rax + 4]
lea rax, [0x140075608]
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.1400214c0
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 + 0x3e0]
xor rcx, rsp
call fcn.1400717b0
add rsp, 0x500
pop rsi
pop rbx
pop rbp
ret