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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x63
xor esi, esi
lea edx, [ebp - 0xfb]
xor ebx, ebx
push esi
push edx
mov dword [ebp - 0x560], eax
mov dword [ebp - 0x564], ecx
mov dword [ebp - 0x544], ebx
mov byte [ebp - 0xfc], bl
call fcn.004e8ba0
push 0x63
lea eax, [ebp - 0x93]
push esi
push eax
mov byte [ebp - 0x94], bl
call fcn.004e8ba0
push 0x63
lea ecx, [ebp - 0x163]
push esi
push ecx
mov byte [ebp - 0x164], bl
call fcn.004e8ba0
push 0x63
lea edx, [ebp - 0x233]
push esi
push edx
mov byte [ebp - 0x234], bl
call fcn.004e8ba0
push 0x63
lea eax, [ebp - 0x1cb]
push esi
push eax
mov byte [ebp - 0x1cc], bl
call fcn.004e8ba0
add esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x540], 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 0x4c962b
lea ecx, [ecx]
cmp ebx, 0x1a
jge 0x4c962b
test al, 1
je 0x4c960e
lea ecx, [ebp - 0xfc]
add bl, 0x41
push ecx
mov dword [ebp - 0x538], esi
mov byte [ebp - 0xfc], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
lea eax, [ebx - 2]
mov dword [ebp - 0x53c], ebx
cmp eax, 4
ja case.default.0x4c9161
jmp dword [eax*4 + 0x4c963c]
cmp dword [ebp - 0x544], 2
jge 0x4c91a5
mov edx, dword [str.Floppy]
mov ax, word [0x54c0f8]
mov cl, byte [0x54c0fa]
mov dword [ebp - 0x538], 0xe6
mov dword [ebp - 0x94], edx
mov word [ebp - 0x90], ax
mov byte [ebp - 0x8e], cl
jmp case.default.0x4c9161
mov edx, dword [str.Removable_Disk]
mov eax, dword [0x54c100]
mov ecx, dword [0x54c104]
mov dword [ebp - 0x94], edx
mov dx, word [0x54c108]
mov dword [ebp - 0x90], eax
mov al, byte [0x54c10a]
mov dword [ebp - 0x538], 0xe9
mov dword [ebp - 0x8c], ecx
mov word [ebp - 0x88], dx
mov byte [ebp - 0x86], al
jmp case.default.0x4c9161
mov eax, dword [0x54c114]
mov ecx, dword [str.Logical_Disk]
mov edx, dword [0x54c110]
push 0xf
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebp - 0x94], ecx
mov cl, byte [0x54c118]
mov dword [ebp - 0x90], edx
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
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 0x88], cl
lea eax, [ebp - 0x574]
push eax
lea ecx, [ebp - 0x57c]
push ecx
lea edx, [ebp - 0x578]
push edx
push 0xf
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xfc]
push ecx
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c9286
sub eax, edx
je 0x4c92f8
lea edi, [ebp - 0x94]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c9298
mov dx, word [0x54c11c]
lea eax, [ebp - 0x18]
mov word [edi], dx
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c92b0
lea edi, [ebp - 0x94]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c92c0
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
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c92e0
mov ax, word [0x519fa4]
mov word [edi], ax
xor esi, esi
jmp case.default.0x4c9161
lea eax, [ebp - 0x94]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4c9300
mov ecx, dword [str._Not_Formatted_]
mov edx, dword [0x54c124]
mov dword [eax], ecx
mov ecx, dword [0x54c128]
mov dword [eax + 4], edx
mov edx, dword [0x54c12c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp case.default.0x4c9161
mov eax, dword [str.CD_ROM]
mov cx, word [0x54c134]
mov dl, byte [0x54c136]
mov dword [ebp - 0x538], 0xe8
mov dword [ebp - 0x94], eax
mov word [ebp - 0x90], cx
mov byte [ebp - 0x8e], dl
jmp case.default.0x4c9161
mov dword [ebp - 0x53c], esi
mov dword [ebp - 0x538], esi
mov ebx, esi
jmp case.default.0x4c9161
mov eax, dword [str.Virtual_Disk]
mov ecx, dword [0x54c13c]
mov edx, dword [0x54c140]
mov dword [ebp - 0x94], eax
mov al, byte [0x54c144]
mov dword [ebp - 0x538], 0xea
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
mov byte [ebp - 0x88], al
mov eax, dword [str.0_KB]
mov cl, byte [0x54c14c]
mov dword [ebp - 0x164], eax
mov byte [ebp - 0x160], cl
mov dword [ebp - 0x234], eax
mov byte [ebp - 0x230], cl
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 0x1c8], cl
cmp ebx, esi
je 0x4c952c
cmp ebx, 1
je 0x4c952c
cmp ebx, 5
je 0x4c952c
lea ecx, [ebp - 0x54c]
push ecx
lea edx, [ebp - 0x554]
push edx
lea eax, [ebp - 0x56c]
push eax
lea ecx, [ebp - 0xfc]
push ecx
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 0x4c9444
cmp eax, esi
je 0x4c952c
mov ebx, dword [ebp - 0x548]
mov edx, dword [ebp - 0x54c]
shl edi, 0x16
shr eax, 0xa
shl ebx, 0x16
shr edx, 0xa
add edi, eax
add ebx, edx
mov dword [ebp - 0x558], 0
test esi, esi
ja 0x4c94c0
jb 0x4c9478
cmp edi, 0x800
jae 0x4c94c0
push esi
push edi
lea eax, [ebp - 0x164]
push str._ld_KB
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
sub edi, ebx
sbb esi, dword [ebp - 0x558]
lea ecx, [ebp - 0x234]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str._ld_KB
push ecx
call esi
mov edx, dword [ebp - 0x558]
push edx
push ebx
push str._ld_KB
lea eax, [ebp - 0x1cc]
push eax
jmp 0x4c951f
mov ecx, edi
mov edx, esi
shrd ecx, edx, 0xa
shr edx, 0xa
push edx
push ecx
lea eax, [ebp - 0x164]
push str._ld_MB
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
sub edi, ebx
sbb esi, dword [ebp - 0x558]
lea ecx, [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 ecx
call esi
mov eax, dword [ebp - 0x558]
shrd ebx, eax, 0xa
shr eax, 0xa
push eax
push ebx
push str._ld_MB
lea edx, [ebp - 0x1cc]
push edx
call esi
mov ebx, dword [ebp - 0x53c]
add esp, 0x30
xor esi, esi
cmp dword [ebp - 0x538], esi
jle 0x4c9608
push 0xff
lea eax, [ebp - 0x333]
push esi
push eax
mov byte [ebp - 0x334], 0
call fcn.004e8ba0
add esp, 0xc
cmp ebx, esi
je 0x4c9595
cmp ebx, 1
je 0x4c9595
cmp ebx, 5
je 0x4c9595
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xfc]
push ecx
lea edx, [ebp - 0x334]
push str._s_s_t_s_t_Available:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x4c95b8
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xfc]
push ecx
lea edx, [ebp - 0x334]
push str._s_s_t
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1fe
lea ecx, [ebp - 0x532]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x534], ax
call fcn.004e8ba0
lea edx, [ebp - 0x534]
push edx
lea ebx, [ebp - 0x334]
call fcn.004b76c0
mov eax, dword [ebp - 0x538]
mov esi, dword [ebp - 0x564]
mov ebx, dword [ebp - 0x560]
push eax
lea edi, [ebp - 0x534]
call fcn.004c2ef0
add esp, 0x14
xor esi, esi
mov eax, dword [ebp - 0x540]
mov ebx, dword [ebp - 0x544]
shr eax, 1
inc ebx
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x544], ebx
cmp eax, esi
jne 0x4c9120
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret