Function at 0x406f79
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x2d4
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
push 4
pop ebx
cmp dword [0x515894], ebx
mov esi, ecx
jl 0x406fa6
push edi
push str.CStorageVolumes::AddVolume__s_...
push ebx
call fcn.0044c79b
add esp, 0xc
cmp word [edi], 0
jne 0x406fc0
push str._does_not_exist____abort
push ebx
call fcn.0044c79b
pop ecx
pop ecx
xor eax, eax
jmp 0x40739a
push edi
call fcn.0042cbf3
test eax, eax
je 0x406fac
push dword [ebp + 0x7c]
mov ecx, esi
push edi
call fcn.0040605c
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
je 0x407018
push edi
call fcn.0042dc15
mov ecx, dword [ebp + 0x6c]
lea esi, [esi + ecx*4 + 4]
mov edx, dword [esi]
mov dword [edx + 0x840], eax
cmp dword [0x515894], ebx
jl 0x40708c
push eax
mov eax, dword [esi]
push dword [eax + 0x840]
push ecx
push str._already_in_list_at_idx_i_devnum_i__i
push ebx
call fcn.0044c79b
add esp, 0x14
jmp 0x40708c
mov ecx, esi
call fcn.0040602c
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x407039
cmp dword [0x515894], ebx
jl 0x406fb9
push str._no_free_idx
jmp 0x406fb1
mov edx, dword [esi]
lea ecx, [eax + 1]
cmp edx, ecx
jle 0x407044
mov ecx, edx
mov dword [esi], ecx
lea esi, [esi + eax*4 + 4]
mov ecx, dword [esi]
test ecx, ecx
je 0x407057
call fcn.00405f74
jmp 0x40708c
push 0x3578
call fcn.00446ca6
pop ecx
test eax, eax
je 0x40706f
mov ecx, eax
call fcn.00405f57
jmp 0x407071
xor eax, eax
mov dword [esi], eax
cmp dword [0x515894], ebx
jl 0x40708c
push dword [ebp + 0x6c]
push str._add_at_idx_i
push ebx
call fcn.0044c79b
add esp, 0xc
mov esi, dword [esi]
mov eax, dword [ebp + 0x6c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi + 4], eax
xor eax, eax
inc eax
lea edi, [esi + 0x18]
cmp word [edi], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
je 0x4070bc
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4070d3
push dword [ebp + 0x78]
push edi
call ebx
or dword [esi + 0x840], 0xffffffff
xor edi, edi
mov dword [esi + 0x844], edi
jmp 0x4070d5
xor edi, edi
mov eax, dword [ebp + 0x7c]
cmp eax, edi
jne 0x407101
push 2
push 0x478f88
push dword [ebp + 0x78]
call fcn.0044afc8
mov dword [esi + 0x10], eax
cmp eax, edi
jne 0x407104
push 2
push 0x478fe8
push dword [ebp + 0x78]
call fcn.0044afc8
mov dword [esi + 0x10], eax
push edi
push 0x104
lea eax, [esi + 0x220]
push eax
push dword [esi + 0x10]
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_IDW]
cmp dword [0x515894], 4
jl 0x40713b
push dword [ebp + 0x7c]
call fcn.0044af99
push eax
push str.Problem_i
push 4
call fcn.0044c79b
add esp, 0xc
push dword [ebp + 0x78]
lea eax, [ebp - 0x264]
push eax
call ebx
push 0x452f08
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 0x838], eax
xor eax, eax
push 0x66
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00446b72
add esp, 0xc
push 0x34
lea eax, [ebp]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00406ec2
test eax, eax
lea eax, [ebp]
jne 0x4071b1
push 0x34
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4071bb
lea eax, [ebp]
push eax
lea eax, [esi + 0x848]
push eax
call ebx
lea eax, [esi + 0x848]
cmp word [eax], di
je 0x4071fe
push eax
call fcn.0040646d
mov dword [esi + 0x83c], eax
xor eax, eax
push 0x5a
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push edi
push eax
call fcn.00446b72
push 0x58
lea eax, [esi + 0x850]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00446bdc
add esp, 0x18
lea eax, [ebp - 0x5c]
jmp 0x407212
push dword [ebp + 0x78]
call fcn.0040643b
mov dword [esi + 0x83c], eax
mov eax, dword [ebp + 0x78]
add eax, 8
push 0x104
lea edi, [esi + 0x428]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor ebx, ebx
cmp word [edi], bx
jne 0x40724b
push ebx
lea eax, [ebp + 0x68]
push eax
push edi
lea eax, [ebp + 0x7c]
push eax
push 0xf
push dword [ebp + 0x7c]
mov dword [ebp + 0x68], 0x208
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
cmp word [edi], bx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
je 0x4072bf
lea eax, [esi + 0x844]
push eax
lea eax, [esi + 0x840]
push eax
push edi
call fcn.0042da1b
push str.DeviceHarddiskVolume
push edi
call fcn.0042838f
test eax, eax
jne 0x407294
push str.DeviceCdrom
push edi
call fcn.0042838f
test eax, eax
jne 0x407294
push str.DeviceFloppy
push edi
call fcn.0042838f
test eax, eax
je 0x4072bf
lea eax, [esi + 0x438]
push eax
lea edi, [esi + 0x8b0]
push str.._s
push edi
call ebx
add esp, 0xc
lea eax, [esi + 0x8b8]
push eax
call fcn.0042cbf3
test eax, eax
jne 0x4072bf
mov word [edi], ax
lea edi, [esi + 0x840]
cmp dword [edi], 0xffffffff
jne 0x407306
lea eax, [esi + 0x844]
push eax
push edi
lea eax, [ebp - 0x264]
push eax
call fcn.0042775b
cmp dword [edi], 0xffffffff
jne 0x407306
cmp dword [esi + 0x83c], 1
jne 0x407333
push dword [ebp + 0x78]
mov ecx, dword [0x50b370]
call fcn.00401e89
test eax, eax
je 0x407306
mov eax, dword [eax + 0x3a30]
mov dword [edi], eax
cmp dword [esi + 0x83c], 1
jne 0x407333
mov ecx, dword [edi]
cmp ecx, 0xffffffff
jle 0x407333
mov eax, dword [esi + 0x844]
test eax, eax
jle 0x407333
push eax
push ecx
lea eax, [esi + 0x630]
push str.DeviceHarddisk_iPartition_i
push eax
call ebx
add esp, 0x10
mov ecx, dword [0x50b370]
test ecx, ecx
je 0x40735d
cmp dword [ecx + 0x400c], 0
je 0x40735d
push dword [esi + 0x83c]
push dword [edi]
call fcn.00401d6a
test eax, eax
je 0x40735d
mov eax, dword [eax + 0x10]
mov dword [esi + 0x14], eax
mov ecx, esi
call fcn.00406560
cmp dword [0x515894], 4
jl 0x407398
lea eax, [esi + 0x930]
push eax
lea eax, [esi + 0x848]
push eax
push dword [esi + 0x83c]
push dword [edi]
push dword [esi + 0x10]
push dword [ebp + 0x6c]
push str._added_at_idx_i__devinst_u_devnum_i_devcls_i_vn_s_mp_s
push 4
call fcn.0044c79b
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8