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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [0x140124058]
xor rax, rbp
mov qword [rbp + 0x410], rax
lea rdi, [rcx + 8]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.1400178d0
mov r14, qword [rbp - 0x10]
add r14, qword [rbp - 0x18]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
mov rax, qword [rsi + rax + 0x48]
mov rcx, qword [rax + 8]
mov qword [rbp - 0x10], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp - 0x18]
call fcn.140016410
mov rbx, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbx + 0x40]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140017476
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140017476
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, rdi
mov edx, ebx
call fcn.140019080
mov rcx, rdi
call fcn.1400013a0
lea r15, [rsi + 0x10]
lea rbx, [rbp + 0x3f0]
mov rcx, r15
mov rdx, rbx
call fcn.140018e80
mov rax, qword [0x140127d48]
test rax, rax
je 0x1400174d0
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
jne 0x1400177b6
test byte [section..data], 2
jne 0x140017506
cmp dword [rsi], 2
jl 0x140017574
mov ecx, 2
call fcn.1400ca8c0
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x14001754d
mov rcx, qword [rbp + 0x3f0]
jmp 0x140017554
cmp qword [rbp + 0x408], 0xf
mov rcx, rbx
jbe 0x14001751a
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.1400ca8c0
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x140017542
mov rbx, qword [rbp + 0x3f0]
mov r8d, 1
mov rcx, rbx
jmp 0x14001755a
lea rcx, [rbp + 0x3f0]
mov r8d, 1
mov r9, rax
call fcn.1400d8bc0
mov ecx, 2
call fcn.1400ca8c0
mov rcx, rax
call fcn.1400d80e0
test byte [section..data], 1
je 0x1400175c1
call fcn.140016a90
test al, al
je 0x1400175c1
mov r8d, dword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x1400175a0
mov rdx, qword [rbp + 0x3f0]
jmp 0x1400175a7
lea rdx, [rbp + 0x3f0]
mov rcx, qword [0x140127d88]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x1400177b6
mov rcx, qword [0x140128128]
test rcx, rcx
je 0x140017608
mov rax, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x1400175f0
mov rdx, qword [rbp + 0x3f0]
jmp 0x1400175f7
lea rdx, [rbp + 0x3f0]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
call fcn.14002b310
mov dword [rbp - 0x18], 0xbedead01
mov dword [rbp + 0x3ec], 0x5050dead
cmp qword [rbp + 0x408], 0xf
jbe 0x14001762c
mov rdx, qword [rbp + 0x3f0]
jmp 0x140017633
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp - 0x14]
mov r8d, 0x400
call fcn.140023930
lea rcx, [rbp - 0x18]
call fcn.140004c50
mov rax, qword [0x140127d60]
test rax, rax
je 0x1400178b6
mov rbx, qword [0x140127d60]
cmp rbx, 1
ja 0x1400176ae
lea rcx, [0x140127d60]
call fcn.1400293a0
test al, al
je 0x1400176a7
xorps xmm0, xmm0
movups xmmword [0x140127d78], xmm0
movups xmmword [0x140127d68], xmm0
lea rbx, [0x140127d68]
lea rcx, [0x140127d60]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.140029450
jmp 0x1400176ae
mov rbx, qword [0x140127d60]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
je 0x1400178b6
mov rbx, qword [0x140127d60]
cmp rbx, 1
ja 0x14001770f
lea rcx, [0x140127d60]
call fcn.1400293a0
test al, al
je 0x140017708
xorps xmm0, xmm0
movups xmmword [0x140127d78], xmm0
movups xmmword [0x140127d68], xmm0
lea rbx, [0x140127d68]
lea rcx, [0x140127d60]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.140029450
jmp 0x14001770f
mov rbx, qword [0x140127d60]
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x1400178bd
shl rdx, 3
add rdx, qword [rbx]
lea rcx, [rbp - 0x30]
call fcn.14000ccb0
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400177ad
cmp qword [rbp + 0x408], 0xf
jbe 0x140017757
mov rdi, qword [rbp + 0x3f0]
jmp 0x14001775e
lea rdi, [rbp + 0x3f0]
mov rcx, rdi
add rcx, r14
mov qword [rbp - 0x40], rcx
je 0x140017771
call fcn.1400dccb0
jmp 0x140017773
xor eax, eax
mov qword [rbp - 0x38], rax
mov rax, qword [rsi + 0xf0]
sub r14, rax
add rdi, rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], r14
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov rcx, rbx
call qword [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14000cc90
mov rax, qword [rbp + 0x408]
cmp rax, 0x10
jb 0x1400177fb
mov rcx, qword [rbp + 0x3f0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400177f6
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400178c4
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400a5740
lea rcx, [rsi + 0x104]
call fcn.1400294b0
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400f2790]
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, [0x1400f27a0]
mov qword [rsi + 0x10], rax
mov rcx, r15
call fcn.140018680
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 0x140017884
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001787c
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14001787c
mov rbx, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rbx]
mov rcx, rdi
call fcn.1400a5730
lea rax, vtable.std::ios_base.0
mov qword [rsi], rax
mov rcx, rsi
call fcn.1400a7780
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.1400a5a90
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
int3
int3
call fcn.1400d60c0
ud2