Function at 0x1400e5f80
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
sub rsp, 0x88
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx r13d, r9b
mov r12, r8
mov rbp, rdx
mov r14, rcx
test rcx, rcx
jne 0x1400e5fba
mov eax, 0xc000000d
jmp 0x1400e62b3
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x68], r15
call fcn.14002c3f0
mov qword [rsp + 0x38], r14
lea rcx, str.VerifyFile_attempting_to_open__ws
mov qword [rsp + 0x30], rcx
lea rsi, str.MbCommonSigVerify
mov qword [rsp + 0x28], rsi
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonFileVerify.cpp
mov r10, qword [rax]
lea rdx, str.VerifyFile
mov r9d, 0x114
mov dword [rsp + 0x20], 5
mov rcx, rax
call qword [r10 + 0x20]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, r14
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e6099
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
mov dword [rsp + 0x38], ebx
lea rcx, str.File_Not_Found____x
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonFileVerify.cpp
mov qword [rsp + 0x28], rsi
lea rdx, str.VerifyFile
mov r10, qword [rax]
mov r9d, 0x11a
mov rcx, rax
mov dword [rsp + 0x20], 5
call qword [r10 + 0x20]
mov eax, ebx
jmp 0x1400e62a1
xor edx, edx
mov qword [rsp + 0x70], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xf8
ja 0x1400e6101
call fcn.14002c3f0
lea rcx, str.File_Size_Error
mov r9d, 0x122
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonFileVerify.cpp
mov qword [rsp + 0x28], rsi
lea rdx, str.VerifyFile
mov r10, qword [rax]
mov rcx, rax
mov dword [rsp + 0x20], 5
call qword [r10 + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xc000003c
jmp 0x1400e629c
mov ecx, edi
mov rax, 0xffffffffffffffff
add ecx, 1
cmovb rcx, rax
call fcn.14016cba4
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x1400e6174
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14002c3f0
lea rcx, str.Error_allocating_memory_for_file_data
mov r9d, 0x12c
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonFileVerify.cpp
lea rcx, str.MbCommonSigVerify
mov r10, qword [rax]
lea rdx, str.VerifyFile
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
mov eax, 0xc000009a
jmp 0x1400e629c
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e6236
cmp dword [rsp + 0x50], edi
jne 0x1400e6236
movzx eax, byte [rsp + 0xd0]
mov r9, r12
mov byte [rsp + 0x30], al
mov r8, rbp
mov edx, edi
mov byte [rsp + 0x28], r13b
mov rcx, rsi
call fcn.1400e62d0
mov edi, eax
test eax, eax
je 0x1400e6221
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
test rbp, rbp
je 0x1400e61d9
movzx r15d, byte [rbp]
mov dword [rsp + 0x48], r15d
lea rcx, str._ws_verification_status____x___IsMbam___u
mov dword [rsp + 0x40], edi
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonFileVerify.cpp
mov qword [rsp + 0x38], r14
lea rdx, str.VerifyFile
mov qword [rsp + 0x30], rcx
mov r9d, 0x147
lea rcx, str.MbCommonSigVerify
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 3
call r10
mov rcx, rsi
call fcn.14016046c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1400e629c
call fcn.14002c3f0
lea rcx, str.Read_file_Error
mov r9d, 0x136
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonFileVerify.cpp
lea rcx, str.MbCommonSigVerify
mov r10, qword [rax]
lea rdx, str.VerifyFile
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [r10 + 0x20]
mov rcx, rsi
call fcn.14016046c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400e629c
movzx eax, ax
or eax, 0x80070000
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014f4f0
add rsp, 0x88
pop r14
pop r13
pop r12
pop rbp
ret