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

Disassembly:
mov eax, 0x1085c
call fcn.004cdac0
push ebx
push esi
push edi
mov edi, dword [esp + 0x1086c]
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0x14], ebx
call fcn.0042cc40
mov esi, eax
cmp esi, 9
jne 0x45f944
push 0
push dword [esp + 0x10874]
mov ecx, ebx
call fcn.0045f4f0
pop edi
pop esi
pop ebx
add esp, 0x1085c
ret 8
cmp esi, 4
jne 0x45f9fe
push 0x7ffe
push dword [esp + 0x10874]
lea eax, [esp + 0x870]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x868]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x10864], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f980
sub ecx, edx
sar ecx, 1
je 0x45f9a9
cmp word [esp + ecx*2 + 0x866], 0x5c
je 0x45f9a9
mov eax, 0x5c
mov word [esp + ecx*2 + 0x868], ax
lea eax, [edi + 0x12]
nop dword [eax]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x45f9bd
cmp ecx, 9
jne 0x45f9c2
add eax, 2
jmp 0x45f9b0
push eax
lea eax, [esp + 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push 1
test eax, eax
mov edx, 0x4e613c
push 0
mov ecx, 0x4cfd08
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4fb9cc]
call fcn.004b5b70
pop edi
pop esi
pop ebx
add esp, 0x1085c
ret 8
push ebp
mov ebp, dword [0x4fd218]
mov ecx, ebp
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004b5b70
cmp esi, 8
ja case.0x45fa1d.4
jmp dword [esi*4 + 0x45fe84]
mov esi, dword [esp + 0x10874]
cmp word [esi], 0
jne 0x45fa38
mov esi, 0x100
jmp 0x45fab7
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 0x45fa52
lea esi, [eax + 5]
jmp 0x45fab7
push str.Removable
push esi
call edi
add esp, 8
test eax, eax
jne 0x45fa66
lea esi, [eax + 2]
jmp 0x45fab7
push str.Fixed
push esi
call edi
add esp, 8
test eax, eax
jne 0x45fa7a
lea esi, [eax + 3]
jmp 0x45fab7
push str.Network
push esi
call edi
add esp, 8
test eax, eax
jne 0x45fa8e
lea esi, [eax + 4]
jmp 0x45fab7
push str.Ramdisk
push esi
call edi
add esp, 8
test eax, eax
jne 0x45faa2
lea esi, [eax + 6]
jmp 0x45fab7
push str.Unknown
push esi
call edi
add esp, 8
test eax, eax
jne case.0x45fa1d.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 + 0x6c], ax
xor eax, eax
mov word [esp + 0x72], ax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x72], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
je 0x45faf8
cmp esi, 0x100
jne 0x45fb03
cmp eax, 1
je 0x45fb03
mov ax, word [esp + 0x14]
mov word [esp + edi*2 + 0x2c], ax
inc edi
inc bl
cmp bl, 0x5a
jbe 0x45fac0
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.004b5b70
cmp word [esp + 0x2c], 0
jne case.0x45fa1d.4
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x45fe64
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
jmp 0x45fc29
push 0x7ffe
push dword [esp + 0x10878]
lea eax, [esp + 0x874]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x86c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x10868], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fb85
sub ecx, edx
sar ecx, 1
je 0x45fbae
cmp word [esp + ecx*2 + 0x86a], 0x5c
je 0x45fbae
mov eax, 0x5c
mov word [esp + ecx*2 + 0x86c], ax
push 0xff
lea eax, [esp + 0x470]
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 + 0x284]
push eax
lea eax, [esp + 0x888]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x45fa1d.0
sub esi, 2
je 0x45fc41
sub esi, 1
je 0x45fc09
sub esi, 2
jne case.0x45fa1d.4
push dword [esp + 0x10]
mov ecx, ebp
call fcn.00401620
jmp case.0x45fa1d.4
lea eax, [esp + 0x26c]
push 1
push 0
push 0xffffffffffffffff
push eax
mov ecx, ebp
call fcn.004b5b70
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
mov ecx, dword [0x4fb9cc]
call fcn.004b5b70
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1085c
ret 8
lea eax, [esp + 0x46c]
jmp 0x45fc10
push 0x7ffe
push dword [esp + 0x10878]
lea eax, [esp + 0x874]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x86c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x10868], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fc80
sub ecx, edx
sar ecx, 1
je 0x45fca9
cmp word [esp + ecx*2 + 0x86a], 0x5c
je 0x45fca9
mov eax, 0x5c
mov word [esp + ecx*2 + 0x86c], ax
lea eax, [esp + 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x45fa1d.0
jmp dword [eax*4 + 0x45fea8]
mov eax, str.Unknown
jmp 0x45fc10
mov eax, str.Removable
jmp 0x45fc10
mov eax, str.Fixed
jmp 0x45fc10
mov eax, str.Network
jmp 0x45fc10
mov eax, str.CDROM
jmp 0x45fc10
mov eax, str.RAMDisk
jmp 0x45fc10
push 0x7ffe
push dword [esp + 0x10878]
lea eax, [esp + 0x874]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x86c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x10868], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fd34
sub ecx, edx
sar ecx, 1
je 0x45fd5d
cmp word [esp + ecx*2 + 0x86a], 0x5c
je 0x45fd5d
mov eax, 0x5c
mov word [esp + ecx*2 + 0x86c], 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 + 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne case.0x45fd99.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x45fcc0.2156
movzx eax, byte [eax + 0x45fed8]
jmp dword [eax*4 + 0x45fec4]
mov eax, str.Invalid
jmp 0x45fc10
mov eax, str.NotReady
jmp 0x45fc10
mov eax, str.ReadOnly
jmp 0x45fc10
mov eax, str.Ready
jmp 0x45fc10
mov eax, dword [esp + 0x10874]
cmp word [eax], 0
jne 0x45fdf3
push 0
push 0x80
lea eax, [esp + 0x174]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jmp 0x45fe52
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [esp + 0x674]
push 0x100
push eax
call fcn.004b1470
mov edi, dword [sym.imp.WINMM.dll_mciSendStringW]
lea eax, [esp + 0x67c]
add esp, 0x10
push 0
push 0
push 0
push eax
call edi
test eax, eax
jne case.0x45fa1d.0
push eax
push 0x80
lea eax, [esp + 0x174]
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.0x45fa1d.0
lea eax, [esp + 0x16c]
jmp 0x45fc10
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e3e0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1085c
ret 8