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

Disassembly:
sub esp, 0xa68
push ebx
push esi
push edi
mov edi, dword [esp + 0xa78]
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0x14], ebx
call fcn.004289a0
mov esi, eax
cmp esi, 9
jne 0x458470
push 0
push dword [esp + 0xa80]
mov ecx, ebx
call fcn.00457f70
pop edi
pop esi
pop ebx
add esp, 0xa68
ret 8
cmp esi, 4
jne 0x45851b
push 0x103
push dword [esp + 0xa80]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x68]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x26e], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4584a4
sub ecx, edx
sar ecx, 1
je 0x4584c7
cmp word [esp + ecx*2 + 0x66], 0x5c
je 0x4584c7
mov eax, 0x5c
mov word [esp + ecx*2 + 0x68], ax
lea eax, [edi + 0x12]
nop word [eax + eax]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4584dd
cmp ecx, 9
jne 0x4584e2
add eax, 2
jmp 0x4584d0
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push 1
test eax, eax
mov edx, 0x4cffc4
push 0
mov ecx, 0x4b9cc4
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4e5b90]
call fcn.004a05c0
pop edi
pop esi
pop ebx
add esp, 0xa68
ret 8
push ebp
mov ebp, dword [0x4e73b0]
mov ecx, ebp
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a05c0
cmp esi, 8
ja case.0x45853a.4
jmp dword [esi*4 + 0x458990]
mov esi, dword [esp + 0xa80]
cmp word [esi], 0
jne 0x458555
mov esi, pe_nt_image_headers32
jmp 0x4585d4
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.CDRom
push esi
call edi
add esp, 8
test eax, eax
jne 0x45856f
lea esi, [eax + 5]
jmp 0x4585d4
push str.Removable
push esi
call edi
add esp, 8
test eax, eax
jne 0x458583
lea esi, [eax + 2]
jmp 0x4585d4
push str.Fixed
push esi
call edi
add esp, 8
test eax, eax
jne 0x458597
lea esi, [eax + 3]
jmp 0x4585d4
push str.Network
push esi
call edi
add esp, 8
test eax, eax
jne 0x4585ab
lea esi, [eax + 4]
jmp 0x4585d4
push str.Ramdisk
push esi
call edi
add esp, 8
test eax, eax
jne 0x4585bf
lea esi, [eax + 6]
jmp 0x4585d4
push str.Unknown
push esi
call edi
add esp, 8
test eax, eax
jne case.0x45853a.0
xor esi, esi
xor edi, edi
mov bl, 0x41
nop dword [eax + eax]
movzx eax, bl
mov word [esp + 0x14], ax
mov word [esp + 0x278], ax
xor eax, eax
mov word [esp + 0x27e], ax
lea eax, [esp + 0x278]
push eax
mov dword [esp + 0x27e], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
je 0x458624
cmp esi, 0x100
jne 0x45862f
cmp eax, 1
je 0x45862f
mov ax, word [esp + 0x14]
mov word [esp + edi*2 + 0x2c], ax
inc edi
inc bl
cmp bl, 0x5a
jbe 0x4585e0
xor eax, eax
mov ecx, ebp
push 1
push eax
mov word [esp + edi*2 + 0x34], ax
lea eax, [esp + 0x34]
push 0xffffffffffffffff
push eax
call fcn.004a05c0
cmp word [esp + 0x2c], 0
jne case.0x45853a.4
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4e30fc]
test byte [eax + 0x100], 1
jne 0x458970
push 1
push 0
push 0xffffffffffffffff
push 0x4cffc4
jmp 0x45874e
push 0x103
push dword [esp + 0xa84]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x6c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x272], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4586b0
sub ecx, edx
sar ecx, 1
je 0x4586d3
cmp word [esp + ecx*2 + 0x6a], 0x5c
je 0x4586d3
mov eax, 0x5c
mov word [esp + ecx*2 + 0x6c], ax
push 0xff
lea eax, [esp + 0x67c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0xff
lea eax, [esp + 0x490]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x45853a.0
sub esi, 2
je 0x458766
sub esi, 1
je 0x45872e
sub esi, 2
jne case.0x45853a.4
push dword [esp + 0x10]
mov ecx, ebp
call fcn.00401650
jmp case.0x45853a.4
lea eax, [esp + 0x478]
push 1
push 0
push 0xffffffffffffffff
push eax
mov ecx, ebp
call fcn.004a05c0
push 1
push 0
push 0xffffffffffffffff
push 0x4b9cc4
mov ecx, dword [0x4e5b90]
call fcn.004a05c0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa68
ret 8
lea eax, [esp + 0x678]
jmp 0x458735
push 0x103
push dword [esp + 0xa84]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x6c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x272], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4587a0
sub ecx, edx
sar ecx, 1
je 0x4587c3
cmp word [esp + ecx*2 + 0x6a], 0x5c
je 0x4587c3
mov eax, 0x5c
mov word [esp + ecx*2 + 0x6c], ax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x45853a.0
jmp dword [eax*4 + 0x4589b4]
mov eax, str.Unknown
jmp 0x458735
mov eax, str.Removable
jmp 0x458735
mov eax, str.Fixed
jmp 0x458735
mov eax, str.Network
jmp 0x458735
mov eax, str.CDROM
jmp 0x458735
mov eax, str.RAMDisk
jmp 0x458735
push 0x103
push dword [esp + 0xa84]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x6c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x272], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458845
sub ecx, edx
sar ecx, 1
je 0x458868
cmp word [esp + ecx*2 + 0x6a], 0x5c
je 0x458868
mov eax, 0x5c
mov word [esp + ecx*2 + 0x6c], ax
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 + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x45888f
xor eax, eax
jmp 0x45889e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x4587d7.108
movzx eax, byte [eax + 0x4589e4]
jmp dword [eax*4 + 0x4589d0]
mov eax, str.Ready
jmp 0x458735
mov eax, str.Invalid
jmp 0x458735
mov eax, str.NotReady
jmp 0x458735
mov eax, str.ReadOnly
jmp 0x458735
mov eax, dword [esp + 0xa80]
cmp word [eax], 0
jne 0x4588ff
push 0
push 0x80
lea eax, [esp + 0x380]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jmp 0x45895e
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [esp + 0x880]
push pe_nt_image_headers32
push eax
call fcn.0049c640
mov edi, dword [sym.imp.WINMM.dll_mciSendStringW]
lea eax, [esp + 0x888]
add esp, 0x10
push 0
push 0
push 0
push eax
call edi
test eax, eax
jne case.0x45853a.0
push eax
push 0x80
lea eax, [esp + 0x380]
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.0x45853a.0
lea eax, [esp + 0x378]
jmp 0x458735
push 0x4b9c10
push 0
push 0x4cffc4
mov ecx, ebx
call fcn.00447640
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa68
ret 8