Function at 0x18000da10
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0xb10
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0xae0], rax
mov rbp, rdx
mov r15d, r8d
lea rdx, str.DeviceSerial
mov r8d, 0xe
mov r14, rcx
call fcn.180055034
test eax, eax
je 0x18000dc3e
lea rdx, str.DeviceUsbSer
mov r8d, 0xe
mov rcx, r14
call fcn.180055034
test eax, eax
je 0x18000dc3e
lea rdx, str.DeviceLanmanRedirector_
mov r8d, 0x19
mov rcx, r14
mov qword [rsp + 0xb08], rbx
call fcn.180055034
test eax, eax
jne 0x18000dab8
lea r8, [0x180089f14]
mov edx, r15d
mov rcx, rbp
call fcn.180054b48
lea r8, [r14 + 0x32]
mov edx, r15d
mov rcx, rbp
call fcn.18005384c
xor eax, eax
jmp 0x18000dbed
lea rdx, str.DeviceMup_
mov r8d, 0xc
mov rcx, r14
call fcn.180055034
test eax, eax
jne 0x18000daf9
lea r8, [0x180089f14]
mov rdx, r15
mov rcx, rbp
call fcn.180054b48
lea r8, [r14 + 0x18]
mov rdx, r15
mov rcx, rbp
call fcn.18005384c
xor eax, eax
jmp 0x18000dbed
lea rdx, [rsp + 0xb0]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x18000db1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000dbed
cmp word [rsp + 0xb0], 0
mov qword [rsp + 0xb00], rsi
mov qword [rsp + 0xaf8], rdi
mov qword [rsp + 0xaf0], r12
lea rsi, [rsp + 0xb0]
je 0x18000dbd0
xor r12d, r12d
nop dword [rax]
or rax, 0xffffffffffffffff
cmp word [rsi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x18000db54
mov word [rsi + 4], r12w
lea rdx, [rsp + 0x310]
mov r8d, 0x3e8
mov rcx, rsi
lea rdi, [rsi + rax*2]
mov word [rsp + 0x310], r12w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18000dc36
lea rax, [rsp + 0x310]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x18000dba0
test ebx, ebx
jle 0x18000dbc5
lea rdx, [rsp + 0x310]
movsxd r8, ebx
mov rcx, r14
call fcn.180055034
test eax, eax
je 0x18000dc12
lea rsi, [rdi + 2]
cmp word [rdi + 2], r12w
jne 0x18000db50
mov eax, 0xa1
mov rdi, qword [rsp + 0xaf8]
mov rsi, qword [rsp + 0xb00]
mov r12, qword [rsp + 0xaf0]
mov rbx, qword [rsp + 0xb08]
mov rcx, qword [rsp + 0xae0]
xor rcx, rsp
call fcn.180052be0
add rsp, 0xb10
pop r15
pop r14
pop rbp
ret
mov r8, rsi
mov rdx, r15
mov rcx, rbp
call fcn.180054b48
movsxd rax, ebx
mov rdx, r15
lea r8, [r14 + rax*2]
mov rcx, rbp
call fcn.18005384c
xor eax, eax
jmp 0x18000dbd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000dbd5
lea rax, [rsp + 0x30]
lea rdx, str.HardwareDeviceMapSerialComm
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000dbf5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x38], 0x64
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x18000dcb4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x704
jmp 0x18000dbf5
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rbp
call fcn.180054b48
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x18000dbf5