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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54c
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.0041e280
mov ebx, eax
cmp ebx, 9
jne 0x44a025
mov eax, dword [ebp + 8]
push 0
push eax
mov eax, edi
call fcn.00449c40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 4
jne 0x44a0b2
push 0x102
lea ecx, [esp + 0x54]
push edi
push ecx
call fcn.00495b20
lea eax, [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x152], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a050
sub eax, edx
je 0x44a069
cmp byte [esp + eax + 0x4f], 0x5c
lea eax, [esp + eax + 0x50]
je 0x44a069
mov byte [eax], 0x5c
lea ecx, [esi + 9]
lea esp, [esp]
mov al, byte [ecx]
cmp al, 0x20
je 0x44a07a
cmp al, 9
jne 0x44a07d
inc ecx
jmp 0x44a070
push ecx
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
mov eax, 0x4a7950
jne 0x44a097
mov eax, 0x4a7dfc
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4bbc30]
push eax
call fcn.00482410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4bb368]
mov dword [esp + 0x10], ecx
call fcn.0041c000
cmp ebx, 8
ja case.0x44a0ca.4
jmp dword [ebx*4 + 0x44a508]
cmp byte [edi], 0
jne 0x44a0e0
mov esi, pe_nt_image_headers32
jmp 0x44a16b
push str.CDRom
push edi
call fcn.004926f1
add esp, 8
test eax, eax
jne 0x44a0f7
lea esi, [eax + 5]
jmp 0x44a16b
push str.Removable
push edi
call fcn.004926f1
add esp, 8
test eax, eax
jne 0x44a10e
lea esi, [eax + 2]
jmp 0x44a16b
push str.Fixed
push edi
call fcn.004926f1
add esp, 8
test eax, eax
jne 0x44a125
lea esi, [eax + 3]
jmp 0x44a16b
push str.Network
push edi
call fcn.004926f1
add esp, 8
test eax, eax
jne 0x44a13c
lea esi, [eax + 4]
jmp 0x44a16b
push str.Ramdisk
push edi
call fcn.004926f1
add esp, 8
test eax, eax
jne 0x44a153
lea esi, [eax + 6]
jmp 0x44a16b
push str.Unknown
push edi
call fcn.004926f1
add esp, 8
test eax, eax
jne case.0x44a0ca.0
xor esi, esi
xor edi, edi
mov bl, 0x41
nop
lea ecx, [esp + 0x158]
push ecx
mov byte [esp + 0x15c], bl
mov word [esp + 0x15d], 0x5c3a
mov byte [esp + 0x15f], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
je 0x44a1a8
cmp esi, 0x100
jne 0x44a1ad
cmp eax, 1
je 0x44a1ad
mov byte [esp + edi + 0x30], bl
inc edi
inc bl
cmp bl, 0x5a
jbe 0x44a170
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push edx
push eax
mov byte [esp + edi + 0x44], 0
call fcn.00482410
cmp byte [esp + 0x30], 0
je case.0x44a0ca.0
jmp case.0x44a0ca.4
push 0x102
lea ecx, [esp + 0x54]
push edi
push ecx
call fcn.00495b20
lea eax, [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x152], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a200
sub eax, edx
je 0x44a219
cmp byte [esp + eax + 0x4f], 0x5c
lea eax, [esp + eax + 0x50]
je 0x44a219
mov byte [eax], 0x5c
push 0xff
lea edx, [esp + 0x45c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0xff
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je case.0x44a0ca.0
mov eax, ebx
sub eax, 2
je 0x44a28a
dec eax
je 0x44a27e
sub eax, 2
jne case.0x44a0ca.4
mov edx, dword [esp + 0x14]
push 0x18
push eax
mov eax, dword [esp + 0x18]
push edx
call fcn.004010d0
jmp case.0x44a0ca.4
lea eax, [esp + 0x258]
jmp 0x44a46a
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x464]
push edx
push eax
jmp 0x44a476
push 0x102
lea ecx, [esp + 0x54]
push edi
push ecx
call fcn.00495b20
lea eax, [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x152], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a2c4
sub eax, edx
je 0x44a2dd
cmp byte [esp + eax + 0x4f], 0x5c
lea eax, [esp + eax + 0x50]
je 0x44a2dd
mov byte [eax], 0x5c
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x44a0ca.0
jmp dword [eax*4 + 0x44a52c]
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
push eax
jmp 0x44a476
push 1
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x44a471
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
push edx
jmp 0x44a476
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Network
push eax
jmp 0x44a476
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x44a471
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
push edx
jmp 0x44a476
push 0x102
lea eax, [esp + 0x54]
push edi
push eax
call fcn.00495b20
lea eax, [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x152], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a390
sub eax, edx
je 0x44a3a9
cmp byte [esp + eax + 0x4f], 0x5c
lea eax, [esp + eax + 0x50]
je 0x44a3a9
mov byte [eax], 0x5c
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x44a3d0
xor eax, eax
jmp 0x44a3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x44a3e2.1
movzx eax, byte [eax + 0x44a55c]
jmp dword [eax*4 + 0x44a548]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
jmp 0x44a471
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
push edx
jmp 0x44a476
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
push eax
jmp 0x44a476
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
jmp 0x44a471
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
push edx
jmp 0x44a476
cmp byte [edi], 0
jne 0x44a49b
push 0
push 0x80
lea eax, [esp + 0x1e0]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
jne case.0x44a0ca.0
lea eax, [esp + 0x1d8]
push 1
push 0
push 0xffffffffffffffff
push eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00482410
mov edx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
call fcn.00482410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push str.open__s_type_cdaudio_alias_cd_wait_shareable
mov esi, pe_nt_image_headers32
lea edi, [esp + 0x360]
call fcn.0047f340
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
add esp, 8
push 0
push 0
push 0
mov ecx, edi
push ecx
call esi
test eax, eax
jne case.0x44a0ca.0
push eax
push 0x80
lea edx, [esp + 0x1e0]
push edx
push str.status_cd_mode
call esi
push 0
push 0
push 0
push str.close_cd_wait
mov edi, eax
call esi
test edi, edi
je 0x44a463
mov edi, dword [ebp + 8]
call fcn.0043cd00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4