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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb4
mov dword [ebp - 4], 0xa
mov eax, dword [0x761a9e]
mov dword [ebp - 0x10], eax
mov eax, dword [0x761aa2]
mov dword [ebp - 0xc], eax
mov ax, word [0x761aa6]
mov word [ebp - 8], ax
mov edx, dword [ebp + 8]
mov cl, byte [edx + 0xa]
shl ecx, 5
mov byte [ebp - 0xf], cl
mov eax, dword [ebp + 8]
mov dl, byte [eax + 1]
test dl, dl
je 0x468cd4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xac], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0xa4], 0x800
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0xa0], ecx
xor eax, eax
mov dword [0x7dd800], eax
xor edx, edx
mov dword [0x7dd7f8], edx
mov dword [0x7dd7fc], 1
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + 0x9a]
add eax, 0x41
push eax
push 0x762440
lea edx, [ebp - 0x144]
push edx
call fcn.006712b0
add esp, 0xc
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x144]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x468ca5
mov byte [ebp - 0x248], 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x104
lea eax, [ebp - 0x248]
push eax
lea edx, [ebp - 0x144]
push edx
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x468b40
push 0x762445
lea ecx, [ebp - 0x248]
push ecx
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x468b40
mov dword [0x7dd7f8], 1
xor eax, eax
mov dword [0x7dd7fc], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xa4], 0x930
mov ecx, dword [0x7dd7f8]
test ecx, ecx
jne 0x468ca5
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x468ca5
mov edx, dword [ebp - 0x20]
dec edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0xa4], 0x800
mov edx, dword [ebp + 8]
movsx ecx, byte [edx + 0x9a]
add ecx, 0x41
push ecx
push str._c:VCDINFO.VCD
lea eax, [ebp - 0x34c]
push eax
call fcn.006712b0
add esp, 0xc
push 0
lea edx, [ebp - 0x34c]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x468bf5
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + 0x9a]
add eax, 0x41
push eax
push str._c:VCDENTRIES.VCD
lea edx, [ebp - 0x34c]
push edx
call fcn.006712b0
add esp, 0xc
push 0
lea ecx, [ebp - 0x34c]
push ecx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x468bf5
xor eax, eax
mov dword [0x7dd7fc], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xa4], 0x930
mov ecx, dword [0x7dd7fc]
test ecx, ecx
je 0x468c86
mov eax, dword [ebp + 8]
movsx edx, byte [eax + 0x9a]
add edx, 0x41
push edx
push str._c:SVCDINFO.SVD
lea ecx, [ebp - 0x34c]
push ecx
call fcn.006712b0
add esp, 0xc
push 0
lea eax, [ebp - 0x34c]
push eax
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x468c86
mov edx, dword [ebp + 8]
movsx ecx, byte [edx + 0x9a]
add ecx, 0x41
push ecx
push str._c:VCDENTRIES.SVD
lea eax, [ebp - 0x34c]
push eax
call fcn.006712b0
add esp, 0xc
push 0
lea edx, [ebp - 0x34c]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x468c86
xor ecx, ecx
mov dword [0x7dd7fc], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xa4], 0x930
mov edx, dword [0x7dd7fc]
test edx, edx
je 0x468ca5
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x57e3f
jbe 0x468ca5
mov dword [0x7dd800], 1
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_SetErrorMode
mov eax, dword [0x7dd7fc]
test eax, eax
je 0x468ccc
mov edx, dword [ebp - 0x20]
test edx, edx
jbe 0x468ccc
mov ecx, dword [ebp + 8]
push dword [ecx + 0xa0]
call fcn.004d4f94
pop ecx
mov eax, dword [ebp - 0x20]
jmp 0x468d93
push 0x10
push 0
lea edx, [ebp - 0x40]
push edx
call fcn.0066cc88
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xac], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0xa4], 0x800
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0xa0], ecx
push 8
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 8
push dword [ebp + 8]
call fcn.00467f2c
add esp, 0x18
cmp al, 1
jne 0x468d4d
lea ecx, [ebp - 0x40]
push ecx
call fcn.00468558
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0xa0], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00468558
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa4], eax
push dword [ebp + 8]
call fcn.004694dc
pop ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xa4]
cmp edx, 0x800
je 0x468d8a
mov ecx, dword [ebp + 8]
push dword [ecx + 0xa4]
push str.Abnormal_sector_size_detected:
call fcn.004629e4
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0xa4], 0x800
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa0]
mov esp, ebp
pop ebp
ret