Function at 0x140010050
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 [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x4e8], rax
lea rax, str._z_t_
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 0x1400100d2
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, [0x140172cd8]
mov rcx, rsi
call fcn.14001fa92
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 0x14001034d
mov rcx, rdi
mov edx, ebx
call fcn.14007a812
mov rcx, rdi
call fcn.140078558
lea rcx, [r15 + 0x18]
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], rbx
movaps xmm6, xmmword [0x140146a10]
movaps xmmword [rdi], xmm6
mov rdx, rdi
call fcn.1400109fa
test byte [0x14016e4b0], 0x19
jne 0x140010461
mov eax, dword [0x14016df30]
test al, 2
je 0x14001018f
cmp byte [rsp + 0x87], 0
jns 0x14001017e
mov rcx, qword [rsp + 0x70]
jmp 0x140010183
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14016df30]
test al, 4
jne 0x14001019f
cmp eax, 1
ja 0x1400101e3
cmp dword [r15 + 8], 2
jl 0x1400101e3
mov ecx, 2
call fcn.14010c4c0
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.14010cee0
mov ecx, 2
call fcn.14010c4c0
mov rcx, rax
call fcn.14010cf64
mov eax, dword [0x14016df30]
test al, 1
je 0x14001022b
call fcn.1400ff9e0
test al, al
je 0x14001022b
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 [0x140173a50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [r15 + 8], 3
je 0x1400102f0
lea rdi, [rsp + 0x70]
cmp byte [rdi + 0x17], 0
jns 0x14001024b
mov rcx, qword [rsp + 0x70]
call fcn.14010b880
mov ecx, dword [r15 + 0x13c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [r15 + 0x138]
call fcn.14010b8cc
mov dword [rax], esi
lea rdi, [r15 + 0x80]
mov rax, qword [r15 + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140146d98]
mov qword [r15 + rax + 0x10], rcx
lea rax, [0x140146db0]
mov qword [r15 + 0x18], rax
cmp byte [r15 + 0x6f], 0
jns 0x14001029c
mov rcx, qword [rdi - 0x28]
call fcn.14010b880
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 0x140010358
mov rcx, rdi
call fcn.14002946c
mov rcx, qword [rsp + 0x4e8]
xor rcx, rsp
call fcn.14010e4a0
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 [0x140173af0]
lea rdi, [rsp + 0x70]
test rcx, rcx
je 0x140010324
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.1400a1950
lea rsi, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rsi
mov dl, 0xaa
call fcn.140110bf0
cmp byte [rsp + 0x87], 0
jns 0x140010363
mov rdx, qword [rsp + 0x70]
jmp 0x140010368
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14001011b
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400102bd
lea rdx, [rsp + 0x70]
mov r8d, 0x400
mov rcx, rsi
call fcn.1400a0cd0
mov rcx, rsi
call fcn.1400021b0
call fcn.1400979c0
mov rax, qword [0x140173a68]
cmp rax, qword [0x140173a70]
je 0x140010632
mov qword [rsp + 0xb8], rbx
call fcn.1400979c0
mov rdx, qword [0x140173a70]
test rdx, rdx
mov rax, qword [0x140173a60]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140010635
shl rdx, 3
add rdx, qword [0x140173a58]
lea rsi, [rsp + 0xb8]
mov rcx, rsi
call fcn.140042090
mov rsi, qword [rsi]
test rsi, rsi
je 0x14001044f
cmp byte [rsp + 0x87], 0
jns 0x1400103f9
mov rbx, qword [rsp + 0x70]
jmp 0x1400103fe
lea rbx, [rsp + 0x70]
mov rcx, rbx
add rcx, r12
mov qword [rsp + 0x50], rcx
je 0x140010412
call fcn.140124b10
jmp 0x140010414
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.140009f60
jmp 0x14001023b
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, [0x14016e4b0]
lea r9, str.LogMessage
mov rcx, rsi
mov dl, 0x49
call fcn.140049220
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400104b2
lea rcx, [rsp + 0xa0]
call fcn.1400a1fb0
jmp 0x140010163
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.14001b436
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.140098800
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.1400ffcc0
cmp byte [r13 + 8], 0
jne 0x140010611
mov rax, qword [rsp + 0xd0]
mov rsi, qword [rax + 0x28]
mov rcx, r14
mov edx, 1
mov r8, rsi
call fcn.14001b0f0
movzx ecx, byte [rsp + 0x87]
mov rax, rcx
test cl, cl
jns 0x140010591
mov rax, qword [rsp + 0x78]
mov rdx, qword [r15 + 0x118]
sub rax, rdx
jb 0x140010638
test cl, cl
jns 0x1400105aa
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.140038000
lea rcx, [rsp + 0x88]
mov rdx, rsi
call fcn.140097ac0
mov rcx, r14
mov edx, 2
mov r8, rax
call fcn.14001b0f0
cmp byte [rsi + 0x17], 0
jns 0x1400105ff
mov rcx, qword [rsp + 0xe0]
call fcn.14010b880
lea rcx, [rsp + 0x88]
call fcn.1400799aa
jmp 0x1400104a0
mov rcx, qword [rsp + 0x98]
sub rcx, 0xffffffffffffff80
lea r8, [rsp + 0xb8]
mov rdx, rsi
call fcn.14001b000
jmp 0x14001056d
int3
int3
int3