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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb4
mov dword [ebp - 4], 0xa
mov eax, dword [0x758992]
mov dword [ebp - 0x10], eax
mov eax, dword [0x758996]
mov dword [ebp - 0xc], eax
mov ax, word [0x75899a]
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 0x4689ec
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 [0x7cfe2c], eax
xor edx, edx
mov dword [0x7cfe24], edx
mov dword [0x7cfe28], 1
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + 0x9a]
add eax, 0x41
push eax
push 0x759334
lea edx, [ebp - 0x144]
push edx
call fcn.00670e94
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 0x4689bd
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 0x468858
push 0x759339
lea ecx, [ebp - 0x248]
push ecx
call fcn.0066cbe8
add esp, 8
test eax, eax
jne 0x468858
mov dword [0x7cfe24], 1
xor eax, eax
mov dword [0x7cfe28], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xa4], 0x930
mov ecx, dword [0x7cfe24]
test ecx, ecx
jne 0x4689bd
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x4689bd
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.00670e94
add esp, 0xc
push 0
lea edx, [ebp - 0x34c]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x46890d
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.00670e94
add esp, 0xc
push 0
lea ecx, [ebp - 0x34c]
push ecx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x46890d
xor eax, eax
mov dword [0x7cfe28], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xa4], 0x930
mov ecx, dword [0x7cfe28]
test ecx, ecx
je 0x46899e
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.00670e94
add esp, 0xc
push 0
lea eax, [ebp - 0x34c]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x46899e
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.00670e94
add esp, 0xc
push 0
lea edx, [ebp - 0x34c]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x46899e
xor ecx, ecx
mov dword [0x7cfe28], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xa4], 0x930
mov edx, dword [0x7cfe28]
test edx, edx
je 0x4689bd
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x57e3f
jbe 0x4689bd
mov dword [0x7cfe2c], 1
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_SetErrorMode
mov eax, dword [0x7cfe28]
test eax, eax
je 0x4689e4
mov edx, dword [ebp - 0x20]
test edx, edx
jbe 0x4689e4
mov ecx, dword [ebp + 8]
push dword [ecx + 0xa0]
call fcn.004d4b78
pop ecx
mov eax, dword [ebp - 0x20]
jmp 0x468aab
push 0x10
push 0
lea edx, [ebp - 0x40]
push edx
call fcn.0066c86c
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.00467c44
add esp, 0x18
cmp al, 1
jne 0x468a65
lea ecx, [ebp - 0x40]
push ecx
call fcn.00468270
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0xa0], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00468270
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa4], eax
push dword [ebp + 8]
call fcn.004691f4
pop ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xa4]
cmp edx, 0x800
je 0x468aa2
mov ecx, dword [ebp + 8]
push dword [ecx + 0xa4]
push str.Abnormal_sector_size_detected:
call fcn.004626fc
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