Function at 0x1400afe20
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402f2080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov r14, rcx
mov byte [rcx + 0x2a8], 1
mov rcx, qword [rcx + 0x1f8]
add rcx, 0x10
mov qword [rbp - 1], rcx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov byte [rbp + 7], 1
mov rax, qword [r14 + 0x1f8]
mov r15, qword [rbx]
lea rbx, [rax + 0x50]
mov rcx, rbx
call fcn.1400c7cf0
mov rdx, qword [rbx + 8]
mov r8, r15
cmp qword [rbx + 0x10], rdx
je 0x1400afea9
call fcn.1400c7d70
add qword [rbx + 8], 0x50
jmp 0x1400afeb1
mov rcx, rbx
call fcn.1400c7de0
mov rax, qword [r14 + 0x1f8]
mov dword [rax + 0x48], 3
xor eax, eax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov rax, qword [r14 + 0x1f8]
mov qword [rbp - 0x59], rax
mov rbx, qword [r14 + 0x200]
test rbx, rbx
je 0x1400afee8
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rbx
test rbx, rbx
je 0x1400afefd
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x59]
mov rax, qword [rax + 0x40]
mov qword [rbp - 0x29], rax
xor r12d, r12d
mov qword [rbp - 0x21], r12
lea esi, [r12 - 1]
test rbx, rbx
je 0x1400aff41
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400aff41
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400aff41
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, qword [r14 + 0x2b0]
mov rcx, qword [rax]
lea r8, [rbp - 0x39]
mov rdx, qword [rcx + 0x18]
lea rcx, [rbp + 0x17]
call fcn.1400c43a0
nop
mov dword [rbp + 0x27], r12d
mov rdi, qword [rbp + 0x17]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x27]
mov r8d, dword [r15 + 0x38]
mov rdx, qword [r15 + 0x30]
mov rcx, qword [r14 + 0x290]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test ebx, ebx
jne 0x1400aff9d
cmp eax, 0x3e5
je 0x1400affa7
cmp eax, 0xea
je 0x1400affa7
cmp dword [rbp + 0x27], 0
je 0x1400b0077
test rdi, rdi
je 0x1400affb8
mov rdx, rdi
mov rcx, qword [rbp + 0x1f]
call fcn.140078140
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
cmp byte [r14 + 0x94], 0
jne 0x1400b00ef
call fcn.1400a33e0
mov ecx, dword [r14 + 0x98]
sub ecx, eax
mov eax, ecx
imul rcx, rax, 0x3e8
mov qword [rbp - 0x61], rcx
lea rdx, [rbp - 0x61]
mov rcx, qword [r14 + 0x228]
call fcn.1400b82e0
mov rax, qword [r14 + 0x1f8]
mov qword [rbp - 0x49], rax
mov rbx, qword [r14 + 0x200]
test rbx, rbx
je 0x1400b0018
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rbx
test rbx, rbx
je 0x1400b002d
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x49]
mov rax, qword [rax + 0x40]
mov qword [rbp - 9], rax
test rbx, rbx
je 0x1400b0065
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400b0065
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400b0065
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
lea rdx, [rbp - 0x19]
mov rcx, qword [r14 + 0x228]
call fcn.1400c1820
jmp 0x1400b00ef
test rdi, rdi
je 0x1400b00f3
mov r14d, 1
mov dword [rdi + 0x30], r14d
mov qword [rdi], r12
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r12d
mov r9, rdi
xor edx, edx
lea r8d, [r14 + 1]
mov rbx, qword [rbp + 0x1f]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1400b00e7
lea rcx, [rbx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov qword [rdi + 0x20], r12
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x1400b00cb
mov qword [rax + 0x20], rdi
jmp 0x1400b00d2
mov qword [rbx + 0x88], rdi
mov qword [rbx + 0x90], rdi
xchg dword [rbx + 0x50], r14d
lea rcx, [rbx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov rdi, qword [rbp + 0x17]
test rdi, rdi
je 0x1400b0122
mov qword [rbp - 0x69], r12
xor r9d, r9d
mov r8, r12
mov rdx, rdi
xor ecx, ecx
call qword [rdi + 0x28]
mov rax, qword [rbp + 0x1f]
lock xadd dword [rax + 0x30], esi
cmp esi, 1
jne 0x1400b0122
mov rcx, qword [rbp + 0x1f]
call fcn.140077fe0
nop
mov rcx, qword [rbp - 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140146480
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret