Function at 0x1401b2710
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rsp + 0x138], rbx
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r8
mov r15, rdx
mov rsi, rcx
mov byte [rcx + 0x288], 1
xor eax, eax
mov qword [rbp + 0xf], rax
mov rcx, qword [rcx + 0x1d8]
add rcx, 0x10
mov qword [rbp + 7], rcx
call fcn.1401e619c
test eax, eax
je 0x1401b277b
mov ecx, eax
call fcn.1401e5ae4
mov byte [rbp + 0xf], 1
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 0x1401b27b1
call fcn.1401c4b00
add qword [rbx + 0x80], 0x50
jmp 0x1401b27ba
lea rcx, [rbx + 0x78]
call fcn.1401c4b90
mov rax, qword [rsi + 0x1d8]
mov dword [rax + 0x70], 4
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x1401b27e9
lock inc dword [rcx + 8]
mov rcx, qword [rsi + 0x1e0]
mov rax, qword [rsi + 0x1d8]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x79], rcx
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x39]
call fcn.140176e80
nop
mov rcx, qword [rsi + 0x290]
mov rdx, qword [rcx]
mov r8, rax
mov rdx, qword [rdx + 0x18]
lea rcx, [rbp - 9]
call fcn.1401ca450
nop
mov r14d, 0xffffffff
mov rbx, qword [rbp - 0x31]
test rbx, rbx
je 0x1401b286c
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401b286c
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 0x1401b286c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
xor r13d, r13d
mov dword [rbp - 0x11], r13d
mov rdi, qword [rbp - 9]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x11]
mov r8d, r12d
mov rdx, qword [r15 + 0x30]
mov rcx, qword [rsi + 0x270]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test ebx, ebx
jne 0x1401b28b1
cmp eax, 0x3e5
je 0x1401b28bb
cmp eax, 0xea
je 0x1401b28bb
cmp dword [rbp - 0x11], r13d
je 0x1401b2993
test rdi, rdi
je 0x1401b28cc
mov rdx, rdi
mov rcx, qword [rbp - 1]
call fcn.140175730
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
cmp byte [rsi + 0x74], r13b
jne 0x1401b2a6a
call fcn.1401960b0
mov ecx, dword [rsi + 0x78]
sub ecx, eax
mov eax, ecx
imul rcx, rax, 0xf4240
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 0x208]
call fcn.1401ba270
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x1401b291e
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 - 0x51]
call fcn.140176f60
nop
mov rdx, rax
mov rcx, qword [rsi + 0x208]
call fcn.1401c22a0
nop
mov rbx, qword [rbp - 0x49]
test rbx, rbx
je 0x1401b298e
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401b298e
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 0x1401b298e
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
jmp 0x1401b2a6a
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 0x1401b29f8
lea rcx, [0x140467838]
call fcn.140202ac8
cmp dword [0x140467838], 0xffffffff
jne 0x1401b29f8
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 0x1401b2a6d
mov esi, 1
mov dword [rdi + 0x30], esi
mov qword [rdi], rbx
mov dword [rdi + 0x10], r15d
mov dword [rdi + 0x14], r13d
mov r9, rdi
xor edx, edx
lea r8d, [rsi + 1]
mov rbx, qword [rbp - 1]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1401b2a66
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rdi + 0x20], r13
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1401b2a4b
mov qword [rax + 0x20], rdi
jmp 0x1401b2a52
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 - 1], r13
mov rdi, r13
test rdi, rdi
je 0x1401b2a94
mov rcx, rdi
call fcn.140174d80
mov rax, qword [rbp - 1]
lock xadd dword [rax + 0x30], r14d
cmp r14d, 1
jne 0x1401b2a94
mov rcx, qword [rbp - 1]
call fcn.140175520
nop
mov rcx, qword [rbp + 7]
call fcn.1401e61c0
test eax, eax
je 0x1401b2aa9
mov ecx, eax
call fcn.1401e5ae4
nop
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0x138]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret