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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b0
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.00413b26
cmp eax, 9
pop ecx
mov dword [ebp + 8], eax
jne 0x42284b
push 0
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00422e0a
jmp 0x422cd8
cmp eax, 4
push ebx
jne 0x4228c4
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.00438c79
lea eax, [ebp - 0x130]
push eax
call fcn.00455c50
xor ebx, ebx
add esp, 0x10
cmp eax, ebx
je 0x42288a
lea eax, [ebp + eax - 0x130]
cmp byte [eax - 1], 0x5c
je 0x42288a
mov byte [eax], 0x5c
xor edi, edi
inc edi
push edi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
add esi, 9
push esi
call fcn.00401a22
pop ecx
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
test eax, eax
mov eax, 0x45871c
jne 0x4228ba
mov eax, 0x459f14
push edi
push ebx
push 0xffffffffffffffff
push eax
jmp 0x422ccc
mov ecx, dword [0x465b20]
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 0x459f14
call fcn.00401592
mov eax, dword [ebp + 8]
cmp eax, 8
mov esi, dword [0x467ff0]
mov dword [ebp - 4], esi
ja case.0x4228f2.4
jmp dword [eax*4 + 0x422cde]
mov esi, dword [ebp + 0xc]
cmp byte [esi], bl
jne 0x42290c
mov dword [ebp + 8], 0x100
jmp 0x4229a2
push str.CDRom
push esi
call fcn.00441811
test eax, eax
pop ecx
pop ecx
jne 0x422926
mov dword [ebp + 8], 5
jmp 0x4229a2
push str.Removable
push esi
call fcn.00441811
test eax, eax
pop ecx
pop ecx
jne 0x422940
mov dword [ebp + 8], 2
jmp 0x4229a2
push str.Fixed
push esi
call fcn.00441811
test eax, eax
pop ecx
pop ecx
jne 0x42295a
mov dword [ebp + 8], 3
jmp 0x4229a2
push str.Network
push esi
call fcn.00441811
test eax, eax
pop ecx
pop ecx
jne 0x422974
mov dword [ebp + 8], 4
jmp 0x4229a2
push str.Ramdisk
push esi
call fcn.00441811
test eax, eax
pop ecx
pop ecx
jne 0x42298e
mov dword [ebp + 8], 6
jmp 0x4229a2
push str.Unknown
push esi
call fcn.00441811
test eax, eax
pop ecx
pop ecx
jne 0x422a19
mov dword [ebp + 8], ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
xor esi, esi
mov byte [ebp + 0xf], 0x41
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x1b0], al
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp - 0x1af], 0x3a
mov byte [ebp - 0x1ae], 0x5c
mov byte [ebp - 0x1ad], bl
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, dword [ebp + 8]
je 0x4229eb
cmp dword [ebp + 8], 0x100
jne 0x4229f3
cmp eax, edi
je 0x4229f3
mov al, byte [ebp + 0xf]
mov byte [ebp + esi - 0x28], al
inc esi
inc byte [ebp + 0xf]
cmp byte [ebp + 0xf], 0x5a
jbe 0x4229af
mov ecx, dword [ebp - 4]
push edi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
mov byte [ebp + esi - 0x28], bl
call fcn.00401592
cmp byte [ebp - 0x28], bl
jne case.0x4228f2.4
mov eax, edi
jmp 0x422cd7
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.00438c79
lea eax, [ebp - 0x130]
push eax
call fcn.00455c50
add esp, 0x10
cmp eax, ebx
je 0x422a57
lea eax, [ebp + eax - 0x130]
cmp byte [eax - 1], 0x5c
je 0x422a57
mov byte [eax], 0x5c
push edi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov eax, 0xff
push eax
lea ecx, [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
je case.0x4228f2.0
mov eax, dword [ebp + 8]
dec eax
dec eax
je 0x422ac0
dec eax
je 0x422ab5
dec eax
dec eax
jne case.0x4228f2.4
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004018f8
jmp case.0x4228f2.4
lea eax, [ebp - 0x230]
jmp 0x422cb7
lea eax, [ebp - 0x4b0]
jmp 0x422cb7
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.00438c79
lea eax, [ebp - 0x130]
push eax
call fcn.00455c50
add esp, 0x10
cmp eax, ebx
je 0x422b02
lea eax, [ebp + eax - 0x130]
cmp byte [eax - 1], 0x5c
je 0x422b02
mov byte [eax], 0x5c
push edi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
sub eax, ebx
push edi
push ebx
mov ecx, esi
push 0xffffffffffffffff
je 0x422bed
dec eax
dec eax
je 0x422b62
dec eax
je 0x422b58
dec eax
je 0x422b4e
dec eax
je 0x422b44
dec eax
je 0x422b3a
push ebx
jmp 0x422cd2
push str.RAMDisk
jmp 0x422cbe
push str.CDROM
jmp 0x422cbe
push str.Network
jmp 0x422cbe
push str.Fixed
jmp 0x422cbe
push str.Removable
jmp 0x422cbe
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.00438c79
lea eax, [ebp - 0x130]
push eax
call fcn.00455c50
add esp, 0x10
cmp eax, ebx
je 0x422ba3
lea eax, [ebp + eax - 0x130]
cmp byte [eax - 1], 0x5c
je 0x422ba3
mov byte [eax], 0x5c
push edi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
je 0x422bcf
xor eax, eax
jmp 0x422bd5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, ebx
push edi
push ebx
push 0xffffffffffffffff
je 0x422c15
sub eax, 3
je 0x422c0b
sub eax, 0x10
mov ecx, esi
je 0x422c01
dec eax
dec eax
je 0x422bf7
push str.Unknown
jmp 0x422cbe
push str.NotReady
jmp 0x422cbe
push str.ReadOnly
jmp 0x422cbe
push str.Invalid
jmp 0x422cbc
push str.Ready
jmp 0x422cbc
mov eax, dword [ebp + 0xc]
cmp byte [eax], bl
jne 0x422c4e
push ebx
push 0x80
lea eax, [ebp - 0x2b0]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
je 0x422cb1
push edi
push ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
jmp 0x422cd2
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [ebp - 0x3b0]
push 0x100
push eax
call fcn.00409c5f
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
add esp, 0x10
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3b0]
push eax
call esi
test eax, eax
jne 0x422ca4
push ebx
push 0x80
lea eax, [ebp - 0x2b0]
push eax
push str.status_cd_mode
call esi
push ebx
push ebx
push ebx
push str.close_cd_wait
mov dword [ebp + 0xc], eax
call esi
cmp dword [ebp + 0xc], ebx
je 0x422cae
mov ecx, dword [ebp - 4]
push edi
push ebx
push 0xffffffffffffffff
push ebx
jmp 0x422cd2
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x2b0]
push edi
push ebx
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00401592
push edi
push ebx
push 0xffffffffffffffff
push 0x45871c
mov ecx, dword [0x465b20]
call fcn.00401592
pop ebx
pop edi
pop esi
leave
ret 8