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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x518
movaps xmmword [rsp + 0x500], xmm6
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x1402abd08]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
mov r14, 0xffffffffffffffff
test byte [rsi + rcx + 0x30], 5
jne 0x140001d82
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 r14, qword [rbx + 8]
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rbx, qword [rdi + rax + 0x30]
lock inc dword [rbx + 8]
lea rax, [0x140313dd0]
mov qword [rsp + 0xe0], rax
lea rax, [0x140059930]
mov qword [rsp + 0xe8], rax
mov rax, qword [0x140313dd0]
cmp rax, 0xffffffffffffffff
jne 0x14000253c
movsxd rax, dword [0x140313dd8]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x18]
sub rbp, rcx
sar rbp, 3
cmp rbp, rdx
jbe 0x140002537
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140002537
mov rax, qword [rcx]
mov dl, 0xa
call qword [rax + 0x38]
mov ebp, eax
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
test eax, eax
je 0x1400021c8
mov rcx, rdi
mov edx, ebp
call fcn.14018eec8
mov rcx, rdi
call fcn.14018edca
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x1402ae190]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.1400bae38
test byte [0x14030f8e0], 0x19
jne 0x140002178
mov rax, qword [0x140314bd8]
test rax, rax
je 0x140001e94
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x20], rbp
call rax
test al, al
jne 0x140001f71
mov eax, dword [0x14030f308]
test al, 2
je 0x140001ec6
cmp byte [rsp + 0x97], 0
jns 0x140001eb2
mov rcx, qword [rsp + 0x80]
jmp 0x140001eba
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14030f308]
test al, 4
jne 0x140001ed5
cmp dword [rsi + 8], 2
jl 0x140001f1c
cmp eax, 1
ja 0x140001f1c
mov ecx, 2
call fcn.14011277c
lea rcx, [rsp + 0x80]
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.140114270
mov ecx, 2
call fcn.14011277c
mov rcx, rax
call fcn.1401142f4
mov eax, dword [0x14030f308]
test al, 1
je 0x140001f67
call fcn.14007f0e0
test al, al
je 0x140001f67
lea r9, [rsp + 0xe0]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x80]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x140314be8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
je 0x14000200d
cmp byte [rsp + 0x97], 0
jns 0x140001f88
mov rcx, qword [rsp + 0x80]
call fcn.140112038
lea rcx, [rsi + 0x12c]
call fcn.14010d990
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1402aaa68]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1402aaa70]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140001fc9
mov rcx, qword [rdi + 0x48]
call fcn.140112038
mov rcx, r15
call fcn.1400ba7b2
mov rcx, r15
call fcn.1400bb610
mov rcx, rbx
call fcn.1400ba7ac
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
invalid
pop rdi
invalid