Function at 0x4cafb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4cb320
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 4], eax
mov eax, edi
call fcn.004cb358
mov byte [ebp - 5], al
xor esi, esi
mov ecx, esi
mov eax, 1
shl eax, cl
and eax, dword [ebp - 4]
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x4cb2e1
mov ebx, esi
add bl, 0x41
lea eax, [ebp - 0x30]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x34]
call fcn.004030dc
mov edx, 0x4cb330
lea eax, [ebp - 0x34]
mov cl, 2
call fcn.004030ac
lea edx, [ebp - 0x34]
lea eax, [ebp - 0xc]
call fcn.004049d8
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, edi
call fcn.004cad7c
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, edi
call fcn.004caeec
mov eax, dword [ebp - 0xc]
call fcn.00404c34
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4cb1a9
mov edx, dword [0x4ca328]
mov eax, 0x20
call fcn.00405694
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404c34
push eax
mov eax, dword [0x4d2098]
mov eax, dword [eax]
call eax
cmp bl, byte [ebp - 5]
sete al
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 8
mov edx, dword [ebp - 0xc]
call fcn.004047c8
fild qword [ebp - 0x28]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x38]
mov eax, 0x4cb340
call fcn.0040acfc
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
add eax, 0xc
call fcn.004047c8
fild qword [ebp - 0x20]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x3c]
mov eax, 0x4cb340
call fcn.0040acfc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
call fcn.004047c8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
fild qword [ebp - 0x28]
fdivp st(1)
fmul dword [0x4cb348]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x40]
mov eax, 0x4cb354
call fcn.0040acfc
mov eax, dword [ebp - 0x40]
call fcn.0040934c
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov edx, dword [ebp - 0x10]
call fcn.004047c8
mov eax, dword [ebp - 0x2c]
add eax, 0x1c
mov edx, dword [ebp - 0x14]
call fcn.004047c8
mov eax, dword [edi + 0x360]
mov edx, dword [ebp - 0x2c]
call fcn.0041dff0
jmp 0x4cb2e1
mov eax, dword [ebp - 0xc]
call fcn.00404c34
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4cb2e1
mov edx, dword [0x4ca328]
mov eax, 0x20
call fcn.00405694
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404c34
push eax
mov eax, dword [0x4d2098]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 3
mov eax, dword [ebp - 0x2c]
add eax, 8
mov edx, dword [ebp - 0xc]
call fcn.004047c8
fild qword [ebp - 0x28]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x4c]
mov eax, 0x4cb340
call fcn.0040acfc
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
add eax, 0xc
call fcn.004047c8
fild qword [ebp - 0x20]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
fdiv dword [0x4cb334]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x50]
mov eax, 0x4cb340
call fcn.0040acfc
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
call fcn.004047c8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
fild qword [ebp - 0x28]
fdivp st(1)
fmul dword [0x4cb348]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x54]
mov eax, 0x4cb354
call fcn.0040acfc
mov eax, dword [ebp - 0x54]
call fcn.0040934c
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov edx, dword [ebp - 0x10]
call fcn.004047c8
mov eax, dword [ebp - 0x2c]
add eax, 0x1c
mov edx, dword [ebp - 0x14]
call fcn.004047c8
mov eax, dword [edi + 0x360]
mov edx, dword [ebp - 0x2c]
call fcn.0041dff0
inc esi
cmp esi, 0x1a
jne 0x4caffa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb327
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404798
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404798
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404798
ret