Function at 0x1400be150
Capabilities:
Connect to wmi namespace via wbemlocator
Get common file path
Get disk information via ioctl
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov r12, rdx
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0xc0]
call fcn.14030b3a0
mov edx, 0x102
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400be1d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14001e910
lea rcx, str.Error__lu_calling_GetSystemDirectory
mov r9d, 0x573
jmp 0x1400be6f6
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r13d, 3
mov r8d, r13d
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0xc0]
call fcn.1402db384
test eax, eax
jne 0x1400be6dc
lea r9, [rbp - 0x58]
lea r8, [0x140433228]
mov edx, 0x104
lea rcx, [rbp + 0x2d0]
call fcn.140073160
xor eax, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400be287
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14001e910
lea rcx, str.Error__lu_from_CreateFile
mov r9d, 0x58b
jmp 0x1400be6f6
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], recvfrom
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400be31c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14001e910
mov r10, qword [rax]
mov dword [rsp + 0x38], ebx
lea rcx, str.Error__lu_calling_DeviceIoControl
mov qword [rsp + 0x30], rcx
lea rcx, str.MachineID
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x591
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonMachineId.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSignatureInternal
mov rcx, rax
call qword [r10 + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400be72b
mov r9d, dword [rbp - 0x7c]
lea r8, str.SELECT_Signature_FROM_Win32_DiskDrive_WHERE_Index_u
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14002dc80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x1400be37e
cmp eax, 0x80010119
jne 0x1400be72b
mov qword [rsp + 0x78], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x140405218]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140405228]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400be6c7
mov qword [rsp + 0x68], rdi
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov ecx, 0x18
call fcn.1402baa0c
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400be409
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rdi
mov dword [rsi + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
je 0x1400be768
jmp 0x1400be40c
mov rsi, rdi
mov qword [rsp + 0x50], rsi
test rsi, rsi
je 0x1400be773
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call r14
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.1400b2290
test ebx, ebx
js 0x1400be6b6
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x1400be6b6
mov qword [rsp + 0x58], rdi
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov r15, qword [rax + 0xa0]
mov ecx, 0x18
call fcn.1402baa0c
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400be4da
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rdi
mov dword [rsi + 0x10], 1
lea rcx, [rbp - 0x50]
call fcn.1402bbba0
mov qword [rsi], rax
jmp 0x1400be4dd
mov rsi, rdi
mov qword [rsp + 0x60], rsi
test rsi, rsi
je 0x1400be77e
mov r14, qword [rsi]
mov ecx, 0x18
call fcn.1402baa0c
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400be52d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rdi
mov dword [rsi + 0x10], 1
lea rcx, [0x1404330e4]
call fcn.1402bbba0
mov qword [rsi], rax
jmp 0x1400be530
mov rsi, rdi
mov qword [rsp + 0x50], rsi
test rsi, rsi
je 0x1400be75d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 0x30
mov r8, r14
mov rdx, qword [rsi]
mov rcx, rbx
call r15
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.1400b2290
nop
lea rcx, [rsp + 0x60]
call fcn.1400b2290
test ebx, ebx
jns 0x1400be584
mov rdx, qword [rsp + 0x58]
jmp 0x1400be6a7
mov word [r12], di
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x60], edi
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
js 0x1400be670
nop dword [rax]
cmp dword [rsp + 0x60], 0
je 0x1400be670
lea rcx, [rbp - 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.Signature
call qword [rax + 0x20]
test eax, eax
js 0x1400be620
cmp r13w, word [rbp - 0x70]
jne 0x1400be620
mov r9d, dword [rbp - 0x68]
test r9d, r9d
je 0x1400be620
lea r8, [0x1404333a4]
mov edx, 0x100
mov rcx, r12
call fcn.140073160
lea rcx, [rbp - 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400be63c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x60], edi
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
jns 0x1400be5c0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400be68d
mov qword [rsp + 0x58], rdi
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rdx, qword [rsp + 0x58]
mov edi, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400be6a7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400be6b6
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400be6c7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400be6d8
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
nop
mov eax, edi
jmp 0x1400be72d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14001e910
lea rcx, str.Error__lu_calling_wsplitpath_s
mov r9d, 0x580
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rcx
lea rcx, str.MachineID
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r10, qword [rax]
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonMachineId.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSignatureInternal
mov rcx, rax
call qword [r10 + 0x20]
xor eax, eax
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1402bbb90
nop
mov ecx, 0x8007000e
call fcn.1402bbb90
nop
mov ecx, 0x8007000e
call fcn.1402bbb90
nop
mov ecx, 0x8007000e
call fcn.1402bbb90
int3