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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x500
movaps xmmword [rsp + 0x4f0], xmm6
mov r15, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x4e8], rax
lea rax, [0x140140f88]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
mov r12, 0xffffffffffffffff
test byte [r15 + rcx + 0x30], 5
jne 0x140014ef2
mov rcx, qword [rdi + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0xe0]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r12, qword [rbx + 8]
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rax, qword [rdi + rax + 0x30]
lea rsi, [rsp + 0xe0]
mov qword [rsi], rax
lock inc dword [rax + 8]
lea rdx, [0x140168660]
mov rcx, rsi
call fcn.140022dce
mov rbx, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbx + 0x38]
mov ebx, eax
mov rcx, qword [rsi]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
je 0x14001516d
mov rcx, rdi
mov edx, ebx
call fcn.14007ea9c
mov rcx, rdi
call fcn.14007cca6
lea rcx, [r15 + 0x18]
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], rbx
movaps xmm6, xmmword [0x140141df0]
movaps xmmword [rdi], xmm6
mov rdx, rdi
call fcn.140015b94
test byte [0x1401653a0], 0x19
jne 0x140015282
mov eax, dword [0x140164e30]
test al, 2
je 0x140014faf
cmp byte [rsp + 0x87], 0
jns 0x140014f9e
mov rcx, qword [rsp + 0x70]
jmp 0x140014fa3
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140164e30]
test al, 4
jne 0x140014fbf
cmp eax, 1
ja 0x140015003
cmp dword [r15 + 8], 2
jl 0x140015003
mov ecx, 2
call fcn.140105c68
lea rcx, [rsp + 0x70]
movzx edx, byte [rcx + 0x17]
test dl, dl
cmovs rdx, qword [rcx + 8]
cmovs rcx, qword [rcx]
mov r8d, 1
mov r9, rax
call fcn.1401066e0
mov ecx, 2
call fcn.140105c68
mov rcx, rax
call fcn.140106764
mov eax, dword [0x140164e30]
test al, 1
je 0x14001504b
call fcn.1400ffd70
test al, al
je 0x14001504b
lea r9, [rsp + 0xe0]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x70]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1401693d0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [r15 + 8], 3
je 0x140015110
lea rdi, [rsp + 0x70]
cmp byte [rdi + 0x17], 0
jns 0x14001506b
mov rcx, qword [rsp + 0x70]
call fcn.140105028
mov ecx, dword [r15 + 0x13c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [r15 + 0x138]
call fcn.140105150
mov dword [rax], esi
lea rdi, [r15 + 0x80]
mov rax, qword [r15 + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x14013fcf8]
mov qword [r15 + rax + 0x10], rcx
lea rax, [0x14013fd10]
mov qword [r15 + 0x18], rax
cmp byte [r15 + 0x6f], 0
jns 0x1400150bc
mov rcx, qword [rdi - 0x28]
call fcn.140105028
lea rax, vtable.std::__1::basic_streambuf_char__struct_std::__1::char_traits_char__.0
mov qword [rdi - 0x68], rax
mov rcx, qword [rdi - 0x60]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
je 0x140015178
mov rcx, rdi
call fcn.14002e704
mov rcx, qword [rsp + 0x4e8]
xor rcx, rsp
call fcn.140107cc0
movaps xmm6, xmmword [rsp + 0x4f0]
add rsp, 0x500
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x140169470]
lea rdi, [rsp + 0x70]
test rcx, rcx
je 0x140015144
movzx eax, byte [rdi + 0x17]
test al, al
mov rsi, qword [rdi]
cmovns rsi, rdi
lea rdx, [rsp + 0x60]
mov qword [rdx], rsi
cmovs rax, qword [rdi + 8]
mov qword [rdx + 8], rax
call fcn.1400a5df0
lea rsi, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rsi
mov dl, 0xaa
call fcn.14010a410
cmp byte [rsp + 0x87], 0
jns 0x140015183
mov rdx, qword [rsp + 0x70]
jmp 0x140015188
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140014f3b
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400150dd
lea rdx, [rsp + 0x70]
mov r8d, 0x400
mov rcx, rsi
call fcn.1400a5180
mov rcx, rsi
call fcn.14000ab20
call fcn.14009bc80
mov rax, qword [0x1401693e8]
cmp rax, qword [0x1401693f0]
je 0x140015453
mov qword [rsp + 0xb8], rbx
call fcn.14009bc80
mov rdx, qword [0x1401693f0]
test rdx, rdx
mov rax, qword [0x1401693e0]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140015456
shl rdx, 3
add rdx, qword [0x1401693d8]
lea rsi, [rsp + 0xb8]
mov rcx, rsi
call fcn.14004d610
mov rsi, qword [rsi]
test rsi, rsi
je 0x140015270
cmp byte [rsp + 0x87], 0
jns 0x140015219
mov rbx, qword [rsp + 0x70]
jmp 0x14001521e
lea rbx, [rsp + 0x70]
lea rcx, [rbx + r12]
mov qword [rsp + 0x50], rcx
test rbx, rbx
je 0x140015233
call fcn.14011e0a0
jmp 0x140015235
xor eax, eax
lea rcx, [rsp + 0x50]
mov qword [rcx + 8], rax
mov rax, qword [r15 + 0x118]
sub r12, rax
add rbx, rax
lea r9, [rsp + 0x40]
mov qword [r9], rbx
mov qword [r9 + 8], r12
mov r8d, dword [r15 + 0x128]
mov rdx, qword [r15 + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [rsi + 8]
lea rcx, [rsp + 0xb8]
call fcn.14000e9e0
jmp 0x14001505b
lea rsi, [rsp + 0xa0]
mov qword [rsi + 0x10], rbx
movaps xmmword [rsi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 8
lea r8, [0x1401653a0]
lea r9, str.LogMessage
mov rcx, rsi
mov dl, 0x49
call fcn.14004e3e0
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400152d3
lea rcx, [rsp + 0xa0]
call fcn.1400a6450
jmp 0x140014f83
mov rax, qword [rsp + 0xa8]
xor esi, esi
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
mov edx, 0x15
call fcn.1400201a6
mov r14, rax
movsxd rax, dword [r15 + 0x128]
mov rcx, qword [r15 + 0x120]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x98]
call fcn.14009cac0
mov rsi, qword [rax + 0x20]
lea rcx, [rax + 8]
inc rsi
mov rax, qword [rsp + 0xc8]
lea r8, [rsp + 0xe0]
mov qword [r8 + 0x10], rax
movups xmm0, xmmword [rsp + 0xb8]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x18], rsi
lea r13, [rsp + 0xd0]
mov rdx, r13
mov r9, r8
call fcn.140100050
cmp byte [r13 + 8], 0
jne 0x140015432
mov rax, qword [rsp + 0xd0]
mov rsi, qword [rax + 0x28]
mov rcx, r14
mov edx, 1
mov r8, rsi
call fcn.14001fe60
movzx ecx, byte [rsp + 0x87]
mov rax, rcx
test cl, cl
jns 0x1400153b2
mov rax, qword [rsp + 0x78]
mov rdx, qword [r15 + 0x118]
sub rax, rdx
jb 0x140015459
test cl, cl
jns 0x1400153cb
mov rdi, qword [rsp + 0x70]
add rdi, rdx
lea rcx, [rsp + 0xb8]
mov qword [rcx], rdi
mov qword [rcx + 8], rax
lea rsi, [rsp + 0xe0]
mov rdx, rsi
call fcn.14003f040
lea rcx, [rsp + 0x88]
mov rdx, rsi
call fcn.14009bd80
mov rcx, r14
mov edx, 2
mov r8, rax
call fcn.14001fe60
cmp byte [rsi + 0x17], 0
jns 0x140015420
mov rcx, qword [rsp + 0xe0]
call fcn.140105028
lea rcx, [rsp + 0x88]
call fcn.14007df58
jmp 0x1400152c1
mov rcx, qword [rsp + 0x98]
sub rcx, 0xffffffffffffff80
lea r8, [rsp + 0xb8]
mov rdx, rsi
call fcn.14001fd70
jmp 0x14001538e
int3
int3
int3