Function at 0x140018360
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400650c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp + 0x60]
xor edi, edi
cmp qword [rdx], 0xffffffffffffffff
mov r12, r9
mov r13, rdx
jne 0x14001842d
mov rcx, qword [0x140065d80]
lea r14, [0x140065d78]
movabs r15, 0x4d54ee85da812030
mov dword [rbp - 0x4c], edi
add rcx, r15
cmp rcx, 1
jbe 0x1400183d2
mov rax, qword [0x140065d78]
mov edx, 0x2719
mov rcx, r14
call qword [rax + 0x30]
jmp 0x1400183d4
mov al, 1
movzx eax, al
add rax, 2
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x40], rax
movsd xmm1, qword [rbp - 0x40]
mov qword [rbp - 0x48], r14
movaps xmm2, xmm1
movups xmm3, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm3
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
cmp rax, 2
jb 0x14001841e
and eax, 1
lea rcx, str.C:cpp_projects_vcpkginstalledx64_windowsinclude_boost_asiodetailimplwin_iocp_handle_service.ipp
or rax, rcx
mov qword [rbp - 0x40], rax
movsd xmm2, qword [rbp - 0x40]
movups xmmword [rbx], xmm3
xor eax, eax
movsd qword [rbx + 0x10], xmm2
jmp 0x14001874d
cmp qword [r9 + 8], 0
jne 0x14001844f
xorps xmm0, xmm0
mov qword [rbp - 0x40], rdi
movups xmmword [rbx], xmm0
xor eax, eax
movsd xmm0, qword [rbp - 0x40]
movsd qword [rbx + 0x10], xmm0
jmp 0x14001874d
xor r9d, r9d
mov qword [rsp + 0xc0], rsi
xor r8d, r8d
mov qword [rbp - 0x30], rdi
xor ecx, ecx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rdi
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x18], rax
movabs r15, 0x4d54ee85da812030
lea r14, [0x140065d78]
test rax, rax
je 0x140018499
or rax, 1
mov qword [rbp - 0x18], rax
jmp 0x1400184ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [0x140065d80]
mov esi, eax
add rdx, r15
mov dword [rbp - 0x4c], edi
cmp rdx, 1
jbe 0x1400184c6
mov r8, qword [0x140065d78]
mov edx, eax
mov rcx, r14
call qword [r8 + 0x30]
jmp 0x1400184cb
test esi, esi
setne al
movzx eax, al
mov dword [rbp - 0x50], esi
add rax, 2
mov qword [rbp - 0x48], r14
movups xmm0, xmmword [rbp - 0x50]
mov qword [rbp - 0x40], rax
movsd xmm1, qword [rbp - 0x40]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rcx, qword [rbx + 0x10]
mov rax, rcx
and eax, 1
je 0x14001852d
cmp rcx, 1
jne 0x140018504
cmp dword [rbx], edi
je 0x14001852d
movsd xmm0, qword [rbx + 0x10]
movups xmm1, xmmword [rbx]
cmp rcx, 2
jb 0x140018525
lea rcx, str.C:cpp_projects_vcpkginstalledx64_windowsinclude_boost_asiodetailimplwin_iocp_handle_service.ipp
or rax, rcx
mov qword [rbp - 0x40], rax
movsd xmm0, qword [rbp - 0x40]
movups xmmword [rbx], xmm1
jmp 0x14001872e
mov r8d, dword [r12 + 8]
lea rax, [rbp - 0x30]
mov rdx, qword [r12]
xor r9d, r9d
mov rcx, qword [r13]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001862e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x3e5
je 0x14001862e
cmp eax, 0xea
je 0x14001862e
mov dword [rbp - 0x4c], edi
cmp eax, 0x26
jne 0x1400185b5
mov rcx, qword [0x140065d48]
lea r14, [0x140065d40]
add rcx, r15
cmp rcx, 1
jbe 0x1400185aa
lea edx, [rax - 0x24]
mov rcx, r14
mov rax, qword [0x140065d40]
call qword [rax + 0x30]
mov dword [rbp - 0x50], 2
jmp 0x1400185de
mov al, 1
mov dword [rbp - 0x50], 2
jmp 0x1400185de
mov rcx, qword [0x140065d80]
add rcx, r15
cmp rcx, 1
jbe 0x1400185d6
mov rax, qword [0x140065d78]
mov edx, esi
mov rcx, r14
call qword [rax + 0x30]
jmp 0x1400185db
test esi, esi
setne al
mov dword [rbp - 0x50], esi
movzx eax, al
add rax, 2
mov qword [rbp - 0x48], r14
movups xmm0, xmmword [rbp - 0x50]
mov qword [rbp - 0x40], rax
movsd xmm1, qword [rbp - 0x40]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
movsd xmm0, qword [rbx + 0x10]
movups xmm1, xmmword [rbx]
cmp rax, 2
jb 0x140018626
and eax, 1
lea rcx, str.C:cpp_projects_vcpkginstalledx64_windowsinclude_boost_asiodetailimplwin_iocp_handle_service.ipp
or rax, rcx
mov qword [rbp - 0x40], rax
movsd xmm0, qword [rbp - 0x40]
movups xmmword [rbx], xmm1
jmp 0x14001872e
mov rcx, qword [r13]
lea r8, [rbp - 0x38]
mov r9d, 1
mov dword [rbp - 0x38], edi
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14001871c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x4c], edi
mov esi, eax
cmp eax, 0x26
jne 0x14001869c
mov rdx, qword [0x140065d48]
lea r14, [0x140065d40]
add rdx, r15
cmp rdx, 1
jbe 0x140018691
lea edx, [rax - 0x24]
mov rcx, r14
mov rax, qword [0x140065d40]
call qword [rax + 0x30]
mov dword [rbp - 0x50], 2
jmp 0x1400186c5
mov al, 1
mov dword [rbp - 0x50], 2
jmp 0x1400186c5
mov rcx, qword [0x140065d80]
add rcx, r15
cmp rcx, 1
jbe 0x1400186bd
mov rax, qword [0x140065d78]
mov edx, esi
mov rcx, r14
call qword [rax + 0x30]
jmp 0x1400186c2
test esi, esi
setne al
mov dword [rbp - 0x50], esi
movzx eax, al
add rax, 2
mov qword [rbp - 0x48], r14
movups xmm0, xmmword [rbp - 0x50]
mov qword [rbp - 0x40], rax
movsd xmm1, qword [rbp - 0x40]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
movsd xmm0, qword [rbx + 0x10]
movups xmm1, xmmword [rbx]
cmp rax, 2
jb 0x14001870d
and eax, 1
lea rcx, str.C:cpp_projects_vcpkginstalledx64_windowsinclude_boost_asiodetailimplwin_iocp_handle_service.ipp
or rax, rcx
mov qword [rbp - 0x40], rax
movsd xmm0, qword [rbp - 0x40]
cmp esi, 0xea
movups xmmword [rbx], xmm1
cmove edi, dword [rbp - 0x38]
jmp 0x14001872e
xorps xmm0, xmm0
mov qword [rbp - 0x40], rdi
mov edi, dword [rbp - 0x38]
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x18]
mov rsi, qword [rsp + 0xc0]
movsd qword [rbx + 0x10], xmm0
test rcx, rcx
je 0x14001874a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001ede0
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret