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

Disassembly:
sub esp, 0x540
push ebx
push esi
push edi
mov edi, dword [esp + 0x550]
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0xc], ebx
call fcn.0042ad60
mov esi, eax
cmp esi, 9
jne 0x45feb0
push 0
push dword [esp + 0x558]
mov ecx, ebx
call fcn.0045f980
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8
cmp esi, 4
jne 0x45ff48
push 0x102
push dword [esp + 0x558]
lea eax, [esp + 0x50]
push eax
call fcn.004cc440
lea ecx, [esp + 0x54]
mov byte [esp + 0x156], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45fee1
sub ecx, edx
je 0x45fef8
cmp byte [esp + ecx + 0x47], 0x5c
je 0x45fef8
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [edi + 9]
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, 0x20
je 0x45ff0c
cmp cl, 9
jne 0x45ff0f
inc eax
jmp 0x45ff00
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push 1
test eax, eax
mov edx, 0x4e37f8
push 0
mov ecx, 0x4e33f8
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4fb94c]
call fcn.004b01a0
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8
push ebp
mov ebp, dword [0x4fd110]
mov ecx, ebp
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b01a0
cmp esi, 8
ja case.0x45ff67.4
jmp dword [esi*4 + 0x460370]
mov esi, dword [esp + 0x558]
cmp byte [esi], 0
jne 0x45ff84
mov esi, 0x100
jmp 0x46000b
push str.CDRom
push esi
call fcn.004c408e
add esp, 8
test eax, eax
jne 0x45ff9b
lea esi, [eax + 5]
jmp 0x46000b
push str.Removable
push esi
call fcn.004c408e
add esp, 8
test eax, eax
jne 0x45ffb2
lea esi, [eax + 2]
jmp 0x46000b
push str.Fixed
push esi
call fcn.004c408e
add esp, 8
test eax, eax
jne 0x45ffc9
lea esi, [eax + 3]
jmp 0x46000b
push str.Network
push esi
call fcn.004c408e
add esp, 8
test eax, eax
jne 0x45ffe0
lea esi, [eax + 4]
jmp 0x46000b
push str.Ramdisk
push esi
call fcn.004c408e
add esp, 8
test eax, eax
jne 0x45fff7
lea esi, [eax + 6]
jmp 0x46000b
push str.Unknown
push esi
call fcn.004c408e
add esp, 8
test eax, eax
jne case.0x45ff67.0
xor esi, esi
xor edi, edi
mov bl, 0x41
nop
lea eax, [esp + 0x150]
mov byte [esp + 0x150], bl
push eax
mov word [esp + 0x155], 0x5c3a
mov byte [esp + 0x157], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
je 0x460048
cmp esi, 0x100
jne 0x46004d
cmp eax, 1
je 0x46004d
mov byte [esp + edi + 0x2c], bl
inc edi
inc bl
cmp bl, 0x5a
jbe 0x460010
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x38]
mov byte [esp + edi + 0x38], 0
push eax
mov ecx, ebp
call fcn.004b01a0
cmp byte [esp + 0x2c], 0
jne case.0x45ff67.4
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x460350
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
jmp 0x460153
push 0x102
push dword [esp + 0x55c]
lea eax, [esp + 0x54]
push eax
call fcn.004cc440
lea ecx, [esp + 0x58]
mov byte [esp + 0x15a], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4600c4
sub ecx, edx
je 0x4600db
cmp byte [esp + ecx + 0x4b], 0x5c
je 0x4600db
mov byte [esp + ecx + 0x4c], 0x5c
push 0xff
lea eax, [esp + 0x354]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push 0xff
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je case.0x45ff67.0
sub esi, 2
je 0x46016b
sub esi, 1
je 0x460133
sub esi, 2
jne case.0x45ff67.4
push dword [esp + 0x10]
mov ecx, ebp
call fcn.004015e0
jmp case.0x45ff67.4
lea eax, [esp + 0x250]
push 1
push 0
push 0xffffffffffffffff
push eax
mov ecx, ebp
call fcn.004b01a0
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
mov ecx, dword [0x4fb94c]
call fcn.004b01a0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8
lea eax, [esp + 0x350]
jmp 0x46013a
push 0x102
push dword [esp + 0x55c]
lea eax, [esp + 0x54]
push eax
call fcn.004cc440
lea ecx, [esp + 0x58]
mov byte [esp + 0x15a], 0
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4601a0
sub ecx, edx
je 0x4601b7
cmp byte [esp + ecx + 0x4b], 0x5c
je 0x4601b7
mov byte [esp + ecx + 0x4c], 0x5c
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x45ff67.0
jmp dword [eax*4 + 0x460394]
mov eax, str.Unknown
jmp 0x46013a
mov eax, str.Removable
jmp 0x46013a
mov eax, str.Fixed
jmp 0x46013a
mov eax, str.Network
jmp 0x46013a
mov eax, str.CDROM
jmp 0x46013a
mov eax, str.RAMDisk
jmp 0x46013a
push 0x102
push dword [esp + 0x55c]
lea eax, [esp + 0x54]
push eax
call fcn.004cc440
lea ecx, [esp + 0x58]
mov byte [esp + 0x15a], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460236
sub ecx, edx
je 0x46024d
cmp byte [esp + ecx + 0x4b], 0x5c
je 0x46024d
mov byte [esp + ecx + 0x4c], 0x5c
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne case.0x460286.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x4601cb.76
movzx eax, byte [eax + 0x4603c4]
jmp dword [eax*4 + 0x4603b0]
mov eax, str.Invalid
jmp 0x46013a
mov eax, str.NotReady
jmp 0x46013a
mov eax, str.ReadOnly
jmp 0x46013a
mov eax, str.Ready
jmp 0x46013a
mov eax, dword [esp + 0x558]
cmp byte [eax], 0
jne 0x4602df
push 0
push 0x80
lea eax, [esp + 0x1d8]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
jmp 0x46033e
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [esp + 0x458]
push 0x100
push eax
call fcn.004aba90
mov edi, dword [sym.imp.WINMM.dll_mciSendStringA]
lea eax, [esp + 0x460]
add esp, 0x10
push 0
push 0
push 0
push eax
call edi
test eax, eax
jne case.0x45ff67.0
push eax
push 0x80
lea eax, [esp + 0x1d8]
push eax
push str.status_cd_mode
call edi
push 0
push 0
push 0
push str.close_cd_wait
mov esi, eax
call edi
test esi, esi
jne case.0x45ff67.0
lea eax, [esp + 0x1d0]
jmp 0x46013a
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, ebx
call fcn.0044d4a0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8