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

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rsi, rcx
mov qword [rsp + 0x738], r15
add rcx, 8
lea rdx, [rbp - 0x50]
call fcn.14001f900
mov r15, qword [rax + 8]
add r15, qword [rax]
cmp dword [rsi], 3
jne 0x14001d561
call fcn.14003f450
test al, al
jne 0x14001d561
lea rcx, [rbp - 0x30]
call fcn.140043740
lea rcx, [rsi + 8]
call fcn.14001d000
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x30]
call fcn.140043b80
lea rcx, [rsi + 8]
mov qword [rsp + 0x728], rbx
call fcn.14001d000
lea rcx, [rsi + 0x10]
lea rdx, [rbp + 0x1d0]
call fcn.14001f770
mov rax, qword [0x14045ef68]
test rax, rax
je 0x14001d5bb
mov r9, qword [rsi + 0xf0]
lea rcx, [rbp + 0x1d0]
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 0x14001d85b
test byte [0x14045b018], 2
mov qword [rsp + 0x730], rdi
je 0x14001d5eb
cmp qword [rbp + 0x1e8], 0x10
lea rcx, [rbp + 0x1d0]
cmovae rcx, qword [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14001d5f0
cmp dword [rsi], 2
jl 0x14001d63e
cmp qword [rbp + 0x1e8], 0x10
lea rdi, [rbp + 0x1d0]
mov rbx, qword [rbp + 0x1e0]
mov ecx, 2
cmovae rdi, qword [rbp + 0x1d0]
call fcn.1402eb760
mov r9, rax
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call fcn.1402ec3a0
mov ecx, 2
call fcn.1402eb760
mov rcx, rax
call fcn.1402ebb40
mov rdi, qword [rsp + 0x730]
xor ebx, ebx
test byte [0x14045b018], 1
je 0x14001d68f
call fcn.14001e780
test al, al
je 0x14001d68f
cmp qword [rbp + 0x1e8], 0x10
lea rdx, [rbp + 0x1d0]
mov r8d, dword [rbp + 0x1e0]
lea r9, [rsp + 0x70]
cmovae rdx, qword [rbp + 0x1d0]
mov rcx, qword [0x14045ef28]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x14001d85b
mov rcx, qword [0x14045f080]
test rcx, rcx
je 0x14001d6df
cmp qword [rbp + 0x1e8], 0x10
lea rax, [rbp + 0x1d0]
lea rdx, [rbp - 0x80]
cmovae rax, qword [rbp + 0x1d0]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x1e0]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
call fcn.140042530
mov r8d, 0x400
lea rdx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e0], r8
cmovb r8, qword [rbp + 0x1e0]
cmp qword [rbp + 0x1e8], 0x10
cmovae rdx, qword [rbp + 0x1d0]
test r8, r8
je 0x14001d71c
lea rcx, [rbp + 0x1f0]
call fcn.1402e2940
lea rcx, [rbp + 0x1f0]
call fcn.140043730
mov rax, qword [0x14045ef38]
test rax, rax
je 0x14001d856
cmp rax, 1
je 0x14001d74e
mov rax, qword [0x14045ef38]
test rax, rax
je 0x14001d856
lea rcx, [0x14045ef38]
call fcn.14001e970
cmp qword [rax + 0x20], rbx
je 0x14001d856
lea rcx, [0x14045ef38]
call fcn.14001e970
mov rcx, rax
call fcn.14001fa00
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14002dc60
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14001d84a
mov r9, qword [rbp + 0x1e8]
lea rdx, [rbp + 0x1d0]
mov r8, qword [rbp + 0x1d0]
cmp r9, 0x10
cmovae rdx, r8
add rdx, r15
mov qword [rsp + 0x40], rdx
jne 0x14001d7c1
mov qword [rsp + 0x48], rbx
jmp 0x14001d7dd
cmp byte [rdx], bl
jne 0x14001d7cc
mov qword [rsp + 0x48], rbx
jmp 0x14001d7dd
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], bl
jne 0x14001d7d0
mov qword [rsp + 0x48], rcx
mov rdx, qword [rsi + 0xf0]
lea rcx, [rbp + 0x1d0]
movaps xmm0, xmmword [rsp + 0x40]
cmp r9, 0x10
movdqa xmmword [rbp - 0x70], xmm0
lea r9, [rbp - 0x60]
cmovae rcx, r8
sub r15, rdx
add rcx, rdx
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], rcx
lea r8, [rsp + 0x30]
mov ecx, dword [rsi + 0x100]
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x60]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsi + 0xf8]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov rcx, rax
movdqa xmmword [rbp - 0x60], xmm0
call qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.14002dcb0
jmp 0x14001d85b
call fcn.14003f470
mov rax, qword [rbp + 0x1e8]
mov r15, qword [rsp + 0x738]
cmp rax, 0x10
jb 0x14001d8a7
mov rcx, qword [rbp + 0x1d0]
inc rax
cmp rax, 0x1000
jb 0x14001d8a2
test cl, 0x1f
jne 0x14001d8fc
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14001d902
sub rcx, rax
cmp rcx, 8
jb 0x14001d908
cmp rcx, 0x27
ja 0x14001d90e
mov rcx, rax
call fcn.1402dfaa0
mov ecx, dword [rsi + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 0x90]
call fcn.14001d420
lea rax, vtable.std::ios_base.0
lea rcx, [rsi + 0x90]
mov qword [rsi + 0x90], rax
call fcn.1402e1c50
mov rbx, qword [rsp + 0x728]
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1402e0100
add rsp, 0x700
pop r14
pop rsi
pop rbp
ret
call fcn.1402e5d40
int3
call fcn.1402e5d40
int3
call fcn.1402e5d40
int3
call fcn.1402e5d40
int3