Function at 0x402264
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
push str.CDriveVolumeInfo::CreateSnapshot_Start__s
push 3
mov dword [ebp - 0x10], ebx
call fcn.00401b00
add esp, 0xc
cmp dword [0x4076b4], 0x501
jl 0x4022b3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4022b3
push str.GetVolumePathNamesForVolumeNameA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x408f30], eax
mov ecx, ebx
call fcn.00401b01
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40230e
cmp dword [0x408f30], edi
jne 0x40230e
mov ecx, ebx
call fcn.00402064
cmp dword [ebx + 0x4b7d0], edi
mov dword [ebp - 0x14], eax
jle 0x40230e
lea esi, [ebx + 0x15e0]
push 0x200
lea eax, [esi + 4]
push eax
push 0x104
push dword [esi]
lea eax, [esi - 0xa28]
push eax
call fcn.0040465f
inc edi
add esi, 0x1828
cmp edi, dword [ebx + 0x4b7d0]
jl 0x4022e3
push 0x6b0c
call fcn.00401399
pop ecx
test eax, eax
je 0x402329
mov ecx, eax
call fcn.004017e1
mov dword [ebp - 0xc], eax
jmp 0x40232d
and dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
sub esp, 0x10
mov edi, esp
mov esi, 0x4051d0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401882
push 0x6b0c
call fcn.00401399
pop ecx
test eax, eax
je 0x40235e
mov ecx, eax
call fcn.004017e1
mov dword [ebp - 8], eax
jmp 0x402362
and dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
sub esp, 0x10
mov edi, esp
mov esi, 0x4051e0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401882
push 0x6b0c
call fcn.00401399
pop ecx
test eax, eax
je 0x402393
mov ecx, eax
call fcn.004017e1
mov dword [ebp - 4], eax
jmp 0x402397
and dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
sub esp, 0x10
mov edi, esp
mov esi, 0x4051f0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401882
and dword [ebp + 8], 0
cmp dword [ebx + 0x4b7d0], 0
jle 0x4025e2
lea esi, [ebx + 0x17e4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 4]
cmp eax, 5
jne 0x4023dc
mov edi, dword [ebp - 8]
push str.CDROM
jmp 0x4023f9
cmp eax, 2
jne 0x4023f1
cmp dword [esi + 0x14], 0
je 0x4023f1
mov edi, dword [ebp - 4]
push str.FLOPPY
jmp 0x4023f9
mov edi, dword [ebp - 0xc]
push str.DISK
lea eax, [ebp - 0x34]
push eax
call ebx
xor eax, eax
cmp dword [edi + 0x6b08], eax
jle 0x402490
mov edx, dword [esi]
lea ecx, [edi + 0x10]
cmp dword [ecx], edx
je 0x402427
inc eax
add ecx, 0x224
cmp eax, dword [edi + 0x6b08]
jl 0x402412
jmp 0x402490
imul eax, eax, 0x224
add edi, eax
lea eax, [edi + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov dword [esi - 0x1250], eax
mov eax, dword [edi + 8]
mov dword [esi - 0x124c], eax
mov eax, dword [edi + 0xc]
mov dword [esi - 0x1248], eax
lea eax, [edi + 0x120]
lea ecx, [esi - 0xf38]
push eax
push ecx
call ebx
add edi, 0x18
push edi
lea eax, [esi - 0xd30]
push eax
call ebx
lea eax, [esi - 0xf38]
push eax
push dword [ebp + 8]
push str._DiskDevicePath__i__s
push 5
call fcn.00401b00
add esp, 0x10
mov edi, dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
push 0
push 0x104
lea eax, [esi - 0x1244]
push eax
push dword [esi - 0x1250]
call edi
push 0
push 0x104
lea eax, [esi - 0x1140]
push eax
push dword [esi - 0x124c]
call edi
push 0
push 0x104
lea eax, [esi - 0x103c]
push eax
push dword [esi - 0x1248]
call edi
lea eax, [esi - 0x1140]
push eax
lea eax, [ebp - 0x138]
push eax
call ebx
lea eax, [esi - 0x1244]
push eax
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 0x12c], 0
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrA]
push str.PCI_
lea eax, [ebp - 0x138]
push eax
mov byte [ebp - 0x12c], 0
call edi
lea ecx, [ebp - 0x138]
cmp eax, ecx
jne 0x402548
push str.SCSI_
lea eax, [ebp - 0x23c]
push eax
call edi
lea ecx, [ebp - 0x23c]
cmp eax, ecx
jne 0x402548
mov dword [esi - 0x1260], 1
jmp 0x4025c5
push str.PCIIDE_
lea eax, [ebp - 0x138]
push eax
call edi
lea ecx, [ebp - 0x138]
cmp eax, ecx
jne 0x402573
xor eax, eax
cmp dword [esi + 4], 3
sete al
inc eax
inc eax
mov dword [esi - 0x1260], eax
jmp 0x4025c5
push str.USB_
lea eax, [ebp - 0x138]
push eax
call edi
lea ecx, [ebp - 0x138]
cmp eax, ecx
jne 0x402597
mov dword [esi - 0x1260], 7
jmp 0x4025c5
push str.SBP2_
lea eax, [ebp - 0x138]
push eax
call edi
test eax, eax
jne 0x4025bb
push str.1394_
lea eax, [ebp - 0x138]
push eax
call edi
test eax, eax
je 0x4025c5
mov dword [esi - 0x1260], 4
inc dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add esi, 0x1828
cmp ecx, dword [eax + 0x4b7d0]
jl 0x4023ca
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x4025fa
mov ecx, dword [ebp - 0xc]
call fcn.00401b00
push dword [ebp - 0xc]
call fcn.004013c1
pop ecx
cmp dword [ebp - 8], esi
je 0x402610
mov ecx, dword [ebp - 8]
call fcn.00401b00
push dword [ebp - 8]
call fcn.004013c1
pop ecx
mov eax, dword [ebx + 0x4b7d0]
cmp eax, esi
mov dword [ebp + 8], esi
jle 0x402725
mov dword [ebp - 4], 0xfffffb3a
sub dword [ebp - 4], ebx
lea esi, [ebx + 0x4c6]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
test eax, eax
jle 0x4026c4
lea edi, [ebx + 0x17e8]
mov eax, dword [edi - 0x1250]
cmp eax, dword [esi + 0xd2]
jne 0x4026b2
lea eax, [esi + 0x1342]
mov edx, dword [eax]
mov byte [esi + edx + 0x1336], cl
inc dword [eax]
mov eax, dword [edi - 4]
cmp eax, dword [esi + 0x131e]
jne 0x402689
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x1352]
mov edx, dword [eax]
add ecx, esi
add edx, ecx
mov ecx, dword [ebp - 0x10]
mov byte [edx + ebx + 0x180c], cl
inc dword [eax]
cmp dword [esi + 0xbe], 7
jne 0x4026b2
mov eax, dword [edi]
mov edx, dword [esi + 0x1322]
cmp eax, edx
je 0x4026b2
cmp eax, 5
je 0x4026a8
cmp edx, 5
jne 0x4026b2
mov dword [esi + 0x132e], 1
inc ecx
add edi, 0x1828
cmp ecx, dword [ebx + 0x4b7d0]
mov dword [ebp - 0x10], ecx
jl 0x402644
cmp dword [esi + 0x132e], 0
jne 0x40270d
cmp dword [esi + 0x1322], 3
je 0x40270d
push str._U3
lea edi, [esi - 2]
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x4026f3
mov dword [esi + 0x132e], 1
cmp byte [edi], 0x55
jne 0x40270d
cmp byte [esi - 1], 0x33
jne 0x40270d
cmp byte [esi], 0x20
jne 0x40270d
mov dword [esi + 0x132e], 1
inc dword [ebp + 8]
mov eax, dword [ebx + 0x4b7d0]
add esi, 0x1828
cmp dword [ebp + 8], eax
jl 0x402631
push str.______________
push 3
call fcn.00401b00
and dword [ebp + 8], 0
cmp dword [ebx + 0x4b7d0], 0
pop ecx
pop ecx
jle 0x4027c7
lea esi, [ebx + 0x17f8]
lea eax, [esi - 0x214]
push eax
push dword [esi - 0x14]
lea edi, [esi - 0x17f8]
push dword [esi]
push dword [esi - 0x1274]
push edi
push dword [ebp + 8]
push str.vol__i__s_bus_i_floppy_i_devnum_i_mp_s
push 3
call fcn.00401b00
add esp, 0x20
cmp byte [edi], 0
jne 0x4027b3
lea eax, [esi - 0x17c4]
push eax
push str.__vmp_s
push 3
call fcn.00401b00
lea eax, [esi - 0x1334]
push eax
lea eax, [esi - 0x15bc]
push eax
push dword [esi - 0x1260]
push dword [esi - 0x14]
push str.__dev_i_cdi_i_dos_s_fn_s
push 3
call fcn.00401b00
add esp, 0x24
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, 0x1828
cmp eax, dword [ebx + 0x4b7d0]
jl 0x40274a
push str.______________
push 3
call fcn.00401b00
push dword [ebx + 0x4b7d4]
push dword [ebx + 0x4b7d0]
push str.CDriveVolumeInfo::CreateSnapshot_Finish__Count_i_CountReady_i
push 3
call fcn.00401b00
mov eax, dword [ebp - 0x14]
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret 4