Function at 0x1400d02e0
Capabilities:
Get common file path
Get storage device properties

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x408]
sub rsp, 0x4e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r12, rdx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.140286140
test r12, r12
jne 0x1400d0381
call fcn.140024740
lea rcx, str.Error:_NULL_buffer
lea r14, str.MachineID
mov r9d, 0x713
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 1
mov r10, qword [rax]
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonmachineid.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal2
mov rcx, rax
call qword [r10 + 0x18]
jmp 0x1400d0703
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x1c0]
call fcn.140286140
mov edx, 0x102
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400d03ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140024740
lea rcx, str.Error__lu_calling_GetSystemDirectory
mov r9d, 0x71c
jmp 0x1400d06ce
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 - 0x60]
lea rcx, [rbp + 0x1c0]
call fcn.1402a2bc8
test eax, eax
jne 0x1400d06b4
lea r9, [rbp - 0x60]
lea r8, [0x1403dbfe0]
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140057c60
call fcn.140024740
mov r10, qword [rax]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x38], rcx
lea rcx, str.Calling_CreateFileW_with_path___ls_.
mov qword [rsp + 0x30], rcx
lea r14, str.MachineID
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x1000003
mov r9d, 0x730
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonmachineid.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal2
mov rcx, rax
call qword [r10 + 0x20]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d04b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140024740
lea rcx, str.Error__lu_calling_CreateFileW
mov r9d, 0x735
jmp 0x1400d06d5
mov qword [rsp + 0x64], rdi
mov dword [rsp + 0x60], edi
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ntohl
lea r8, [rsp + 0x60]
mov edx, 0x2d1400
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400d053a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140024740
lea rcx, str.Error__lu_calling_DeviceIoControl_to_get_buffer_size.
mov r9d, 0x747
jmp 0x1400d06d5
mov ebx, dword [rsp + 0x74]
test ebx, ebx
jne 0x1400d0559
call fcn.140024740
lea rcx, str.Error:_zero_size_descriptor
mov r9d, 0x74d
jmp 0x1400d0352
mov rcx, rbx
call fcn.140283380
mov rsi, rax
test rax, rax
je 0x1400d0578
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140286140
jmp 0x1400d057b
mov rsi, rdi
mov qword [rbp - 0x68], rsi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov r9d, ntohl
lea r8, [rsp + 0x60]
mov edx, 0x2d1400
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400d0601
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140024740
mov r10, qword [rax]
mov dword [rsp + 0x38], ebx
lea rcx, str.Error__lu_calling_DeviceIoControl_to_get_buffer.
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 1
mov r9d, 0x759
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonmachineid.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal2
mov rcx, rax
call qword [r10 + 0x20]
jmp 0x1400d06a3
test rsi, rsi
jne 0x1400d061a
call fcn.140024740
lea rcx, str.Error:_NULL_out_buffer
mov r9d, 0x75f
jmp 0x1400d0661
mov eax, dword [rsi + 0x18]
test eax, eax
jne 0x1400d0647
call fcn.140024740
lea rcx, str.DeviceIoControl_didnt_return_a_serial_number.
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 4
mov r9d, 0x768
jmp 0x1400d0673
mov r8, rax
add r8, rsi
jne 0x1400d068d
call fcn.140024740
lea rcx, str.Error:_NULL_serial_number
mov r9d, 0x770
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 1
mov r10, qword [rax]
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonmachineid.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal2
mov rcx, rax
call qword [r10 + 0x18]
jmp 0x1400d06a3
mov rcx, r12
call fcn.1400d01d0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
test rsi, rsi
je 0x1400d06b0
mov rcx, rsi
call fcn.140282c34
mov eax, edi
jmp 0x1400d0705
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140024740
lea rcx, str.Error__lu_calling_wsplitpath_s
mov r9d, 0x729
lea r14, str.MachineID
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 1
mov r10, qword [rax]
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonmachineid.cpp
lea rdx, str.mb::common::system::MachineId::GetDiskSerialNumberInternal2
mov rcx, rax
call qword [r10 + 0x20]
xor eax, eax
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0x4e0]
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