Function at 0x1400085c0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 0x10]
mov rdi, rcx
add rcx, 0x10
call qword [rax]
xor ebp, ebp
mov rcx, rdi
mov qword [rdi + 0x18], rbp
mov rax, qword [rdi]
call qword [rax]
mov qword [rdi + 8], rbp
cmp qword [rdi + 0x30], rbp
jne 0x14000864e
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400086e7
add rdi, 0x40
cmp qword [rdi + 0x18], 8
jb 0x140008614
mov rdi, qword [rdi]
mov rax, qword [rcx]
lea rdx, str.Invalid_mapping_name
mov qword [rsp + 0x30], rdx
lea r8, str.d:jenkinsworkspace_n_mbvpntunnel_srcpackagesmbcommon.3.2.0.1129_build_nativeincludeipcmapping.h
mov qword [rsp + 0x28], rdi
lea rdx, str.mb::common::ipc::IPCMapping_struct_WIREGUARD_KEYPAIR_IPC_::CreateMappingCommon
mov r9d, reloc.WS2_32.dll_WSACleanup
mov dword [rsp + 0x20], 2
call qword [rax + 0x18]
xor al, al
jmp 0x1400087a6
cmp qword [rdi + 0x38], 8
lea r8, [rdi + 0x20]
jb 0x14000865c
mov r8, qword [r8]
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdx, qword [rdi]
mov rcx, rdi
mov rbx, rax
call qword [rdx]
lea rcx, [rbx + 1]
mov qword [rdi + 8], rbx
test rcx, 0xfffffffffffffffe
jne 0x1400086ee
mov rbx, qword [rdi + 0x60]
test rbx, rbx
je 0x1400086e7
cmp qword [rdi + 0x58], 8
lea rsi, [rdi + 0x40]
jb 0x14000869a
mov rsi, qword [rsi]
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x60]
lea r8, str.d:jenkinsworkspace_n_mbvpntunnel_srcpackagesmbcommon.3.2.0.1129_build_nativeincludeipcmapping.h
mov dword [rsp + 0x40], eax
lea rdx, str.mb::common::ipc::IPCMapping_struct_WIREGUARD_KEYPAIR_IPC_::CreateMappingCommon
lea rax, str.opening
mov r9d, 0x7d
mov qword [rsp + 0x38], rax
lea rax, str.Error__ls_IPC_mapping._Error__u
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 2
call qword [rbx + 0x20]
xor al, al
jmp 0x1400087a6
xor r9d, r9d
mov qword [rsp + 0x20], 0x41
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, rbp
jne 0x1400087a4
mov rbx, qword [rdi + 0x60]
test rbx, rbx
je 0x140008786
cmp qword [rdi + 0x58], 8
mov qword [rsp + 0x60], r14
lea r14, [rdi + 0x40]
jb 0x140008740
mov r14, qword [r14]
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x60]
lea r8, str.d:jenkinsworkspace_n_mbvpntunnel_srcpackagesmbcommon.3.2.0.1129_build_nativeincludeipcmapping.h
mov dword [rsp + 0x38], eax
lea rdx, str.mb::common::ipc::IPCMapping_struct_WIREGUARD_KEYPAIR_IPC_::CreateMappingCommon
lea rax, str.Error_mapping_view_of_IPC_mapping._Error__u
mov r9d, 0x85
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 2
call qword [rbx + 0x20]
mov r14, qword [rsp + 0x60]
mov rax, qword [rdi + 0x10]
lea rcx, [rdi + 0x10]
call qword [rax]
mov qword [rdi + 0x18], rbp
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax]
xor al, al
mov qword [rdi + 8], rbp
jmp 0x1400087a6
mov al, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret