Function at 0x1400c7c50
Capabilities:
Get file attributes

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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
call fcn.140025b20
mov rcx, rax
call fcn.140094a10
cmp eax, 0xc
jb 0x1400c836c
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
lea rbx, 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 + 0x18], rbx
mov qword [rbp + 0x20], rax
lea rdi, str.mbamelam
test rax, rax
je 0x1400c800a
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
mov r8d, 0x2000000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], rax
test rax, rax
jne 0x1400c7d62
test r14, r14
je 0x1400c82e8
mov rcx, qword [r14]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
lea rax, str.Unable_to_open__ls_service._Error:__u
mov qword [rsp + 0x30], rax
lea rax, [0x14050ab28]
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, r14
call rbx
jmp 0x1400c82e8
mov dword [rbp - 0x70], r13d
lea r9, [rbp - 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov ebx, dword [rbp - 0x70]
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 - 0x78]
mov byte [rbp - 0x78], cl
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 1
mov ecx, 0x18
call fcn.14014f518
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 - 0x28], rbx
mov qword [rbp - 0x20], rdi
mov dword [rsp + 0x60], 4
lea r9, [rbp - 0x70]
mov r8d, dword [rbp - 0x70]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov rsi, 0xffffffffffffffff
test eax, eax
jne 0x1400c7e88
test r14, r14
je 0x1400c82c0
mov rax, qword [r14]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, str.mbamelam
mov qword [rsp + 0x38], rax
lea rax, str.Unable_to_query__ls_service_config._Error:__u
mov qword [rsp + 0x30], rax
lea rax, [0x14050ab28]
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, r14
call rbx
jmp 0x1400c82c0
mov rax, qword [rbx + 0x10]
lea rdx, [0x1404e3f68]
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400c7eb0
lea rcx, [rbp - 0x48]
call fcn.14001fb40
nop
cmp dword [rbx + 4], 0
jne 0x1400c7f27
cmp dword [rbx], 1
jne 0x1400c7f27
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
mov r8d, 0x29
lea rdx, str.SystemRoot_system32driversmbamelam.sys
lea rcx, [rbp - 0x68]
call fcn.14001fb40
mov dword [rsp + 0x60], 5
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rcx, qword [rbp - 0x48]
call fcn.140169af0
test eax, eax
jne 0x1400c7f27
xor r13b, r13b
jmp 0x1400c7f35
mov r13b, 1
test byte [rsp + 0x60], r13b
je 0x1400c81fb
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1400c7f75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c7f70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c845a
call fcn.14014f510
test r13b, r13b
jne 0x1400c81fb
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1400c7fbe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c7fb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c8466
call fcn.14014f510
xor r13d, r13d
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r13w
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400c7ffa
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x1400c7ffa
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdi, str.mbamelam
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov r8d, 0x1d
lea rdx, str.system32driversmbamelam.sys
lea rcx, [rsp + 0x68]
call fcn.14001fb40
nop
lea rcx, [rbp - 0x28]
call fcn.140086030
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140089510
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400223f0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1400c80b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c80ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c8460
call fcn.14014f510
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1400c80f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c80ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c846c
call fcn.14014f510
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r13w
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x1400c8146
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c8141
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c8472
call fcn.14014f510
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r13w
cmp qword [rbp + 8], 0
je 0x1400c83ad
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x68]
call fcn.1400857c0
cmp qword [rax + 0x18], 7
jbe 0x1400c817b
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1400c81c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c81c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c8478
call fcn.14014f510
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
cmp ebx, 0xffffffff
je 0x1400c839b
lea rcx, [rbp - 8]
call fcn.140085d30
test al, al
je 0x1400c82ff
mov eax, 2
jmp 0x1400c8315
test r14, r14
je 0x1400c826e
mov rax, qword [r14]
mov r10, qword [rax + 0x20]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
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, [0x14050ab28]
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, r14
call r10
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1400c82ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c82a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c8466
call fcn.14014f510
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], ax
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400c82e8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x1400c82e8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
test r12, r12
je 0x1400c843f
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400c843f
bt ebx, 0xa
jae 0x1400c830c
mov eax, 3
jmp 0x1400c8315
movzx eax, bl
shr eax, 4
and eax, 1
test eax, eax
jne 0x1400c83ad
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x1400c835e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c8358
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c8454
call fcn.14014f510
nop
test r15, r15
je 0x1400c836c
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14014f4f0
lea r11, [rsp + 0x140]
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
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 5
je 0x1400c83ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r14, r14
je 0x1400c8402
mov rax, qword [r14]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
lea rax, str._ls_service_expected_image_path_does_not_exist._Error:__u
mov qword [rsp + 0x30], rax
lea rax, [0x14050ab28]
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, r14
call rbx
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x1400c843f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c8439
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c8454
call fcn.14014f510
nop
test r15, r15
je 0x1400c844d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400c836e
call fcn.14015fa1c
nop
call fcn.14015fa1c
nop
call fcn.14015fa1c
nop
call fcn.14015fa1c
nop
call fcn.14015fa1c
nop
call fcn.14015fa1c
int3
call fcn.14015fa1c
int3