Function at 0x4050bb
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xc6
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4050c3
call fcn.0042bdd0
lea eax, [esp + 0x90]
mov edx, 0x42f02e
push edx
push 3
push eax
call fcn.0042bd60
lea eax, [esp + 0x98]
mov edx, 0x42f02e
push edx
push 2
push eax
call fcn.0042bd60
lea eax, [esp + 0x9c]
mov edx, 0x42f02e
push edx
push 7
push eax
call fcn.0042bd60
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x28
call fcn.004295b0
lea eax, [esp + 0xb0]
push 0x28
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x100]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x104]
push 0x104
push eax
call fcn.0042bd20
mov dword [esp + 0x308], 0
mov dword [esp + 0x30c], 0
mov dword [esp + 0x310], 0
mov byte [esp + 0x314], 0
mov eax, dword [esp + 0xfc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 0x308], eax
mov dword [esp + 0x310], 0
jmp 0x4051eb
mov ebx, dword [esp + 0x308]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 0x310]
jl 0x405484
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, dword [esp + 0x104]
mov ebx, eax
mov edi, dword [esp + 0x318]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.0042acf0
lea eax, [esp + 0x94]
push 3
push eax
call fcn.0042bd20
push 0
push 0x90
lea eax, [esp + 8]
push eax
call fcn.0042ad40
push edx
call fcn.0042bbf0
pop edx
push eax
mov edx, str.._
push edx
call fcn.0042bcc0
lea edx, [esp + 0x94]
push 3
push edx
call fcn.0042bec0
lea eax, [esp + 0xa0]
push 7
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
lea eax, [esp + 4]
push eax
lea edx, [esp + 0xa4]
push edx
call fcn.0042bbf0
pop edx
push eax
push 7
push edx
call fcn.0042bec0
call fcn.004163f2
add dword [esp], edx
call fcn.0040bc43
call fcn.00416410
and eax, eax
je 0x405477
lea ebp, [esp]
push dword [ebp]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x405358
push 0x28
lea eax, [esp + 0xb4]
push eax
lea ebp, [esp + 0xc]
lea eax, [ebp + 0x20]
push eax
call sub.ole32.dll_StringFromGUID2
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0xb8]
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x28
push edx
call fcn.0042bec0
call fcn.004163f2
add dword [esp], edx
call fcn.004296f0
call fcn.0042be90
mov edx, str.C12A7328_F81F_11D2_BA4B_00A0C93EC93B
call fcn.00416420
mov ecx, eax
call fcn.00416430
je 0x405358
mov byte [esp + 0x318], 1
pop eax
cmp byte [esp + 0x314], 0
je 0x405477
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f1b4
push eax
mov eax, 0x431c72
push eax
lea edx, [esp + 0xa0]
push edx
call fcn.0042bbf0
pop edx
push eax
push 3
push edx
call fcn.0042bec0
call fcn.004163f2
add dword [esp], edx
call fcn.0042a2b0
lea eax, [esp + 0x9c]
push 2
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
lea eax, [esp + 0x108]
push eax
lea edx, [esp + 0xa4]
push edx
call fcn.0042bbf0
pop edx
push eax
push 2
push edx
call fcn.0042bec0
call fcn.004163f2
add dword [esp], edx
call sub.KERNEL32.dll_QueryDosDeviceW
call fcn.00416410
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0x104]
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
push edx
call fcn.0042bec0
call fcn.0042be90
lea edx, [esp + 0xa0]
push edx
call fcn.0042bbf0
pop edx
push eax
push 2
push edx
call fcn.0042bec0
call fcn.0042be90
push 7
call fcn.004163f2
add dword [esp + 4], edx
call fcn.004163f2
add dword [esp + 8], edx
call sub.KERNEL32.dll_DefineDosDeviceW
call fcn.00416410
and eax, eax
je 0x40546f
inc dword [esp + 0x30c]
mov byte [esp + 0x314], 0
inc dword [esp + 0x310]
jno 0x4051eb
mov eax, dword [esp + 0x30c]
jmp 0x40548f
push dword [esp + 0xfc]
call fcn.0042be60
add esp, 0x318
pop edi
pop ebx
pop ebp
ret