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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rcx]
lea r13, [rcx + 0x68]
mov rbx, rcx
mov r12, r8
mov rcx, r13
mov r15, rdx
mov rbp, rdx
mov rdi, r8
mov qword [rax + 0x40], 0
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx]
cmp dword [rax + 0x4c], 0
je 0x14000a12f
mov ecx, dword [rax + 0x4c]
cmp rdi, rcx
jbe 0x14000a10e
sub rbp, rcx
add rbp, rdi
mov edi, ecx
mov edx, dword [rbx + 0x98]
lea rax, [rdx + rdi]
cmp rax, rcx
jbe 0x14000a12f
sub rdx, rcx
lea rcx, [rbx + 0x90]
add rdx, rdi
call fcn.140009be0
test rdi, rdi
je 0x14000a21f
mov rax, qword [rbx + 0xb0]
lea rcx, [rax + rdi]
cmp rcx, rax
jb 0x14000a21f
cmp rcx, qword [rbx + 0xa0]
jbe 0x14000a1d2
mov rax, qword [rbx + 0xa8]
dec rax
lea rsi, [rax + rcx]
cmp rsi, rcx
jb 0x14000a21f
mov r8, qword [rbx + 0xb8]
not rax
mov rcx, qword [rbx + 0x90]
and rsi, rax
xor edx, edx
test r8, r8
jne 0x14000a1ad
mov r8, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14000a1bf
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x14000a1bf
mov r9, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
nop dword [rax + rax]
mov r14, rax
test r14, r14
je 0x14000a21f
mov qword [rbx + 0xb8], r14
mov qword [rbx + 0xa0], rsi
mov rcx, qword [rbx + 0xb0]
mov r8, rdi
add rcx, qword [rbx + 0xb8]
mov rdx, rbp
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbx + 0xb0]
or rdx, 0xffffffffffffffff
lea rax, [rcx + rdi]
cmp rax, rcx
cmovae rdx, rax
mov qword [rbx + 0xb0], rdx
jb 0x14000a21f
mov rax, qword [rbx + 0x98]
cmp rax, rdx
cmovbe rax, rdx
mov qword [rbx + 0x98], rax
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 0xb8]
mov rcx, qword [rbx]
mov qword [rcx + 0x40], rax
mov eax, dword [rbx + 0x98]
mov rcx, qword [rbx]
mov dword [rcx + 0x48], eax
mov rax, qword [rbx]
test byte [rax + 0x50], 1
je 0x14000a260
mov rcx, r15
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
nop dword [rax + rax]
mov rax, qword [rbx]
mov edi, 4
test byte [rax + 0x50], dil
je 0x14000a2ff
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx]
lea rcx, [rbx + 0xc0]
and qword [rsp + 0x30], 0
lea r8d, [rdi - 3]
mov edx, edi
mov r9d, dword [rax + 0x50]
xor r9d, 8
shr r9d, 3
shl r9d, 0x1f
mov dword [rsp + 0x28], r9d
xor r9d, r9d
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000a2f0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, r12d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov rcx, rbx
call sub.api_ms_win_core_handle_l1_1_0.dll_CloseHandle
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret