Function at 0x140028020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400a3310]
xor rax, rsp
mov qword [rbp - 8], rax
mov r13, r9
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov edi, r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea r14, [rcx + 0xa0]
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x10], r12b
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140028083
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov byte [rbp - 0x10], 1
mov eax, dword [rsi + 0xf0]
cmp eax, 1
jne 0x14002809c
mov ebx, 0x8004da74
jmp 0x140028206
cmp eax, 2
jne 0x1400280ab
mov ebx, 0x8004da99
jmp 0x140028206
cmp byte [rsi + 0xf5], r12b
je 0x140028201
cmp byte [rsi + 0xf6], r12b
jne 0x140028201
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15, rax
test rax, rax
jne 0x140028127
lea rax, str.FAILED:_event___nullptr
mov qword [rsp + 0x30], rax
lea rax, str.event___nullptr
mov qword [rsp + 0x28], rax
lea rax, str.OplockedFileForRead::Read
mov qword [rsp + 0x20], rax
mov r9d, 0x103
lea r8, str.D:dbs_shodct0401_175626_2cmdiclientonedriveProductSyncEngineincludeFileSystemOplockedFileForRead.cpp
xor edx, edx
lea rcx, str.589365e1_0fa6_4e71_a0cd_ab6751a48ca9
call qword [sym.imp.LoggingPlatform.DLL_void___cdecl_OneDriveAssertWorker_wchar_t_const____ptr64__enum_OneDriveAssertType__wchar_t_const____ptr64__unsigned_int__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64_]
mov rax, r15
or rax, 1
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x68]
mov dword [rbp - 0x30], eax
sar rax, 0x20
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x20], r12d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
mov r12d, dword [rbp + 0x60]
mov r8d, r12d
mov rdx, rbx
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x8004da75
test ebx, ebx
jne 0x1400281bb
cmp eax, 0x3e5
jne 0x1400281a4
lea r9d, [rbx + 1]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1400281bb
mov ecx, 0x8004da75
cmp eax, 0x26
jne 0x1400281ad
mov edi, ecx
jmp 0x1400281bb
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, dword [rbp - 0x20]
mov qword [r13], rax
mov ebx, 0x8004da75
test edi, edi
js 0x1400281d2
cmp dword [rbp - 0x20], r12d
cmovne edi, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, 0x80000000
lea edx, [rdi + rax]
test eax, edx
jne 0x1400281fd
cmp edi, ebx
je 0x1400281fd
mov rcx, rsi
call fcn.140028250
mov eax, edi
jmp 0x140028211
mov ebx, 0x8004da0c
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400652d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret