Function at 0x401b01
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe0c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x4b7d0
push ebx
push esi
mov dword [ebp + 0x60], esi
mov dword [esi + 0x4b7d0], ebx
mov dword [esi + 0x4b7d4], ebx
call fcn.00401447
add esp, 0xc
push 0x12
push ebx
push ebx
mov edi, 0x4052bc
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x401b50
xor eax, eax
jmp 0x401fef
push 0x1c
pop eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x3c], eax
lea eax, [ebp + 0x3c]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0x6c]
mov dword [ebp - 0x164], 5
mov dword [ebp + 0x70], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x401fda
add esi, 0x17f8
jmp 0x401b88
xor ebx, ebx
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x70]
push edi
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
push str.FV_1
push 4
call fcn.00401b00
pop ecx
pop ecx
lea eax, [ebp + 0x20]
push eax
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x6c]
mov dword [ebp - 0x164], 5
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push str.FV_2
push 4
mov dword [ebp + 0x74], eax
call fcn.00401b00
cmp dword [ebp + 0x74], 0
pop ecx
pop ecx
je 0x401fbc
mov eax, dword [ebp + 0x34]
mov dword [esi - 0x1270], eax
lea eax, [ebp - 0x160]
push eax
lea edi, [esi - 0x17f8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x268]
push 0x405270
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x268]
push eax
push str.FV_3___s
push 4
call fcn.00401b00
add esp, 0x18
push 0x34
push edi
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push edi
push eax
push str.FV_4_res_i_vol_s
push 4
mov dword [ebp + 0x74], eax
call fcn.00401b00
add esp, 0x10
cmp dword [ebp + 0x74], 0
je 0x401c74
cmp byte [edi], 0
je 0x401c74
mov eax, dword [ebp + 0x60]
inc dword [eax + 0x4b7d4]
cmp byte [edi], 0
jne 0x401c8a
lea eax, [ebp - 0x268]
push eax
push str.volume_name_not_determined_for_DevicePath_s
push 1
call fcn.00401b00
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
lea eax, [esi - 0x17c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.floppy
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x401cba
mov dword [esi], 1
push 0
push ebx
lea eax, [esi - 0x16c0]
push eax
push dword [esi - 0x1270]
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
lea eax, [esi - 0x17f4]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x60]
push eax
call fcn.004043f7
push ebx
lea eax, [esi - 0x15bc]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x36c]
push eax
call fcn.004043f7
push str.FV_5
push 4
call fcn.00401b00
pop ecx
pop ecx
lea eax, [ebp - 0x36c]
push eax
call fcn.00404028
test eax, eax
jne 0x401d47
push edi
call fcn.00403ebc
mov dword [esi - 8], eax
push str.FV_6
push 4
call fcn.00401b00
pop ecx
pop ecx
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi - 0x10], eax
shl eax, 4
add eax, str.UNKNOWN
push eax
push str.FV_7_drivetype_s
push 4
call fcn.00401b00
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
call fcn.00404244
push eax
push str.FV_8_devicenumber_i
push 4
mov dword [esi - 0x14], eax
call fcn.00401b00
add esp, 0xc
cmp dword [esi - 0x14], 0xffffffff
jle 0x401dfd
push 0x3f
lea eax, [ebp - 0x1f]
push 0
push eax
mov byte [ebp - 0x20], 0
call fcn.00401447
mov eax, dword [esi - 0x10]
add esp, 0xc
test eax, eax
je 0x401dd6
cmp eax, 1
jle 0x401deb
cmp eax, 3
jle 0x401dd6
cmp eax, 5
jne 0x401deb
push dword [esi - 0x14]
push str.CdRom_u
jmp 0x401dde
push dword [esi - 0x14]
push str.PhysicalDrive_u
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
lea eax, [esi - 0x14b8]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
cmp byte [edi], 0
je 0x401f53
cmp dword [0x4076b4], 0x501
jl 0x401f53
xor ebx, ebx
cmp dword [0x408f30], ebx
je 0x401f53
push str.FV_9
push 4
mov dword [ebp + 0x74], ebx
call fcn.00401b00
pop ecx
pop ecx
lea eax, [ebp + 0x74]
push eax
push 0xa28
lea eax, [ebp - 0xd94]
push eax
push edi
call dword [0x408f30]
test eax, eax
je 0x401f3d
cmp byte [ebp - 0xd94], bl
je 0x401f2f
lea eax, [ebp + ebx - 0xd94]
push eax
mov eax, dword [esi - 0x218]
imul eax, eax, 0x104
lea eax, [eax + edi + 0xbb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi - 0x218]
imul eax, eax, 0x104
lea eax, [eax + edi + 0xbb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebx + eax + 1]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0x5c], eax
mov eax, dword [esi - 0x218]
imul eax, eax, 0x104
lea eax, [eax + edi + 0xbb8]
push eax
call ebx
mov dword [ebp + 0x58], eax
lea eax, [esi - 0x214]
push eax
call ebx
mov ecx, dword [ebp + 0x58]
lea eax, [ecx + eax + 4]
cmp eax, 0x200
jae 0x401f18
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x405358
lea eax, [esi - 0x214]
push eax
call ebx
mov eax, dword [esi - 0x218]
imul eax, eax, 0x104
lea eax, [eax + edi + 0xbb8]
push eax
lea eax, [esi - 0x214]
push eax
call ebx
push 0x405354
lea eax, [esi - 0x214]
push eax
call ebx
mov ebx, dword [ebp + 0x5c]
inc dword [esi - 0x218]
cmp byte [ebp + ebx - 0xd94], 0
jne 0x401e60
push 0x2c
lea eax, [edi + 0x15e4]
push eax
call fcn.004043f7
add edi, 0x15e4
push edi
push str.FV_10_mp_s
push 4
call fcn.00401b00
add esp, 0xc
mov edi, dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
xor ebx, ebx
push ebx
push dword [ebp + 0x34]
lea eax, [ebp + 0x68]
push eax
mov dword [ebp + 0x68], ebx
call edi
mov eax, dword [ebp + 0x68]
cmp eax, ebx
je 0x401f75
mov dword [esi - 0x126c], eax
push ebx
push eax
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x64], ebx
call edi
mov eax, dword [ebp + 0x64]
cmp eax, ebx
je 0x401f8d
mov dword [esi - 0x1268], eax
lea eax, [esi - 0x214]
cmp byte [eax], 0
je 0x401fa0
push 0x2c
push eax
call fcn.004043f7
push str.FV_11
push 4
call fcn.00401b00
inc dword [ebp + 0x70]
pop ecx
pop ecx
add esi, 0x1828
mov edi, 0x4052bc
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 0x70]
push edi
push 0
push dword [ebp + 0x6c]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x401b86
mov esi, dword [ebp + 0x60]
push dword [ebp + 0x6c]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp + 0x70]
mov dword [esi + 0x4b7d0], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret