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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
mov r12, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rdi, [r12 + 8]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140016440
mov r14, qword [rsp + 0x70]
add r14, qword [rsp + 0x68]
cmp dword [r12], 3
jne 0x14001537b
call fcn.1400336d0
test al, al
jne 0x14001537b
lea rcx, [rsp + 0x80]
call fcn.140033710
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rax, qword [rdi + rax + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x488], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x480]
call fcn.1400180e0
mov rbx, rax
mov rcx, qword [rsp + 0x488]
test rcx, rcx
je 0x14001534a
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14001534a
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbx]
mov edx, 0xa
mov rcx, rbx
call qword [rax + 0x40]
movzx edx, al
mov rcx, rdi
call fcn.1400182b0
mov rcx, rdi
call fcn.140001df0
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140033bd0
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rax, qword [rdi + rax + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x88], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x80]
call fcn.1400180e0
mov rbx, rax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400153ce
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400153ce
mov rsi, qword [rax]
mov edx, 1
mov rcx, rax
call qword [rsi]
mov rax, qword [rbx]
mov edx, 0xa
mov rcx, rbx
call qword [rax + 0x40]
movzx edx, al
mov rcx, rdi
call fcn.1400182b0
mov rcx, rdi
call fcn.140001df0
lea rdi, [r12 + 0x10]
lea rbx, [rsp + 0x480]
mov rcx, rdi
mov rdx, rbx
call fcn.140017ec0
mov rax, qword [0x140193110]
test rax, rax
je 0x140015498
mov r9, qword [r12 + 0xf0]
mov r8d, dword [r12 + 0x100]
mov rdx, qword [r12 + 0xf8]
mov ecx, dword [r12]
mov qword [rsp + 0x20], rbx
call rax
test al, al
je 0x140015498
mov rax, qword [rsp + 0x498]
cmp rax, 0x10
jb 0x1400157ec
mov rcx, qword [rsp + 0x480]
add rax, 1
cmp rax, 0x1000
jb 0x14001548e
test cl, 0x1f
jne 0x1400158b2
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400158b2
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x1400158b2
call fcn.1400edcd0
jmp 0x1400157ec
test byte [section..data], 2
jne 0x1400154d3
cmp dword [r12], 2
jl 0x140015547
mov ecx, 2
call fcn.1400f8fe0
mov rdx, qword [rsp + 0x490]
cmp qword [rsp + 0x498], 0xf
jbe 0x14001551f
mov rcx, qword [rsp + 0x480]
jmp 0x140015527
cmp qword [rsp + 0x498], 0xf
mov rcx, rbx
jbe 0x1400154e9
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.1400f8fe0
mov rdx, qword [rsp + 0x490]
cmp qword [rsp + 0x498], 0xf
jbe 0x140015514
mov rbx, qword [rsp + 0x480]
mov r8d, 1
mov rcx, rbx
jmp 0x14001552d
lea rcx, [rsp + 0x480]
mov r8d, 1
mov r9, rax
call fcn.1400fa0d0
mov ecx, 2
call fcn.1400f8fe0
mov rcx, rax
call fcn.1400facc0
test byte [section..data], 1
je 0x14001559c
call fcn.1400158c0
test al, al
je 0x14001559c
mov r8d, dword [rsp + 0x490]
cmp qword [rsp + 0x498], 0xf
jbe 0x140015576
mov rdx, qword [rsp + 0x480]
jmp 0x14001557e
lea rdx, [rsp + 0x480]
mov rcx, qword [0x140193148]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [r12], 3
jne 0x14001578f
mov rcx, qword [0x140193280]
test rcx, rcx
je 0x1400155ec
mov rax, qword [rsp + 0x490]
cmp qword [rsp + 0x498], 0xf
jbe 0x1400155d0
mov rdx, qword [rsp + 0x480]
jmp 0x1400155d8
lea rdx, [rsp + 0x480]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
call fcn.140036220
cmp qword [rsp + 0x498], 0xf
jbe 0x140015601
mov rdx, qword [rsp + 0x480]
jmp 0x140015609
lea rdx, [rsp + 0x480]
lea rbx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.14001e3f0
mov rcx, rbx
call fcn.14002bf40
mov rax, qword [0x140193120]
test rax, rax
je 0x14001568b
mov rax, qword [0x140193120]
cmp rax, 1
ja 0x14001567a
lea rcx, [0x140193120]
call fcn.14002a3e0
test al, al
je 0x14001567a
xorps xmm0, xmm0
movups xmmword [0x140193138], xmm0
movups xmmword [0x140193128], xmm0
lea rdx, [0x140193128]
lea rcx, [0x140193120]
xor r8d, r8d
mov r9, rcx
call fcn.14002a4a0
mov rax, qword [0x140193120]
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
jne 0x140015695
call fcn.1400336f0
jmp 0x14001578f
mov rax, qword [0x140193120]
cmp rax, 1
ja 0x1400156dc
lea rcx, [0x140193120]
call fcn.14002a3e0
test al, al
je 0x1400156dc
xorps xmm0, xmm0
movups xmmword [0x140193138], xmm0
movups xmmword [0x140193128], xmm0
lea rdx, [0x140193128]
lea rcx, [0x140193120]
xor r8d, r8d
mov r9, rcx
call fcn.14002a4a0
mov rax, qword [0x140193120]
mov rcx, qword [rax + 0x18]
test rcx, rcx
jne 0x1400156f0
mov rcx, qword [rax + 8]
mov rax, qword [rax]
lea rdx, [rax + rcx*8]
add rdx, 0xfffffffffffffff8
lea rcx, [rsp + 0x50]
call fcn.14001ed10
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x140015785
cmp qword [rsp + 0x498], 0xf
jbe 0x140015724
mov rbx, qword [rsp + 0x480]
jmp 0x14001572c
lea rbx, [rsp + 0x480]
mov rcx, rbx
add rcx, r14
mov qword [rsp + 0x40], rcx
je 0x140015740
call fcn.1400f3f20
jmp 0x140015742
xor eax, eax
mov qword [rsp + 0x48], rax
mov rax, qword [r12 + 0xf0]
sub r14, rax
add rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r8d, dword [r12 + 0x100]
mov rdx, qword [r12 + 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.14001ecf0
mov rax, qword [rsp + 0x498]
cmp rax, 0x10
jb 0x1400157e0
mov rcx, qword [rsp + 0x480]
add rax, 1
cmp rax, 0x1000
jb 0x1400157db
test cl, 0x1f
jne 0x1400158b2
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400158b2
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x1400158b2
call fcn.1400edcd0
mov qword [rsp + 0x498], 0xf
mov ecx, dword [r12 + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [r12 + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x140155978]
mov qword [r12 + rax + 8], rcx
mov rax, qword [r12 + 8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [r12 + rax + 4], ecx
lea rax, [0x140155990]
mov qword [r12 + 0x10], rax
mov rcx, rdi
call fcn.1400177c0
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [r12 + 0x10], rax
mov rdi, qword [r12 + 0x70]
lea rsi, [r12 + 0x90]
test rdi, rdi
je 0x14001587e
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140015876
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140015876
mov rbx, qword [rax]
mov edx, 1
mov rcx, rax
call qword [rbx]
mov rcx, rdi
call fcn.1400edcd0
lea rax, vtable.std::ios_base.0
mov qword [rsi], rax
mov rcx, rsi
call fcn.1400ef330
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400edc60
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400f4650
ud2