Function at 0x4563c0
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.00429840
mov esi, eax
cmp esi, 9
jne 0x456400
push 0
push dword [esp + 0x558]
mov ecx, ebx
call fcn.00455fb0
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8
cmp esi, 4
jne 0x456498
push 0x102
push dword [esp + 0x558]
lea eax, [esp + 0x50]
push eax
call fcn.004b9880
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 0x456431
sub ecx, edx
je 0x456448
cmp byte [esp + ecx + 0x47], 0x5c
je 0x456448
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [edi + 9]
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, 0x20
je 0x45645c
cmp cl, 9
jne 0x45645f
inc eax
jmp 0x456450
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push 1
test eax, eax
mov edx, 0x4d07c0
push 0
mov ecx, 0x4d03bc
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4e7934]
call fcn.0049e6b0
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8
push ebp
mov ebp, dword [0x4e90f8]
mov ecx, ebp
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0049e6b0
cmp esi, 8
ja case.0x4564b7.4
jmp dword [esi*4 + 0x4568c4]
mov esi, dword [esp + 0x558]
cmp byte [esi], 0
jne 0x4564d4
mov esi, 0x100
jmp 0x45655b
push str.CDRom
push esi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4564eb
lea esi, [eax + 5]
jmp 0x45655b
push str.Removable
push esi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x456502
lea esi, [eax + 2]
jmp 0x45655b
push str.Fixed
push esi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x456519
lea esi, [eax + 3]
jmp 0x45655b
push str.Network
push esi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x456530
lea esi, [eax + 4]
jmp 0x45655b
push str.Ramdisk
push esi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x456547
lea esi, [eax + 6]
jmp 0x45655b
push str.Unknown
push esi
call fcn.004b218a
add esp, 8
test eax, eax
jne case.0x4564b7.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 0x456598
cmp esi, 0x100
jne 0x45659d
cmp eax, 1
je 0x45659d
mov byte [esp + edi + 0x2c], bl
inc edi
inc bl
cmp bl, 0x5a
jbe 0x456560
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x38]
mov byte [esp + edi + 0x38], 0
push eax
mov ecx, ebp
call fcn.0049e6b0
cmp byte [esp + 0x2c], 0
jne case.0x4564b7.4
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x4568a4
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
jmp 0x4566a3
push 0x102
push dword [esp + 0x55c]
lea eax, [esp + 0x54]
push eax
call fcn.004b9880
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 0x456614
sub ecx, edx
je 0x45662b
cmp byte [esp + ecx + 0x4b], 0x5c
je 0x45662b
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.0x4564b7.0
sub esi, 2
je 0x4566bb
sub esi, 1
je 0x456683
sub esi, 2
jne case.0x4564b7.4
push dword [esp + 0x10]
mov ecx, ebp
call fcn.00401660
jmp case.0x4564b7.4
lea eax, [esp + 0x250]
push 1
push 0
push 0xffffffffffffffff
push eax
mov ecx, ebp
call fcn.0049e6b0
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
mov ecx, dword [0x4e7934]
call fcn.0049e6b0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8
lea eax, [esp + 0x350]
jmp 0x45668a
push 0x102
push dword [esp + 0x55c]
lea eax, [esp + 0x54]
push eax
call fcn.004b9880
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 0x4566f0
sub ecx, edx
je 0x456707
cmp byte [esp + ecx + 0x4b], 0x5c
je 0x456707
mov byte [esp + ecx + 0x4c], 0x5c
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x4564b7.0
jmp dword [eax*4 + 0x4568e8]
mov eax, str.Unknown
jmp 0x45668a
mov eax, str.Removable
jmp 0x45668a
mov eax, str.Fixed
jmp 0x45668a
mov eax, str.Network
jmp 0x45668a
mov eax, str.CDROM
jmp 0x45668a
mov eax, str.RAMDisk
jmp 0x45668a
push 0x102
push dword [esp + 0x55c]
lea eax, [esp + 0x54]
push eax
call fcn.004b9880
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 0x456786
sub ecx, edx
je 0x45679d
cmp byte [esp + ecx + 0x4b], 0x5c
je 0x45679d
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
je 0x4567c4
xor eax, eax
jmp 0x4567d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x45671b.76
movzx eax, byte [eax + 0x456918]
jmp dword [eax*4 + 0x456904]
mov eax, str.Ready
jmp 0x45668a
mov eax, str.Invalid
jmp 0x45668a
mov eax, str.NotReady
jmp 0x45668a
mov eax, str.ReadOnly
jmp 0x45668a
mov eax, dword [esp + 0x558]
cmp byte [eax], 0
jne 0x456833
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 0x456892
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [esp + 0x458]
push 0x100
push eax
call fcn.0049a540
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.0x4564b7.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.0x4564b7.0
lea eax, [esp + 0x1d0]
jmp 0x45668a
push 0x4d0335
push 0
push 0x4d07c0
mov ecx, ebx
call fcn.00446950
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x540
ret 8