Function at 0x1400e94e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x60], ebx
call fcn.14001dd40
mov rcx, rax
call fcn.1400aad70
cmp eax, 0xc
jb 0x1400e998c
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
lea rdi, vtable.mb::common::system::ScopedAny_struct_SC_HANDLE______ptr64__int____cdecl___struct_SC_HANDLE______ptr64___int___cdecl_CloseServiceHandle_struct_SC_HANDLE______ptr64___0__0__0_.0
mov qword [rbp - 8], rdi
mov qword [rbp], rax
lea r12, str.mbamelam
test rax, rax
je 0x1400e97d9
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov r8d, 0x2000000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x1400e95f6
test rsi, rsi
je 0x1400e98db
mov rcx, qword [rsi]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r12
lea rax, str.Unable_to_open__ls_service._Error:__u
mov qword [rsp + 0x30], rax
lea rax, str.Elam
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0x5b5
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonElamUtils.cpp
lea rdx, str.mb::common::elam::ElamDriverNeedsRepair
mov rcx, rsi
call rbx
jmp 0x1400e98db
mov dword [rbp - 0x50], ebx
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov ebx, dword [rbp - 0x50]
mov eax, 0x40
cmp rbx, rax
cmovb ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
movzx ecx, byte [rbp - 0x58]
mov byte [rbp - 0x58], cl
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 1
mov ecx, 0x18
call fcn.1402b5c5c
mov rdi, rax
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, method.std::_Ref_count_resource_struct__TOKEN_USER____ptr64__class__public:_static_class_std::shared_ptr_struct__TOKEN_USER____cdecl_mb::common::system::HeapUtils::AllocateStruct_struct__TOKEN_USER__1__unsigned_long_long_unsigned___int64__::_2::_lambda_1__.virtual_0
mov qword [rdi], rax
mov qword [rdi + 0x10], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
mov r13d, 0x20
lea r9, [rbp - 0x50]
mov r8d, dword [rbp - 0x50]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x1400e970b
test rsi, rsi
je 0x1400e98ae
mov rax, qword [rsi]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r12
lea rax, str.Unable_to_query__ls_service_config._Error:__u
mov qword [rsp + 0x30], rax
lea rax, str.Elam
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0x5c0
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonElamUtils.cpp
lea rdx, str.mb::common::elam::ElamDriverNeedsRepair
mov rcx, rsi
call rbx
jmp 0x1400e98ae
mov rax, qword [rbx + 0x10]
lea rdx, [0x140412418]
test rax, rax
cmovne rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140030cb0
nop
cmp dword [rbx + 4], 0
jne 0x1400e9772
cmp dword [rbx], 1
jne 0x1400e9772
lea rdx, str.SystemRoot_system32driversmbamelam.sys
lea rcx, [rbp - 0x78]
call fcn.140030cb0
mov r13d, 0x21
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
call fcn.1402d3010
test eax, eax
jne 0x1400e9772
xor r12b, r12b
jmp 0x1400e977e
mov r12b, 1
test r12b, r13b
je 0x1400e9831
lea rcx, [rbp - 0x78]
call fcn.1400166f0
test r12b, r12b
jne 0x1400e9831
lea rcx, [rbp - 0x28]
call fcn.1400166f0
nop
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400e97c7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400e97c7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
lea r12, str.mbamelam
lea rdx, str.system32driversmbamelam.sys
lea rcx, [rbp - 0x78]
call fcn.140030cb0
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.140306610
mov edx, 0x104
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400e98f2
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], bx
jmp 0x1400e9904
test rsi, rsi
je 0x1400e98a4
mov rax, qword [rsi]
mov r10, qword [rax + 0x20]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rax, str.mbamelam
mov qword [rsp + 0x38], rax
lea rax, str._ls_service_has_an_invalid_config._Start:__u_Type:__u_ImagePath:__ls
mov qword [rsp + 0x30], rax
lea rax, str.Elam
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0x5c8
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonElamUtils.cpp
lea rdx, str.mb::common::elam::ElamDriverNeedsRepair
mov rcx, rsi
call r10
nop
lea rcx, [rbp - 0x28]
call fcn.1400166f0
nop
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400e98db
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400e98db
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test r15, r15
je 0x1400e9a1d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400e9a1d
mov r8d, eax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14002d9c0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], bx
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x68]
call fcn.14009b7d0
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140030a90
nop
lea rcx, [rbp - 0x48]
call fcn.1400166f0
nop
lea rcx, [rsp + 0x68]
call fcn.1400166f0
nop
lea rcx, [rbp - 0x78]
call fcn.1400166f0
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x18]
call fcn.1400b21a0
test al, al
je 0x1400e99be
cmp dword [rsp + 0x60], 0
jne 0x1400e99be
lea rcx, [rbp + 0x18]
call fcn.1400166f0
nop
test r14, r14
je 0x1400e998c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test rsi, rsi
je 0x1400e9a13
mov rax, qword [rsi]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r12
lea rax, str._ls_service_expected_image_path_does_not_exist._Error:__u
mov qword [rsp + 0x30], rax
lea rax, str.Elam
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0x5d1
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonElamUtils.cpp
lea rdx, str.mb::common::elam::ElamDriverNeedsRepair
mov rcx, rsi
call rbx
nop
lea rcx, [rbp + 0x18]
call fcn.1400166f0
nop
test r14, r14
je 0x1400e9a2b
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400e998e