Function at 0x1401b2ef0
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, 0xe0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rsi, rcx
mov byte [rcx + 0x288], 1
xor eax, eax
mov qword [rbp + 0x1f], rax
mov rcx, qword [rcx + 0x1d8]
add rcx, 0x10
mov qword [rbp + 0x17], rcx
call fcn.1401e619c
test eax, eax
je 0x1401b2f56
mov ecx, eax
call fcn.1401e5ae4
mov byte [rbp + 0x1f], 1
mov r15, qword [r15]
mov rbx, qword [rsi + 0x1d8]
lea rcx, [rbx + 0x78]
call fcn.1401c4a80
mov rdx, qword [rbx + 0x80]
mov r8, r15
cmp qword [rbx + 0x88], rdx
je 0x1401b2f8f
call fcn.1401c4b00
add qword [rbx + 0x80], 0x50
jmp 0x1401b2f98
lea rcx, [rbx + 0x78]
call fcn.1401c4b90
mov rax, qword [rsi + 0x1d8]
mov dword [rax + 0x70], 3
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x1401b2fc7
lock inc dword [rcx + 8]
mov rcx, qword [rsi + 0x1e0]
mov rax, qword [rsi + 0x1d8]
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rcx
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x29]
call fcn.140176e80
nop
mov rcx, qword [rsi + 0x290]
mov rdx, qword [rcx]
mov r8, rax
mov rdx, qword [rdx + 0x18]
lea rcx, [rbp + 7]
call fcn.1401ca450
nop
mov r14d, 0xffffffff
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1401b3048
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401b3048
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14004487d.0]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401b3048
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
xor r12d, r12d
mov dword [rbp - 1], r12d
mov rdi, qword [rbp + 7]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 1]
mov r8d, dword [r15 + 0x38]
mov rdx, qword [r15 + 0x30]
mov rcx, qword [rsi + 0x270]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test ebx, ebx
jne 0x1401b308e
cmp eax, 0x3e5
je 0x1401b3098
cmp eax, 0xea
je 0x1401b3098
cmp dword [rbp - 1], r12d
je 0x1401b316e
test rdi, rdi
je 0x1401b30a9
mov rdx, rdi
mov rcx, qword [rbp + 0xf]
call fcn.140175730
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
cmp byte [rsi + 0x74], r12b
jne 0x1401b3245
call fcn.1401960b0
mov ecx, dword [rsi + 0x78]
sub ecx, eax
mov eax, ecx
imul rcx, rax, 0xf4240
mov qword [rbp - 0x79], rcx
lea rdx, [rbp - 0x79]
mov rcx, qword [rsi + 0x208]
call fcn.1401ba270
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x1401b30f9
lock inc dword [rcx + 8]
mov rcx, qword [rsi + 0x1e0]
mov rax, qword [rsi + 0x1d8]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rcx
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140176f60
nop
mov rdx, rax
mov rcx, qword [rsi + 0x208]
call fcn.1401c22a0
nop
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x1401b3169
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401b3169
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14004487d.0]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401b3169
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
jmp 0x1401b3245
mov edx, 0x10
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rbx, [0x140467878]
mov eax, dword [rdx + rcx]
cmp dword [0x140467838], eax
jle 0x1401b31d3
lea rcx, [0x140467838]
call fcn.140202ac8
cmp dword [0x140467838], 0xffffffff
jne 0x1401b31d3
mov qword [0x140467880], rbx
lea rax, vtable.asio::detail::system_category.0
mov qword [0x140467878], rax
lea rcx, [0x14029b470]
call fcn.140202ed0
lea rcx, [0x140467838]
call fcn.140202a68
test rdi, rdi
je 0x1401b3248
mov esi, 1
mov dword [rdi + 0x30], esi
mov qword [rdi], rbx
mov dword [rdi + 0x10], r15d
mov dword [rdi + 0x14], r12d
mov r9, rdi
xor edx, edx
lea r8d, [rsi + 1]
mov rbx, qword [rbp + 0xf]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1401b3241
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rdi + 0x20], r12
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1401b3226
mov qword [rax + 0x20], rdi
jmp 0x1401b322d
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0x98], rdi
xchg dword [rbx + 0x58], esi
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0xf], r12
mov rdi, r12
test rdi, rdi
je 0x1401b326f
mov rcx, rdi
call fcn.140174d80
mov rax, qword [rbp + 0xf]
lock xadd dword [rax + 0x30], r14d
cmp r14d, 1
jne 0x1401b326f
mov rcx, qword [rbp + 0xf]
call fcn.140175520
nop
mov rcx, qword [rbp + 0x17]
call fcn.1401e61c0
test eax, eax
je 0x1401b3284
mov ecx, eax
call fcn.1401e5ae4
nop
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret