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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x4b0
mov rsi, rcx
mov rax, qword [0x140081338]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
lea rdi, [rcx + 8]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14001adf0
mov r14, qword [rsp + 0x70]
add r14, qword [rsp + 0x68]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
mov rax, qword [rsi + rax + 0x48]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x88], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x80]
call fcn.140014ef0
mov rbx, rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001a913
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14001a913
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbx]
mov dl, 0xa
mov rcx, rbx
call qword [rax + 0x40]
mov rcx, rdi
mov edx, eax
call fcn.14001c800
mov rcx, rdi
call fcn.140003690
lea rdi, [rsi + 0x10]
lea rbx, [rsp + 0x488]
mov rcx, rdi
mov rdx, rbx
call fcn.14001c5f0
mov rax, qword [0x1400825c8]
test rax, rax
je 0x14001a9cf
mov r9, qword [rsi + 0xf0]
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
mov ecx, dword [rsi]
mov qword [rsp + 0x20], rbx
call rax
test al, al
je 0x14001a9cf
mov rax, qword [rsp + 0x4a0]
cmp rax, 0x10
jb 0x14001ad26
mov rcx, qword [rsp + 0x488]
add rax, 1
cmp rax, 0x1000
jb 0x14001a9c5
test cl, 0x1f
jne 0x14001ade1
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14001ade1
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14001ade1
call fcn.140041240
jmp 0x14001ad26
test byte [0x140081030], 2
jne 0x14001aa08
cmp dword [rsi], 2
jl 0x14001aa7c
mov ecx, 2
call fcn.140047d90
mov rdx, qword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x14001aa54
mov rcx, qword [rsp + 0x488]
jmp 0x14001aa5c
cmp qword [rsp + 0x4a0], 0xf
mov rcx, rbx
jbe 0x14001aa1e
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.140047d90
mov rdx, qword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x14001aa49
mov rbx, qword [rsp + 0x488]
mov r8d, 1
mov rcx, rbx
jmp 0x14001aa62
lea rcx, [rsp + 0x488]
mov r8d, 1
mov r9, rax
call fcn.14004c9d0
mov ecx, 2
call fcn.140047d90
mov rcx, rax
call fcn.14004cd50
test byte [0x140081030], 1
je 0x14001aad1
call fcn.140019f10
test al, al
je 0x14001aad1
mov r8d, dword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x14001aaab
mov rdx, qword [rsp + 0x488]
jmp 0x14001aab3
lea rdx, [rsp + 0x488]
mov rcx, qword [0x140082600]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x14001acc9
mov rcx, qword [0x1400826c8]
test rcx, rcx
je 0x14001ab1f
mov rax, qword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x14001ab03
mov rdx, qword [rsp + 0x488]
jmp 0x14001ab0b
lea rdx, [rsp + 0x488]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
call fcn.140022fd0
cmp qword [rsp + 0x4a0], 0xf
jbe 0x14001ab34
mov rdx, qword [rsp + 0x488]
jmp 0x14001ab3c
lea rdx, [rsp + 0x488]
lea rbx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.14001fc70
mov rcx, rbx
call fcn.140025bf0
mov rax, qword [0x1400825d8]
test rax, rax
je 0x14001abc3
mov rbx, qword [0x1400825d8]
cmp rbx, 1
ja 0x14001abb9
lea rcx, [0x1400825d8]
call fcn.14002bdb0
test al, al
je 0x14001abb2
xorps xmm0, xmm0
movups xmmword [0x1400825f0], xmm0
movups xmmword [0x1400825e0], xmm0
lea rbx, [0x1400825e0]
lea rcx, [0x1400825d8]
xor r8d, r8d
mov rdx, rbx
mov r9, rcx
call fcn.14002be70
jmp 0x14001abb9
mov rbx, qword [0x1400825d8]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
jne 0x14001abcd
call fcn.14002bf90
jmp 0x14001acc9
mov rbx, qword [0x1400825d8]
cmp rbx, 1
ja 0x14001ac20
lea rcx, [0x1400825d8]
call fcn.14002bdb0
test al, al
je 0x14001ac19
xorps xmm0, xmm0
movups xmmword [0x1400825f0], xmm0
movups xmmword [0x1400825e0], xmm0
lea rbx, [0x1400825e0]
lea rcx, [0x1400825d8]
xor r8d, r8d
mov rdx, rbx
mov r9, rcx
call fcn.14002be70
jmp 0x14001ac20
mov rbx, qword [0x1400825d8]
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14001ac2d
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
lea rdx, [rcx + rax*8]
add rdx, 0xfffffffffffffff8
lea rcx, [rsp + 0x50]
call fcn.14001fe40
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x14001acbf
cmp qword [rsp + 0x4a0], 0xf
jbe 0x14001ac61
mov rbx, qword [rsp + 0x488]
jmp 0x14001ac69
lea rbx, [rsp + 0x488]
mov rcx, rbx
add rcx, r14
mov qword [rsp + 0x40], rcx
je 0x14001ac7d
call fcn.140047bc0
jmp 0x14001ac7f
xor eax, eax
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0xf0]
sub r14, rax
add rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, r15
call qword [r15 + 8]
lea rcx, [rsp + 0x50]
call fcn.14001fe20
mov rax, qword [rsp + 0x4a0]
cmp rax, 0x10
jb 0x14001ad1a
mov rcx, qword [rsp + 0x488]
add rax, 1
cmp rax, 0x1000
jb 0x14001ad15
test cl, 0x1f
jne 0x14001ade1
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14001ade1
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14001ade1
call fcn.140041240
mov qword [rsp + 0x4a0], 0xf
mov ecx, dword [rsi + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x140066df0]
mov qword [rsi + rax + 8], rcx
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsi + rax + 4], ecx
lea rax, [0x140066e00]
mov qword [rsi + 0x10], rax
mov rcx, rdi
call fcn.14001bcb0
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rsi + 0x10], rax
mov rdi, qword [rsi + 0x70]
lea rsi, [rsi + 0x90]
test rdi, rdi
je 0x14001adaf
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001ada7
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14001ada7
mov rbx, qword [rax]
mov edx, 1
mov rcx, rax
call qword [rbx]
mov rcx, rdi
call fcn.140041240
lea rax, vtable.std::ios_base.0
mov qword [rsi], rax
mov rcx, rsi
call fcn.140043320
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140041210
nop
add rsp, 0x4b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400476b0
ud2