Function at 0x1400dcb20
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 - 0x510]
sub rsp, 0x610
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov r13, rdx
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0xe0]
call fcn.1403ec370
mov edx, 0x102
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400dcba4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
lea rcx, str.Error__lu_calling_GetSystemDirectory
mov r9d, 0x68c
jmp 0x1400dd23e
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
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0xe0]
call fcn.14017797c
test eax, eax
jne 0x1400dd224
lea r9, [rbp - 0x38]
lea r8, [0x14050d6f0]
mov edx, 0x104
lea rcx, [rbp + 0x2f0]
call fcn.14002ce80
xor eax, eax
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x58], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x38], rdi
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xc
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400dcc82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
lea rcx, str.Error__lu_calling_DeviceIoControl
mov r9d, 0x6a4
jmp 0x1400dd23e
mov r9d, dword [rbp - 0x44]
lea r8, str.SELECT_SerialNumber_FROM_Win32_DiskDrive_WHERE_Index_u
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.1400162d0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
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 esi, eax
mov eax, 0x80000000
lea ecx, [rsi + rax]
test eax, ecx
jne 0x1400dcd35
cmp esi, 0x80010119
je 0x1400dcd35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
mov r10, qword [rax]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebx
lea rcx, str.Error__lu_calling_CoInitializeSecurity_hr0x_08X
mov qword [rsp + 0x30], rcx
lea rcx, str.MachineID
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x6b8
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonMachineId.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal
mov rcx, rax
call qword [r10 + 0x20]
jmp 0x1400dd273
mov qword [rbp - 0x50], rdi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x14044cba0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14044cbb0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
jns 0x1400dcdbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebx
lea rcx, str.Error__lu_calling_CoCreateInstance_hr0x_08X
mov qword [rsp + 0x30], rcx
lea rcx, str.MachineID
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x6c2
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonMachineId.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal
mov rcx, rax
call r10
jmp 0x1400dd210
mov qword [rbp - 0x60], rdi
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x18]
lea rcx, [rsp + 0x58]
call fcn.1400dde60
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x1400dcde4
mov rdx, qword [rdx]
jmp 0x1400dcde7
mov rdx, rdi
lea rax, [rbp - 0x60]
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 rcx, rbx
call rsi
mov esi, eax
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400dce5e
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x1400dce5e
test rbx, rbx
je 0x1400dce5e
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400dce3f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400dce51
call fcn.14014f510
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14014f510
test esi, esi
jns 0x1400dce85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
lea rcx, str.Error__lu_calling_ConnectServer_hr0x_08X
mov r9d, 0x6d5
jmp 0x1400dced9
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
test eax, eax
jns 0x1400dcf13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
lea rcx, str.Error__lu_calling_CoSetProxyBlanket_hr0x_08X
mov r9d, 0x6e7
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rcx
lea rcx, str.MachineID
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonMachineId.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal
mov rcx, rax
call r10
jmp 0x1400dd200
mov qword [rbp - 0x70], rdi
mov rbx, qword [rbp - 0x60]
mov rax, qword [rbx]
mov r12, qword [rax + 0xa0]
mov ecx, 0x18
call fcn.14014f518
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400dcf61
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 - 0x30]
call fcn.140150690
mov qword [rsi], rax
jmp 0x1400dcf64
mov rsi, rdi
mov qword [rsp + 0x60], rsi
test rsi, rsi
je 0x1400dd2b0
mov r15, qword [rsi]
mov ecx, 0x18
call fcn.14014f518
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400dcfb6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rax
mov qword [r14 + 8], rdi
mov dword [r14 + 0x10], 1
lea rcx, [0x14050d49c]
call fcn.140150690
mov qword [r14], rax
jmp 0x1400dcfb9
mov r14, rdi
mov qword [rsp + 0x68], r14
test r14, r14
je 0x1400dd2a5
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 0x30
mov r8, r15
mov rdx, qword [r14]
mov rcx, rbx
call r12
mov r15d, eax
mov ecx, 0xffffffff
lock xadd dword [r14 + 0x10], ecx
cmp ecx, 1
jne 0x1400dd02b
mov rcx, qword [r14]
test rcx, rcx
je 0x1400dd00b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14], rdi
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400dd01d
call fcn.14014f510
mov qword [r14 + 8], rdi
mov edx, 0x18
mov rcx, r14
call fcn.14014f510
nop
mov eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x1400dd06a
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400dd04b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rdi
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400dd05d
call fcn.14014f510
mov qword [rsi + 8], rdi
mov edx, 0x18
mov rcx, rsi
call fcn.14014f510
test r15d, r15d
jns 0x1400dd0cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], ebx
lea rcx, str.Error__lu_calling_ExecQuery_hr0x_08X
mov qword [rsp + 0x30], rcx
lea rcx, str.MachineID
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x6f7
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonMachineId.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal
mov rcx, rax
call r10
mov rdx, qword [rbp - 0x70]
jmp 0x1400dd1f1
mov word [r13], di
mov qword [rbp - 0x68], rdi
mov dword [rbp - 0x78], edi
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x68]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
js 0x1400dd1bf
mov ebx, 8
nop dword [rax + rax]
cmp dword [rbp - 0x78], 0
je 0x1400dd1bf
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.serialNumber
call qword [rax + 0x20]
test eax, eax
js 0x1400dd174
cmp bx, word [rsp + 0x70]
jne 0x1400dd174
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400dd174
mov r8, qword [rsp + 0x78]
mov edx, 0x400
mov rcx, r13
call fcn.1400d7bb0
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400dd190
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov qword [rbp - 0x68], rdi
mov dword [rbp - 0x78], edi
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x68]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
jns 0x1400dd110
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x1400dd1d9
mov qword [rbp - 0x70], rdi
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rdx, qword [rbp - 0x70]
mov edi, 1
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400dd1f1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x1400dd200
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400dd210
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400dd220
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov eax, edi
jmp 0x1400dd275
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14002c3f0
lea rcx, str.Error__lu_calling_wsplitpath_s
mov r9d, 0x699
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::GetDiskSerialNumberInternal
mov rcx, rax
call qword [r10 + 0x20]
xor eax, eax
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.14014f4f0
lea r11, [rsp + 0x610]
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.140150680
nop
mov ecx, 0x8007000e
call fcn.140150680
int3