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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400913a8]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
lea rax, [0x14007c3e0]
mov qword [rsp + 0x4f8], r13
mov qword [rcx], rax
lea rdx, [rsp + 0x60]
mov rsi, rcx
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, [0x140027660]
lea rcx, [rsi + 0x10]
mov r13, qword [rax + 8]
add r13, 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 ebx, ebx
mov eax, ecx
mov qword [rbp - 0x80], rbx
and al, 0x22
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 0xf
cmp al, 2
je 0x140027cc6
mov rax, qword [rsi + 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140027cc6
mov rax, qword [rsi + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsi + 0x80]
cmp r8, rax
cmovb r8, rax
sub r8, rdx
jmp 0x140027ceb
test cl, 4
jne 0x140027cf9
mov rax, qword [rsi + 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140027cf9
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 0x140027cf9
lea rcx, [rbp - 0x80]
call fcn.14001cc40
test byte [0x140090570], 0x19
je 0x140027d3b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
lea r9, [0x14007d8d8]
lea rax, [rsp + 0x30]
mov cl, 0x49
mov qword [rsp + 0x28], rax
lea r8, str.LogMessage
lea rdx, [0x140090570]
mov qword [rsp + 0x20], rbx
call fcn.140026800
mov rax, qword [0x140091730]
test rax, rax
je 0x140027d72
mov r9, qword [rsi + 0xf8]
lea rcx, [rbp - 0x80]
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 0x140027fc4
mov eax, dword [0x140090038]
test al, 2
je 0x140027d96
cmp qword [rbp - 0x68], 0x10
lea rcx, [rbp - 0x80]
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140090038]
test al, 4
jne 0x140027daf
cmp dword [rsi + 8], 2
jl 0x140027e39
test eax, 0xfffffffe
jne 0x140027e39
cmp qword [rbp - 0x68], 0x10
mov qword [rsp + 0x4e8], rdi
mov qword [rsp + 0x4f0], r12
mov qword [rsp + 0x4b8], r14
mov r14, qword [rbp - 0x70]
mov qword [rsp + 0x4b0], r15
mov r12d, r14d
lea r15, [rbp - 0x80]
jb 0x140027de5
mov r15, qword [rbp - 0x80]
mov rdi, rbx
test r14, r14
je 0x140027e19
nop dword [rax]
mov r8d, r12d
lea rdx, [rdi + r15]
sub r8d, edi
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
test eax, eax
js 0x140027e13
cdqe
add rdi, rax
cmp rdi, r14
jb 0x140027df0
mov eax, dword [0x140090038]
mov r14, qword [rsp + 0x4b8]
mov r12, qword [rsp + 0x4f0]
mov rdi, qword [rsp + 0x4e8]
mov r15, qword [rsp + 0x4b0]
test al, 1
je 0x140027e6f
call fcn.1400289b0
test al, al
je 0x140027e6f
cmp qword [rbp - 0x68], 0x10
lea rdx, [rbp - 0x80]
mov r8d, dword [rbp - 0x70]
lea r9, [rsp + 0x40]
cmovae rdx, qword [rbp - 0x80]
mov rcx, qword [0x1400916f8]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x140027fc4
mov rcx, qword [0x140091738]
nop
test rcx, rcx
je 0x140027eb7
cmp qword [rbp - 0x68], 0x10
lea rax, [rbp - 0x80]
lea rdx, [rsp + 0x30]
cmovae rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002a790
cmp qword [rbp - 0x68], 0x10
lea rdx, [rbp - 0x80]
mov r8d, 0x400
lea rcx, [rbp - 0x60]
cmovae rdx, qword [rbp - 0x80]
call fcn.140026230
lea rcx, [rbp - 0x60]
call fcn.14001c6e0
mov rcx, qword [0x140091728]
cmp qword [0x140091720], rcx
je 0x140027fc3
test rcx, rcx
cmove rcx, qword [0x140091718]
dec rcx
cmp rcx, qword [0x140091718]
jbe 0x140027f09
int3
mov rax, qword [0x140091710]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x40]
call fcn.140022920
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140027fb7
mov r9, qword [rbp - 0x68]
lea rdx, [rbp - 0x80]
mov r8, qword [rbp - 0x80]
cmp r9, 0x10
cmovae rdx, r8
add rdx, r13
mov qword [rsp + 0x30], rdx
je 0x140027f60
cmp byte [rdx], bl
je 0x140027f59
nop
inc rbx
cmp byte [rbx + rdx], 0
jne 0x140027f50
mov qword [rsp + 0x38], rbx
jmp 0x140027f66
mov qword [rsp + 0x38], rbx
int3
mov rdx, qword [rsi + 0xf8]
lea rcx, [rbp - 0x80]
movaps xmm0, xmmword [rsp + 0x30]
sub r13, rdx
cmp r9, 0x10
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], r13
cmovae rcx, r8
mov r8d, dword [rsi + 0x108]
add rcx, rdx
mov rdx, qword [rsi + 0x100]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [rax + 8]
lea rcx, [rsp + 0x40]
call fcn.140022a30
jmp 0x140027fc4
int3
mov rdx, qword [rbp - 0x68]
mov r13, qword [rsp + 0x4f8]
cmp rdx, 0x10
jb 0x14002800a
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028005
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028005
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
lea rcx, [rsi + 0x10c]
call fcn.140040160
mov rax, qword [rsi + 0x10]
lea rbx, [rsi + 0x98]
lea rcx, [rbx - 0x80]
movsxd rdx, dword [rax + 4]
lea rax, [0x14007c2d8]
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.140022970
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 + 0x3a0]
xor rcx, rsp
call fcn.140077590
add rsp, 0x4c0
pop rsi
pop rbx
pop rbp
ret