Function at 0x40705f
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x2d4
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push 4
pop ebx
cmp dword [0x5168ac], ebx
mov edi, ecx
jl 0x40708c
push esi
push str.CStorageVolumes::AddVolume__s_...
push ebx
call fcn.0044d31e
add esp, 0xc
cmp word [esi], 0
jne 0x4070a6
push str._does_not_exist____abort
push ebx
call fcn.0044d31e
pop ecx
pop ecx
xor eax, eax
jmp 0x40749e
push esi
call fcn.0042d136
test eax, eax
je 0x407092
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x7c]
mov ecx, edi
push esi
call fcn.004060e1
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
je 0x407108
push esi
call fcn.0042e3a9
mov ecx, dword [ebp + 0x6c]
lea esi, [edi + ecx*4 + 0x1c]
mov edx, dword [esi]
mov dword [edx + 0x840], eax
cmp dword [0x5168ac], ebx
jl 0x407189
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.0044d31e
add esp, 0x14
jmp 0x407189
mov ecx, edi
call fcn.004060b0
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x407134
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x5168ac], ebx
jl 0x40709f
push str._no_free_idx
jmp 0x407097
mov edx, dword [edi + 0x18]
lea ecx, [eax + 1]
cmp edx, ecx
jle 0x407140
mov ecx, edx
lea esi, [edi + eax*4 + 0x1c]
mov dword [edi + 0x18], ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x407154
call fcn.00405fdc
jmp 0x407189
push 0x3578
call fcn.00447831
pop ecx
test eax, eax
je 0x40716c
mov ecx, eax
call fcn.00405fbf
jmp 0x40716e
xor eax, eax
mov dword [esi], eax
cmp dword [0x5168ac], ebx
jl 0x407189
push dword [ebp + 0x6c]
push str._add_at_idx_i
push ebx
call fcn.0044d31e
add esp, 0xc
mov esi, dword [esi]
mov eax, dword [ebp + 0x6c]
mov dword [esi + 4], eax
xor eax, eax
inc eax
push edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edi, [esi + 0x18]
cmp word [edi], 0
je 0x4071c0
push str.7f108a28_9833_4b3b_b780_2c6b5fa5c062
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4071d7
push dword [ebp + 0x78]
push edi
call ebx
or dword [esi + 0x840], 0xffffffff
xor edi, edi
mov dword [esi + 0x844], edi
jmp 0x4071d9
xor edi, edi
mov eax, dword [ebp + 0x7c]
cmp eax, edi
jne 0x407205
push 2
push 0x47a0f8
push dword [ebp + 0x78]
call fcn.0044bb4a
mov dword [esi + 0x10], eax
cmp eax, edi
jne 0x407208
push 2
push 0x47a158
push dword [ebp + 0x78]
call fcn.0044bb4a
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 [0x5168ac], 4
jl 0x40723f
push dword [ebp + 0x7c]
call fcn.0044bb1b
push eax
push str.Problem_i
push 4
call fcn.0044d31e
add esp, 0xc
push dword [ebp + 0x78]
lea eax, [ebp - 0x264]
push eax
call ebx
push 0x453f30
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.004476fd
add esp, 0xc
push 0x34
lea eax, [ebp]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00406f9c
test eax, eax
lea eax, [ebp]
jne 0x4072b5
push 0x34
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4072bf
lea eax, [ebp]
push eax
lea eax, [esi + 0x848]
push eax
call ebx
lea eax, [esi + 0x848]
cmp word [eax], di
je 0x407302
push eax
call fcn.00406547
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.004476fd
push 0x58
lea eax, [esi + 0x850]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00447767
add esp, 0x18
lea eax, [ebp - 0x5c]
jmp 0x407316
push dword [ebp + 0x78]
call fcn.00406515
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 0x40734f
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 0x4073c3
lea eax, [esi + 0x844]
push eax
lea eax, [esi + 0x840]
push eax
push edi
call fcn.0042e1af
push str.DeviceHarddiskVolume
push edi
call fcn.00428778
test eax, eax
jne 0x407398
push str.DeviceCdrom
push edi
call fcn.00428778
test eax, eax
jne 0x407398
push str.DeviceFloppy
push edi
call fcn.00428778
test eax, eax
je 0x4073c3
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.0042d136
test eax, eax
jne 0x4073c3
mov word [edi], ax
lea edi, [esi + 0x840]
cmp dword [edi], 0xffffffff
jne 0x40740a
lea eax, [esi + 0x844]
push eax
push edi
lea eax, [ebp - 0x264]
push eax
call fcn.00427b44
cmp dword [edi], 0xffffffff
jne 0x40740a
cmp dword [esi + 0x83c], 1
jne 0x407437
push dword [ebp + 0x78]
mov ecx, dword [0x50c78c]
call fcn.00401e89
test eax, eax
je 0x40740a
mov eax, dword [eax + 0x3a30]
mov dword [edi], eax
cmp dword [esi + 0x83c], 1
jne 0x407437
mov ecx, dword [edi]
cmp ecx, 0xffffffff
jle 0x407437
mov eax, dword [esi + 0x844]
test eax, eax
jle 0x407437
push eax
push ecx
lea eax, [esi + 0x630]
push str.DeviceHarddisk_iPartition_i
push eax
call ebx
add esp, 0x10
mov ecx, dword [0x50c78c]
test ecx, ecx
je 0x407461
cmp dword [ecx + 0x400c], 0
je 0x407461
push dword [esi + 0x83c]
push dword [edi]
call fcn.00401d6a
test eax, eax
je 0x407461
mov eax, dword [eax + 0x10]
mov dword [esi + 0x14], eax
mov ecx, esi
call fcn.0040663a
cmp dword [0x5168ac], 4
jl 0x40749c
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.0044d31e
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8