Function at 0x140054040
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [rcx + 0x10]
mov rdi, rcx
add rcx, 0x10
movzx ebp, dl
call qword [rax]
xor r14d, r14d
mov rcx, rdi
mov qword [rdi + 0x18], r14
mov rax, qword [rdi]
call qword [rax]
mov qword [rdi + 8], r14
cmp qword [rdi + 0x30], r14
jne 0x1400540d8
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400541b1
mov rax, qword [rcx]
add rdi, 0x40
cmp qword [rdi + 0x18], 7
jbe 0x1400540a1
mov rdi, qword [rdi]
lea rdx, str.Invalid_mapping_name
mov r9d, reloc.WS2_32.dll_WSACleanup
mov qword [rsp + 0x30], rdx
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesmbcommon_vs2022.4.2.0.85_build_nativeincludeIPCMapping.h
mov qword [rsp + 0x28], rdi
lea rdx, str.mb::common::ipc::IPCMapping_struct_IPC_DIGICERTBRIDGE_::CreateMappingCommon
mov dword [rsp + 0x20], 2
call qword [rax + 0x18]
xor al, al
jmp 0x140054264
lea r8, [rdi + 0x20]
test bpl, bpl
je 0x14005410d
cmp qword [r8 + 0x18], 7
jbe 0x1400540eb
mov r8, qword [r8]
mov qword [rsp + 0x28], r8
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 0xc3c
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
jmp 0x140054122
cmp qword [r8 + 0x18], 7
jbe 0x140054117
mov r8, qword [r8]
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rbx, rax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax]
lea rax, [rbx + 1]
mov qword [rdi + 8], rbx
test rax, 0xfffffffffffffffe
jne 0x1400541b8
mov rbx, qword [rdi + 0x60]
test rbx, rbx
je 0x1400541b1
mov rax, qword [rbx]
mov rsi, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rdi, 0x40
cmp qword [rdi + 0x18], 7
jbe 0x140054161
mov rdi, qword [rdi]
mov dword [rsp + 0x40], eax
lea rcx, str.creating
test bpl, bpl
lea rax, str.Error__ls_IPC_mapping._Error__u
lea rdx, str.opening
mov r9d, 0x7d
cmovne rdx, rcx
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesmbcommon_vs2022.4.2.0.85_build_nativeincludeIPCMapping.h
mov qword [rsp + 0x38], rdx
mov rcx, rbx
mov qword [rsp + 0x30], rax
lea rdx, str.mb::common::ipc::IPCMapping_struct_IPC_DIGICERTBRIDGE_::CreateMappingCommon
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 2
call rsi
xor al, al
jmp 0x140054264
xor r9d, r9d
mov qword [rsp + 0x20], 0xc3c
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 0x10]
mov rbx, rax
call qword [rdx]
mov qword [rdi + 0x18], rbx
cmp rbx, r14
jne 0x140054262
mov rbx, qword [rdi + 0x60]
test rbx, rbx
je 0x140054244
mov rax, qword [rbx]
mov rbp, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi + 0x58], 7
lea rdx, [rdi + 0x40]
jbe 0x14005420e
mov rdx, qword [rdx]
mov dword [rsp + 0x38], eax
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesmbcommon_vs2022.4.2.0.85_build_nativeincludeIPCMapping.h
lea rax, str.Error_mapping_view_of_IPC_mapping._Error__u
mov r9d, 0x85
mov qword [rsp + 0x30], rax
mov rcx, rbx
mov qword [rsp + 0x28], rdx
lea rdx, str.mb::common::ipc::IPCMapping_struct_IPC_DIGICERTBRIDGE_::CreateMappingCommon
mov dword [rsp + 0x20], 2
call rbp
mov rax, qword [rdi + 0x10]
lea rcx, [rdi + 0x10]
call qword [rax]
mov qword [rdi + 0x18], r14
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax]
xor al, al
mov qword [rdi + 8], r14
jmp 0x140054264
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret