Function at 0x4c6def
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x63
lea edx, [ebp - 0xfb]
push esi
push edx
mov dword [ebp - 0x560], eax
mov dword [ebp - 0x564], ecx
mov dword [ebp - 0x53c], esi
mov byte [ebp - 0xfc], 0
call fcn.004e7d90
push 0x63
lea eax, [ebp - 0x93]
push esi
push eax
mov byte [ebp - 0x94], 0
call fcn.004e7d90
push 0x63
lea ecx, [ebp - 0x1cb]
push esi
push ecx
mov byte [ebp - 0x1cc], 0
call fcn.004e7d90
push 0x63
lea edx, [ebp - 0x233]
push esi
push edx
mov byte [ebp - 0x234], 0
call fcn.004e7d90
push 0x63
lea eax, [ebp - 0x163]
push esi
push eax
mov byte [ebp - 0x164], 0
call fcn.004e7d90
add esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x544], eax
mov dword [ebp - 0x56c], esi
mov dword [ebp - 0x568], esi
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x550], esi
mov dword [ebp - 0x54c], esi
mov dword [ebp - 0x548], esi
mov dword [ebp - 0xfc], 0x5c3a3f
cmp eax, esi
je 0x4c72a7
test al, 1
je 0x4c728d
mov cl, byte [ebp - 0x53c]
lea edx, [ebp - 0xfc]
add cl, 0x41
push edx
mov byte [ebp - 0xfc], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
lea eax, [ebx - 2]
mov dword [ebp - 0x540], ebx
cmp eax, 4
ja case.default.0x4c6de8
jmp dword [eax*4 + 0x4c72b8]
cmp dword [ebp - 0x53c], 2
jge 0x4c6e2c
mov eax, dword [str.Floppy]
mov cx, word [0x528b00]
mov dl, byte [0x528b02]
mov dword [ebp - 0x538], 0xe6
mov dword [ebp - 0x94], eax
mov word [ebp - 0x90], cx
mov byte [ebp - 0x8e], dl
jmp 0x4c702e
mov eax, dword [str.Removable_Disk]
mov ecx, dword [0x528b08]
mov edx, dword [0x528b0c]
mov dword [ebp - 0x94], eax
mov ax, word [0x528b10]
mov dword [ebp - 0x90], ecx
mov cl, byte [0x528b12]
mov dword [ebp - 0x538], 0xe9
mov dword [ebp - 0x8c], edx
mov word [ebp - 0x88], ax
mov byte [ebp - 0x86], cl
jmp 0x4c702e
mov eax, dword [0x528b18]
mov edx, dword [str.Logical_Disk]
mov ecx, dword [0x528b1c]
mov dword [ebp - 0x90], eax
xor eax, eax
push 0xf
mov dword [ebp - 0x94], edx
mov dl, byte [0x528b20]
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
mov byte [ebp - 0x28], al
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
mov dword [ebp - 0x8c], ecx
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x88], dl
lea ecx, [ebp - 0x574]
push ecx
lea edx, [ebp - 0x57c]
push edx
lea eax, [ebp - 0x578]
push eax
push 0xf
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0xfc]
push edx
mov dword [ebp - 0x538], 0xe7
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x18]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6f10
sub eax, edx
je 0x4c6f80
lea edi, [ebp - 0x94]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c6f22
mov ax, word [0x528b24]
mov word [edi], ax
lea eax, [ebp - 0x18]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6f38
lea edi, [ebp - 0x94]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c6f48
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x94]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c6f67
mov cx, word [0x51a7d4]
mov word [edi], cx
xor esi, esi
jmp 0x4c702e
lea eax, [ebp - 0x94]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4c6f87
mov edx, dword [str._Not_Formatted_]
mov ecx, dword [0x528b2c]
mov dword [eax], edx
mov edx, dword [0x528b30]
mov dword [eax + 4], ecx
mov ecx, dword [0x528b34]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x4c702e
mov edx, dword [str.CD_ROM]
mov ax, word [0x528b3c]
mov cl, byte [0x528b3e]
mov dword [ebp - 0x538], 0xe8
mov dword [ebp - 0x94], edx
mov word [ebp - 0x90], ax
mov byte [ebp - 0x8e], cl
jmp 0x4c702e
mov dword [ebp - 0x540], esi
mov dword [ebp - 0x538], esi
mov ebx, esi
jmp 0x4c702e
mov edx, dword [str.Virtual_Disk]
mov eax, dword [0x528b44]
mov ecx, dword [0x528b48]
mov dword [ebp - 0x94], edx
mov dl, byte [0x528b4c]
mov dword [ebp - 0x538], 0xea
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 0x88], dl
mov eax, dword [str.0_KB]
mov cl, byte [0x528b54]
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 0x1c8], cl
mov dword [ebp - 0x234], eax
mov byte [ebp - 0x230], cl
mov dword [ebp - 0x164], eax
mov byte [ebp - 0x160], cl
cmp ebx, esi
je 0x4c71b1
cmp ebx, 1
je 0x4c71b1
cmp ebx, 5
je 0x4c71b1
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x554]
push ecx
lea edx, [ebp - 0x56c]
push edx
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 0x550], esi
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x548], esi
mov dword [ebp - 0x54c], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edi, dword [ebp - 0x550]
mov eax, dword [ebp - 0x554]
cmp edi, esi
jne 0x4c70c9
cmp eax, esi
je 0x4c71b1
mov ebx, dword [ebp - 0x548]
mov ecx, dword [ebp - 0x54c]
shl edi, 0x16
shr eax, 0xa
shl ebx, 0x16
shr ecx, 0xa
add edi, eax
add ebx, ecx
mov dword [ebp - 0x558], 0
test esi, esi
ja 0x4c7145
jb 0x4c70fd
cmp edi, 0x800
jae 0x4c7145
push esi
push edi
lea edx, [ebp - 0x1cc]
push str._ld_KB
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
sub edi, ebx
sbb esi, dword [ebp - 0x558]
lea eax, [ebp - 0x234]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str._ld_KB
push eax
call esi
mov ecx, dword [ebp - 0x558]
push ecx
push ebx
push str._ld_KB
lea edx, [ebp - 0x164]
push edx
jmp 0x4c71a4
mov eax, edi
mov ecx, esi
shrd eax, ecx, 0xa
shr ecx, 0xa
push ecx
push eax
lea edx, [ebp - 0x1cc]
push str._ld_MB
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
sub edi, ebx
sbb esi, dword [ebp - 0x558]
lea eax, [ebp - 0x234]
shrd edi, esi, 0xa
shr esi, 0xa
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str._ld_MB
push eax
call esi
mov eax, dword [ebp - 0x558]
shrd ebx, eax, 0xa
shr eax, 0xa
push eax
push ebx
push str._ld_MB
lea ecx, [ebp - 0x164]
push ecx
call esi
mov ebx, dword [ebp - 0x540]
add esp, 0x30
xor esi, esi
cmp dword [ebp - 0x538], esi
jle 0x4c728d
push 0xff
lea edx, [ebp - 0x333]
push esi
push edx
mov byte [ebp - 0x334], 0
call fcn.004e7d90
add esp, 0xc
cmp ebx, esi
je 0x4c721a
cmp ebx, 1
je 0x4c721a
cmp ebx, 5
je 0x4c721a
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x334]
push str._s_s_t_s_t_Available:__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x4c723d
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x334]
push str._s_s_t
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1fe
lea eax, [ebp - 0x532]
xor edx, edx
push esi
push eax
mov word [ebp - 0x534], dx
call fcn.004e7d90
lea ecx, [ebp - 0x534]
push ecx
lea ebx, [ebp - 0x334]
call fcn.004bb6e0
mov edx, dword [ebp - 0x538]
mov esi, dword [ebp - 0x564]
mov ebx, dword [ebp - 0x560]
push edx
lea edi, [ebp - 0x534]
call fcn.004c0b90
add esp, 0x14
xor esi, esi
shr dword [ebp - 0x544], 1
inc dword [ebp - 0x53c]
mov eax, dword [ebp - 0x544]
cmp eax, esi
jne 0x4c6db0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret