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

Disassembly:
sub esp, 0xa68
push ebp
push esi
push edi
mov edi, dword [esp + 0xa78]
mov ebp, ecx
mov ecx, edi
mov dword [esp + 0x14], ebp
call fcn.0041a400
mov esi, eax
cmp esi, 9
jne 0x444680
push 0
push dword [esp + 0xa80]
mov ecx, ebp
call fcn.00444190
pop edi
pop esi
pop ebp
add esp, 0xa68
ret 8
cmp esi, 4
jne 0x44472b
push 0x103
push dword [esp + 0xa80]
lea eax, [esp + 0x70]
push eax
call fcn.0049ef24
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 0x4446b3
sub ecx, edx
sar ecx, 1
je 0x4446d6
cmp word [esp + ecx*2 + 0x66], 0x5c
je 0x4446d6
mov eax, 0x5c
mov word [esp + ecx*2 + 0x68], ax
lea eax, [edi + 0x12]
nop dword [eax]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4446ed
cmp ecx, 9
jne 0x4446f2
add eax, 2
jmp 0x4446e0
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push 1
test eax, eax
mov edx, 0x4c8740
push 0
mov ecx, 0x4b41e8
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4db768]
call fcn.0047b2f0
pop edi
pop esi
pop ebp
add esp, 0xa68
ret 8
mov edi, dword [0x4ddf18]
mov ecx, edi
push ebx
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0047b2f0
cmp esi, 8
ja case.0x44474a.4
jmp dword [esi*4 + 0x444bcc]
mov esi, dword [esp + 0xa80]
cmp word [esi], 0
jne 0x444768
mov esi, 0x100
jmp 0x4447f3
push str.CDRom
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x44477f
lea esi, [eax + 5]
jmp 0x4447f3
push str.Removable
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x444796
lea esi, [eax + 2]
jmp 0x4447f3
push str.Fixed
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x4447ad
lea esi, [eax + 3]
jmp 0x4447f3
push str.Network
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x4447c4
lea esi, [eax + 4]
jmp 0x4447f3
push str.Ramdisk
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x4447db
lea esi, [eax + 6]
jmp 0x4447f3
push str.Unknown
push esi
call fcn.0049466a
add esp, 8
test eax, eax
jne case.0x44474a.0
xor esi, esi
xor ebp, ebp
mov bl, 0x41
nop word [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 0x444844
cmp esi, 0x100
jne 0x44484f
cmp eax, 1
je 0x44484f
mov ax, word [esp + 0x14]
mov word [esp + ebp*2 + 0x2c], ax
inc ebp
inc bl
cmp bl, 0x5a
jbe 0x444800
xor eax, eax
mov ecx, edi
push 1
push eax
mov word [esp + ebp*2 + 0x34], ax
lea eax, [esp + 0x34]
push 0xffffffffffffffff
push eax
call fcn.0047b2f0
cmp word [esp + 0x2c], 0
jne case.0x44474a.4
mov ebp, dword [esp + 0x18]
mov ecx, ebp
call fcn.00436ff0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xa68
ret 8
push 0x103
push dword [esp + 0xa84]
lea eax, [esp + 0x74]
push eax
call fcn.0049ef24
add esp, 0xc
lea ecx, [esp + 0x6c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x272], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4448c0
sub ecx, edx
sar ecx, 1
je 0x4448e3
cmp word [esp + ecx*2 + 0x6a], 0x5c
je 0x4448e3
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.0x44474a.0
sub esi, 2
je 0x444976
sub esi, 1
je 0x44493e
sub esi, 2
jne case.0x44474a.4
push dword [esp + 0x10]
mov ecx, edi
call fcn.00401470
jmp case.0x44474a.4
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x484]
push eax
mov ecx, edi
call fcn.0047b2f0
mov ecx, dword [0x4db768]
push 1
push 0
push 0xffffffffffffffff
push 0x4b41e8
call fcn.0047b2f0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xa68
ret 8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x684]
jmp 0x44494b
push 0x103
push dword [esp + 0xa84]
lea eax, [esp + 0x74]
push eax
call fcn.0049ef24
add esp, 0xc
lea ecx, [esp + 0x6c]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x272], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4449b0
sub ecx, edx
sar ecx, 1
je 0x4449d3
cmp word [esp + ecx*2 + 0x6a], 0x5c
je 0x4449d3
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.0x44474a.0
jmp dword [eax*4 + 0x444bf0]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.Network
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
jmp 0x44494c
push 0x103
push dword [esp + 0xa84]
lea eax, [esp + 0x74]
push eax
call fcn.0049ef24
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 0x444a80
sub ecx, edx
sar ecx, 1
je 0x444aa3
cmp word [esp + ecx*2 + 0x6a], 0x5c
je 0x444aa3
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 0x444aca
xor eax, eax
jmp 0x444ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x4449e7.108
movzx eax, byte [eax + 0x444c20]
jmp dword [eax*4 + 0x444c0c]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
jmp 0x44494c
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
jmp 0x44494c
mov eax, dword [esp + 0xa80]
cmp word [eax], 0
jne 0x444b52
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 0x444bb1
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [esp + 0x880]
push 0x100
push eax
call fcn.004782d0
mov ebx, dword [sym.imp.WINMM.dll_mciSendStringW]
lea eax, [esp + 0x888]
add esp, 0x10
push 0
push 0
push 0
push eax
call ebx
test eax, eax
jne case.0x44474a.0
push eax
push 0x80
lea eax, [esp + 0x380]
push eax
push str.status_cd_mode
call ebx
push 0
push 0
push 0
push str.close_cd_wait
mov esi, eax
call ebx
test esi, esi
jne case.0x44474a.0
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x384]
jmp 0x44494b