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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1085c
call fcn.004a72a0
push ebx
push esi
mov ebx, edx
push edi
mov esi, ebx
mov edi, ecx
call fcn.0041c5b0
mov esi, eax
cmp esi, 9
jne 0x4499cb
mov eax, dword [ebp + 8]
push 0
push eax
mov eax, edi
call fcn.004495a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 4
jne 0x449a7a
push 0x7ffe
lea ecx, [esp + 0x86c]
push edi
push ecx
call fcn.0049c544
add esp, 0xc
xor edx, edx
lea eax, [esp + 0x868]
mov word [esp + 0x10864], dx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449a00
sub eax, edx
sar eax, 1
je 0x449a2b
cmp word [esp + eax*2 + 0x866], 0x5c
lea eax, [esp + eax*2 + 0x868]
je 0x449a2b
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [ebx + 0x12]
mov edi, edi
movzx eax, word [ecx]
cmp eax, 0x20
je 0x449a3d
cmp eax, 9
jne 0x449a42
add ecx, 2
jmp 0x449a30
push ecx
lea edx, [esp + 0x86c]
push edx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
mov eax, 0x4af9cc
jne 0x449a5f
mov eax, 0x4b356c
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4d8ea8]
push eax
call fcn.004825d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [0x4d85e0]
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.0041a1d0
cmp esi, 8
ja case.0x449a94.4
jmp dword [esi*4 + 0x449f00]
cmp word [edi], 0
jne 0x449aab
mov edi, pe_nt_image_headers32
jmp 0x449b36
push str.CDRom
push edi
call fcn.00498e69
add esp, 8
test eax, eax
jne 0x449ac2
lea edi, [eax + 5]
jmp 0x449b36
push str.Removable
push edi
call fcn.00498e69
add esp, 8
test eax, eax
jne 0x449ad9
lea edi, [eax + 2]
jmp 0x449b36
push str.Fixed
push edi
call fcn.00498e69
add esp, 8
test eax, eax
jne 0x449af0
lea edi, [eax + 3]
jmp 0x449b36
push str.Network
push edi
call fcn.00498e69
add esp, 8
test eax, eax
jne 0x449b07
lea edi, [eax + 4]
jmp 0x449b36
push str.Ramdisk
push edi
call fcn.00498e69
add esp, 8
test eax, eax
jne 0x449b1e
lea edi, [eax + 6]
jmp 0x449b36
push str.Unknown
push edi
call fcn.00498e69
add esp, 8
test eax, eax
jne case.0x449a94.0
xor edi, edi
mov dword [esp + 0xc], 0
mov bl, 0x41
movzx esi, bl
lea ecx, [esp + 0x68]
xor eax, eax
push ecx
mov word [esp + 0x6c], si
mov dword [esp + 0x6e], 0x5c003a
mov word [esp + 0x72], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, edi
je 0x449b73
cmp edi, 0x100
jne 0x449b81
cmp eax, 1
je 0x449b81
mov eax, dword [esp + 0xc]
mov word [esp + eax*2 + 0x28], si
inc eax
mov dword [esp + 0xc], eax
inc bl
cmp bl, 0x5a
jbe 0x449b40
mov eax, dword [esp + 0xc]
push 1
xor edx, edx
push edx
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
mov word [esp + eax*2 + 0x34], dx
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.004825d0
cmp word [esp + 0x28], 0
je case.0x449a94.0
jmp case.0x449a94.4
push 0x7ffe
lea eax, [esp + 0x86c]
push edi
push eax
call fcn.0049c544
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x868]
mov word [esp + 0x10864], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449be2
sub eax, edx
sar eax, 1
je 0x449c0d
cmp word [esp + eax*2 + 0x866], 0x5c
lea eax, [esp + eax*2 + 0x868]
je 0x449c0d
mov edx, 0x5c
mov word [eax], dx
push 0xff
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push 0xff
lea ecx, [esp + 0x680]
push ecx
lea edx, [esp + 0x884]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x449a94.0
mov eax, esi
sub eax, 2
je 0x449c86
dec eax
je 0x449c73
sub eax, 2
jne case.0x449a94.4
push 0x18
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, ebx
call fcn.004010e0
jmp case.0x449a94.4
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x674]
push ecx
jmp 0x449e6f
lea edx, [esp + 0x268]
jmp 0x449e68
push 0x7ffe
lea eax, [esp + 0x86c]
push edi
push eax
call fcn.0049c544
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x868]
mov word [esp + 0x10864], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449cc0
sub eax, edx
sar eax, 1
je 0x449ceb
cmp word [esp + eax*2 + 0x866], 0x5c
lea eax, [esp + eax*2 + 0x868]
je 0x449ceb
mov edx, 0x5c
mov word [eax], dx
lea eax, [esp + 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x449a94.0
jmp dword [eax*4 + 0x449f24]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.Network
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
jmp 0x449e6f
push 0x7ffe
lea ecx, [esp + 0x86c]
push edi
push ecx
call fcn.0049c544
add esp, 0xc
xor edx, edx
lea eax, [esp + 0x868]
mov word [esp + 0x10864], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449d93
sub eax, edx
sar eax, 1
je 0x449dbe
cmp word [esp + eax*2 + 0x866], 0x5c
lea eax, [esp + eax*2 + 0x868]
je 0x449dbe
mov ecx, 0x5c
mov word [eax], cx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x878]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x449de8
xor eax, eax
jmp 0x449df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x449d02.2152
movzx ecx, byte [eax + 0x449f54]
jmp dword [ecx*4 + 0x449f40]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
jmp 0x449e6f
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
jmp 0x449e6f
cmp word [edi], 0
jne 0x449e94
push 0
push 0x80
lea edx, [esp + 0x170]
push edx
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jne case.0x449a94.0
lea edx, [esp + 0x168]
push 1
push 0
push 0xffffffffffffffff
push edx
push ebx
call fcn.004825d0
mov eax, dword [0x4d8ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push eax
call fcn.004825d0
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 + 0x470]
call fcn.0047f320
mov esi, dword [sym.imp.WINMM.dll_mciSendStringW]
add esp, 8
push 0
push 0
push 0
mov eax, edi
push eax
call esi
test eax, eax
jne case.0x449a94.0
push eax
push 0x80
lea ecx, [esp + 0x170]
push ecx
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 0x449e61
mov edi, dword [ebp + 8]
call fcn.0043bc00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4