Function at 0x40d930
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
sub rsp, 0xad8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax - 8], rdi
mov qword [rax - 0x10], r12
mov qword [rax - 0x18], r13
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
mov rax, qword [0x0045f6c0]
xor rax, rsp
mov qword [rsp + 0xaa0], rax
mov r12, rcx
xor r15d, r15d
mov r13d, r15d
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x48], r13b
lea r9d, [r15 + 0xd]
lea r14, str.vid_12d1pid_
mov r8, r14
lea edx, [r15 + 0xf]
lea rcx, [rsp + 0x48]
call fcn.00426220
mov qword [rsp + 0x58], 0xd
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [rax + 0xd], r13b
lea r9d, [r15 + 0x12]
xor r8d, r8d
xor edx, edx
lea rcx, [0x00447af0]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x40da18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetupDiGetClassDevs_error__error_code___d
call fcn.00404a90
nop
cmp qword [rsp + 0x60], 0x10
jb 0x40da11
mov rcx, qword [rsp + 0x48]
call fcn.0041873c
xor eax, eax
jmp 0x40dddc
mov dword [rsp + 0x90], 0x20
mov ebp, r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x00447af0]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x40ddbd
mov dword [rsp + 0xb0], 0x20
mov dword [rsp + 0x2d0], 8
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 0x7d0
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x40dd90
lea rcx, [rsp + 0x2d4]
call fcn.00425420
mov byte [rsp + 0xd0], 0
lea rdi, [rsp + 0x2d4]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x0044244c]
mov word [rdi - 1], ax
mov r8d, 0x1f3
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x2d4]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x40dd90
lea rcx, [rsp + 0xd0]
call fcn.00405d10
movzx ebx, al
test al, al
je 0x40dd90
xor r9d, r9d
mov r8d, 0x1f4
lea rdx, [rsp + 0xd0]
mov ecx, dword [rsp + 0xc4]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
lea rcx, [rsp + 0xd0]
call fcn.00425420
xor r8d, r8d
mov edx, dword [rsp + 0xc4]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
xor r9d, r9d
mov r8d, 0x1f4
lea rdx, [rsp + 0xd0]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
lea rcx, [rsp + 0xd0]
call fcn.00425420
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x40dd90
lea eax, [rbx - 0x41]
cmp al, 0x19
ja 0x40dd90
lea rax, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
cmovae rax, rdi
mov r8, qword [rsp + 0x58]
cmp r14, rax
jb 0x40dc01
lea rax, [rsp + 0x48]
cmp rdx, 0x10
cmovae rax, rdi
add rax, r8
cmp rax, r14
jbe 0x40dc01
lea rax, [rsp + 0x48]
cmp rdx, 0x10
cmovae rax, rdi
mov r8, r14
sub r8, rax
mov r9d, 0xd
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.00403070
jmp 0x40dc59
cmp rdx, 0xd
jae 0x40dc20
mov edx, 0xd
lea rcx, [rsp + 0x40]
call fcn.00402120
mov rdx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
cmp rdx, 0x10
cmovae rcx, rdi
mov r9d, 0xd
mov r8, r14
call fcn.00426220
mov qword [rsp + 0x58], 0xd
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [rax + 0xd], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.00403a80
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.00424e10
test rax, rax
je 0x40dd90
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
movsx r9d, bl
lea r8, [rsp + 0xd0]
lea rcx, str.___Find_Fake_pid__s__in_device___s__drive__c__send_SCSI...begin_n
call fcn.00404a90
mov qword [rsp + 0x88], 0xf
mov qword [rsp + 0x80], r15
mov byte [rsp + 0x70], 0
mov r9d, 4
lea r8, str.._
lea edx, [r9 + 0xb]
lea rcx, [rsp + 0x70]
call fcn.00426220
mov qword [rsp + 0x80], 4
lea rax, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rax, qword [rsp + 0x70]
mov byte [rax + 4], 0
movzx edx, bl
lea rcx, [rsp + 0x68]
call fcn.004039b0
mov dl, 0x3a
lea rcx, [rsp + 0x68]
call fcn.004039b0
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rcx, qword [rsp + 0x70]
call fcn.004055f0
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rdx, qword [rsp + 0x70]
lea rcx, str.Send_SCSI_command_to_driver___s_...end_n
call fcn.00404a90
mov r13d, 1
cmp qword [rsp + 0x88], 0x10
jb 0x40dd90
mov rcx, qword [rsp + 0x70]
call fcn.0041873c
add ebp, 1
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, ebp
lea r8, [0x00447af0]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x40da50
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
cmp qword [rsp + 0x60], 0x10
jb 0x40ddd9
mov rcx, qword [rsp + 0x48]
call fcn.0041873c
mov eax, r13d
mov rcx, qword [rsp + 0xaa0]
xor rcx, rsp
call fcn.00425570
mov rbx, qword [rsp + 0xae8]
mov rbp, qword [rsp + 0xaf0]
mov rsi, qword [rsp + 0xaf8]
mov rdi, qword [rsp + 0xad0]
mov r12, qword [rsp + 0xac8]
mov r13, qword [rsp + 0xac0]
mov r14, qword [rsp + 0xab8]
mov r15, qword [rsp + 0xab0]
add rsp, 0xad8
ret