Function at 0x408b70
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42b496
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0xa68]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa78]
push 0xd
xor edi, edi
push str.vid_12d1pid_
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
call fcn.004039d0
push 0x12
push edi
push edi
push 0x43219c
mov dword [esp + 0xa80], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408c29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetClassDevs_error__error_code___d
call fcn.00404950
add esp, 8
cmp dword [esp + 0x48], 0x10
jb 0x408c22
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040eec8
add esp, 4
xor eax, eax
jmp 0x408f6e
lea edx, [esp + 0x84]
push edx
push edi
push 0x43219c
push edi
push ebp
mov dword [esp + 0x98], 0x1c
mov dword [esp + 0x30], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x408f4f
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x7d0
lea edx, [esp + 0x2a0]
push edx
lea eax, [esp + 0x94]
push eax
push ebp
mov dword [esp + 0x80], 0x1c
mov dword [esp + 0x2ac], 5
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x408f26
lea eax, [esp + 0x298]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408ca4
sub eax, edx
add eax, 1
push eax
lea ecx, [esp + 0x29c]
push ecx
call fcn.00417f6c
add esp, 8
mov byte [esp + 0xa0], 0
mov ecx, 0x104
lea eax, [esp + 0x298]
xor esi, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x408cef
add eax, 1
sub ecx, 1
jne 0x408ce0
jmp 0x408cf7
cmp ecx, edi
jne 0x408f96
mov esi, 0x80070057
xor edx, edx
cmp esi, edi
mov eax, esi
jl 0x408d1f
push 3
mov ecx, 0x104
sub ecx, edx
push edi
lea edx, [esp + edx + 0x2a0]
mov eax, 0x42e478
call fcn.00401c80
cmp eax, edi
je 0x408d35
push str.SendRewindForFake
push str._s_string_copy_pDeviceInterfaceDetailData__DevicePath_err_n
call fcn.00404950
add esp, 8
push 0x1f3
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x408f26
lea ecx, [esp + 0xa0]
push ecx
call fcn.00405490
mov bl, al
add esp, 4
test bl, bl
mov byte [esp + 0x24], bl
je 0x408f26
mov eax, dword [esp + 0x7c]
mov esi, dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
push edi
push 0x1f4
lea edx, [esp + 0xa8]
push edx
push eax
call esi
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
jmp 0x408da0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408da0
sub eax, edx
add eax, 1
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.00417f6c
mov edx, dword [esp + 0x84]
add esp, 8
push edi
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov edx, dword [esp + 0x20]
push edi
push 0x1f4
lea ecx, [esp + 0xa8]
push ecx
push edx
call esi
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408df2
sub eax, edx
add eax, 1
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00417f6c
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408e18
sub eax, edx
je 0x408f26
mov cl, bl
sub cl, 0x41
cmp cl, 0x19
ja 0x408f26
push str.vid_12d1pid_
lea ecx, [esp + 0x34]
call fcn.004042c0
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
call fcn.00404770
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp dword [esp + 0x48], esi
jae 0x408e66
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00417550
add esp, 8
test eax, eax
je 0x408f26
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x408e8d
lea eax, [esp + 0x34]
movsx ecx, bl
push ecx
lea edx, [esp + 0xa4]
push edx
push eax
push str.___Find_Fake_pid__s__in_device___s__drive__c__send_SCSI...begin_n
call fcn.00404950
add esp, 0x10
push str.._
lea ecx, [esp + 0x50]
call fcn.00404280
mov eax, dword [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xa78], 1
call fcn.004036c0
push 0x3a
push 1
lea ecx, [esp + 0x54]
call fcn.004036c0
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x408ee8
lea eax, [esp + 0x50]
push eax
call fcn.00401e20
mov eax, dword [esp + 0x54]
add esp, 4
cmp dword [esp + 0x64], esi
jae 0x408eff
lea eax, [esp + 0x50]
push eax
push str.Send_SCSI_command_to_driver___s_...end_n
call fcn.00404950
add esp, 8
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], 1
mov byte [esp + 0xa70], 0
call fcn.004031e0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
push ecx
add eax, 1
push eax
push 0x43219c
push edi
push ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x408c56
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp dword [esp + 0x48], 0x10
jb 0x408f6a
mov edx, dword [esp + 0x34]
push edx
call fcn.0040eec8
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa50]
xor ecx, esp
call fcn.00417b3b
add esp, 0xa60
ret
mov edx, 0x104
sub edx, ecx
jmp 0x408cfe