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
call fcn.140115e50
movaps xmm6, xmmword [rsp + 0x500]
add rsp, 0x518
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x140317e60]
test rcx, rcx
je 0x140002045
lea rax, [rsp + 0x80]
movzx ebp, byte [rax + 0x17]
test bpl, bpl
mov rbx, qword [rax]
cmovns rbx, rax
lea rdx, [rsp + 0x70]
mov qword [rdx], rbx
cmovs rbp, qword [rax + 8]
mov qword [rdx + 8], rbp
call fcn.140202110
lea rbx, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140117f60
cmp byte [rsp + 0x97], 0
jns 0x140002071
mov rdx, qword [rsp + 0x80]
jmp 0x140002079
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.14010d650
mov rcx, rbx
call fcn.1400bb610
call fcn.1401c8d30
mov rax, qword [0x140314c00]
cmp rax, qword [0x140314c08]
je 0x140002572
mov qword [rsp + 0xc8], r12
call fcn.1401c8d30
mov rdx, qword [0x140314c08]
test rdx, rdx
mov rax, qword [0x140314bf8]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140002575
shl rdx, 3
add rdx, qword [0x140314bf0]
lea rbx, [rsp + 0xc8]
mov rcx, rbx
call fcn.1400077b0
mov rbx, qword [rbx]
test rbx, rbx
je 0x140002166
cmp byte [rsp + 0x97], 0
jns 0x14000210d
mov rbp, qword [rsp + 0x80]
jmp 0x140002115
lea rbp, [rsp + 0x80]
mov rcx, rbp
add rcx, r14
mov qword [rsp + 0x60], rcx
je 0x140002129
call fcn.140132750
jmp 0x14000212b
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r14, rax
add rbp, rax
lea r9, [rsp + 0x50]
mov qword [r9], rbp
mov qword [r9 + 8], r14
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [rbx + 8]
lea rcx, [rsp + 0xc8]
call fcn.1400c40e0
jmp 0x140001f71
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], r12
movaps xmmword [rbp], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14030f8e0]
lea r9, str.LogMessage
mov rcx, rbp
mov dl, 0x49
call fcn.1400c0640
mov rax, qword [rbp]
test rax, rax
jne 0x1400021d6
lea rcx, [rsp + 0xb0]
call fcn.1400ec480
jmp 0x140001e59
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x140001e0b
mov rcx, qword [rsp + 0xb8]
xor edx, edx
lea rbp, [rsp + 0x98]
mov qword [rbp], rdx
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rcx
lea r13, [rsp + 0xc8]
mov rcx, r13
mov rdx, rbp
call fcn.1400b02e0
movups xmm0, xmmword [rbp + 8]
movups xmmword [r13 + 8], xmm0
mov rcx, qword [r13 + 8]
mov edx, 0x15
call fcn.1400c0652
mov rbp, rax
movsxd r8, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
lea rdx, [rsp + 0xe0]
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], r8
mov rcx, r13
mov qword [rsp + 0x48], rdx
call fcn.1400ec6b0
mov r13, rax
mov qword [rsp + 0x38], rbp
xor eax, eax
cmp qword [rbp + 0x10], rax
jne 0x1400024ef
lea rax, [rsp + 0x4e8]
mov qword [rax], r12
mov qword [rax + 7], r12
mov byte [rax], 8
lea rcx, [rsp + 0x4e9]
cmp r13, 0x80
jae 0x14000241f
mov rbp, rax
mov byte [rcx], r13b
sub rbp, rax
add rbp, 2
mov rax, qword [rsp + 0x38]
mov r13, qword [rax]
mov r8d, ebp
mov rcx, qword [r13 + 0x18]
lea rax, [rcx + r8]
mov qword [rsp + 0x40], rax
cmp rax, qword [r13 + 0x10]
ja 0x14000250d
cmp ebp, 2
jne 0x1400024a3
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov qword [r13 + 0x18], rax
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], ebp
movzx eax, byte [rsp + 0x97]
mov r13, rax
test al, al
jns 0x1400022f7
mov r13, qword [rsp + 0x88]
mov rbp, qword [rsi + 0x118]
sub r13, rbp
jb 0x140002578
test al, al
jns 0x140002313
mov rbx, qword [rsp + 0x80]
cmp r13, 0xfffffffffffffff0
jae 0x14000257b
cmp r13, 0x17
jae 0x140002465
mov byte [rsp + 0xf7], r13b
test r13, r13
je 0x140002347
add rbx, rbp
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
mov r8, r13
call fcn.1401178b0
mov rax, qword [rsp + 0x48]
mov byte [rax + r13], 0
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xe0]
call fcn.1401c8ed0
mov rbx, rax
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x10], 0
jne 0x1400024fe
lea rax, [rsp + 0x4e8]
mov qword [rax], r12
mov qword [rax + 7], r12
mov byte [rax], 0x10
lea rcx, [rsp + 0x4e9]
cmp rbx, 0x80
jae 0x140002442
mov rbp, rax
mov byte [rcx], bl
sub rbp, rax
add rbp, 2
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
mov r8d, ebp
mov rcx, qword [rbx + 0x18]
lea r13, [rcx + r8]
cmp r13, qword [rbx + 0x10]
ja 0x140002522
cmp ebp, 2
jne 0x1400024b7
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rbx + 0x18], r13
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], ebp
cmp byte [rsp + 0xf7], 0
jns 0x140002400
mov rcx, qword [rsp + 0xe0]
call fcn.140112038
lea rcx, [rsp + 0xc8]
call fcn.1400ec492
lea rcx, [rsp + 0x98]
call fcn.1400ec492
jmp 0x1400021b6
mov rbp, r13
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr r13, 7
inc rcx
cmp rbp, 0x3fff
ja 0x14000241f
lea rbp, [rcx - 1]
jmp 0x14000228f
mov rbp, rbx
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr rbx, 7
inc rcx
cmp rbp, 0x3fff
ja 0x140002442
lea rbp, [rcx - 1]
jmp 0x1400023a3
lea rcx, [r13 + 0x10]
and rcx, 0xfffffffffffffff0
mov qword [rsp + 0x40], rcx
call fcn.140112048
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
bts rax, 0x3f
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], r13
jmp 0x140002334
cmp ebp, 3
jne 0x1400024cb
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x1400022c4
cmp ebp, 3
jne 0x1400024dd
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x1400023d2
lea rdx, [rsp + 0x4e8]
call fcn.1401178b0
jmp 0x1400022cf
lea rdx, [rsp + 0x4e8]
call fcn.1401178b0
jmp 0x1400023dd
mov rcx, qword [rsp + 0x38]
call fcn.1400bc66a
jmp 0x140002265
mov rcx, qword [rsp + 0x38]
call fcn.1400bc66a
jmp 0x140002379
lea rdx, [rsp + 0x4e8]
mov rcx, r13
call fcn.1400afd26
jmp 0x1400022d8
lea rdx, [rsp + 0x4e8]
mov rcx, rbx
call fcn.1400afd26
jmp 0x1400023e1
call fcn.140196441
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
mov qword [rcx], rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rcx
lea rcx, [0x140313dd0]
lea r8, [0x140111420]
call fcn.1400cc108
jmp 0x140001dbe
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.1401573b4
int3