Function at 0x401470
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x23c
mov eax, dword [0x40e054]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
mov esi, dword [esp + 0x244]
push edi
push 0x1ff
lea eax, [esp + 0x45]
push 0
push eax
mov byte [esp + 0x4c], 0
call fcn.00402110
add esp, 0xc
push 0x12
push 0
push esi
push 0x40ba3c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4014ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetClassDevs_failed_with_error:__d_n
push 1
call fcn.00401400
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00401e01
add esp, 0x23c
ret
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x40ba3c
push 0
push edi
mov dword [esp + 0x38], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x401565
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x40153e
push str.No_more_interfaces_n
push 2
call fcn.00401400
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00401e01
add esp, 0x23c
ret
push eax
push str.SetupDiEnumDeviceInterfaces_failed_with_error:__d_n
push 1
call fcn.00401400
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00401e01
add esp, 0x23c
ret
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x38]
push eax
push edi
call ebx
test eax, eax
jne 0x4015b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4015b6
push eax
push str.SetupDiGetDeviceInterfaceDetail_failed_with_error:__d_n
push 1
call fcn.00401400
add esp, 0xc
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00401e01
add esp, 0x23c
ret
push ebp
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00402045
mov esi, eax
add esp, 4
test esi, esi
jne 0x4015de
push str.Unable_to_allocate_memory_to_get_the_interface_detail_data._n
push 1
call fcn.00401400
add esp, 8
jmp 0x40189a
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
lea edx, [esp + 0x3c]
push edx
push edi
mov dword [esi], 5
call ebx
test eax, eax
jne 0x401614
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_SetupDiGetDeviceInterfaceDetail_failed_with_error:__d_n
push 1
call fcn.00401400
add esp, 0xc
jmp 0x40189a
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push esi
mov dword [esp + 0x1c], ebx
call fcn.00401f68
add esp, 4
cmp ebx, 0xffffffff
jne 0x40165c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_with_error:__d_n
push 1
call fcn.00401400
add esp, 0xc
push ebx
jmp 0x401894
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
lea ecx, [esp + 0x20]
push ecx
push 0x200
lea edx, [esp + 0x54]
push edx
push 0xc
lea eax, [esp + 0x34]
push eax
push 0x2d1400
push ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebp
call esi
test eax, eax
jne 0x4016a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IOCTL_failed_with_error_code_d._n_n
push 1
call fcn.00401400
add esp, 0xc
jmp 0x4016fa
push str._nAdapter_Properties_n
push 1
call fcn.00401400
push str.___________________n
push 1
call fcn.00401400
mov ecx, dword [esp + 0x60]
push ecx
push str.Max._Tr._Length:_0x_x_n
push 1
call fcn.00401400
mov edx, dword [esp + 0x70]
push edx
push str.Max._Phy._Pages:_0x_x_n
push 1
call fcn.00401400
mov eax, dword [esp + 0x80]
push eax
push str.Alignment_Mask_:_0x_x_n
push 1
call fcn.00401400
add esp, 0x34
push 0x5000
call fcn.00402045
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x401721
push str.Error_in_allocating_memory_n
push 1
call fcn.00401400
add esp, 8
jmp 0x401893
push ebp
lea ecx, [esp + 0x20]
push ecx
push 0x5000
push edi
push ebp
push ebp
push 0x4100c
push ebx
call esi
test eax, eax
jne 0x401745
push str.Error_in_IOCTL_SCSI_GET_INQUIRY_DATA_n
jmp 0x401883
push str._nChild_Device_Properties:_n_n
push 1
call fcn.00401400
push str.Initiator___Path_ID__Target_ID____LUN__Claimed__Device____n
push 1
call fcn.00401400
push str.__________________________________________________________n
push 1
call fcn.00401400
add esp, 0x18
cmp byte [edi], 0
mov dword [esp + 0x14], ebp
jbe 0x40187e
xor ebx, ebx
jmp 0x401780
mov esi, dword [edi + ebx*8 + 8]
add esi, edi
xor ebp, ebp
cmp byte [edi + ebx*8 + 4], 0
jbe 0x401861
cmp byte [esi + 3], 0
mov eax, 0x40b4dc
jne 0x4017a3
mov eax, 0x40b4d8
movzx edx, byte [esi + 2]
movzx ecx, byte [esi]
push eax
movzx eax, byte [esi + 1]
push edx
movzx edx, byte [edi + ebx*8 + 5]
push eax
push ecx
push edx
push str.____3d_________d__________d___________d______s
push 1
call fcn.00401400
movzx eax, byte [esi + 0xc]
and eax, 0x1f
add esp, 0x1c
cmp eax, 0xe
ja case.default.0x4017d3
jmp dword [eax*4 + 0x4018b4]
push str.__Disk_n
jmp 0x401841
push str.__Tape_n
jmp 0x401841
push str.__Printer_n
jmp 0x401841
push str.__Processor_device_n
jmp 0x401841
push str.__WORM_Device_n
jmp 0x401841
push str.__CDROM_Drive_n
jmp 0x401841
push str.__Scanner_n
jmp 0x401841
push str.__Optical_Disk_n
jmp 0x401841
push str.__Media_changer_n
jmp 0x401841
push str.__Comm._Device_n
jmp 0x401841
push str.__ASCIT8_Device_n
jmp 0x401841
push str.__Array_Device_n
jmp 0x401841
push str.__Enclosure_Device_n
jmp 0x401841
push str.__RBC_Device_n
jmp 0x401841
push str.__Unknown_device_n
push 1
call fcn.00401400
movzx eax, byte [edi + ebx*8 + 4]
mov esi, dword [esi + 8]
add ebp, 1
add esp, 8
add esi, edi
cmp bp, ax
jl 0x401793
mov eax, dword [esp + 0x14]
movzx ecx, byte [edi]
add eax, 1
movsx ebx, ax
cmp ebx, ecx
mov dword [esp + 0x14], eax
jl 0x401780
mov ebx, dword [esp + 0x18]
push 0x40b3b4
push 1
call fcn.00401400
push edi
call fcn.00401f68
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x248]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00401e01
add esp, 0x23c
ret