Function at 0x449fd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac0
push ebx
push esi
push edi
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0xacc]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xacc]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
push str.GetDiskFreeSpaceExW
push str.kernel32.dll
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x44a430
lea esi, [ebp - 0xacc]
test edi, edi
mov dword [ebp - 0x14], esi
jle 0x44a42d
jmp 0x44a057
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x44a37c
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0xa4]
push 0x32
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp - 0x6bc]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xa4]
lea edx, [ebp - 0x38]
push ecx
push edx
push eax
push eax
lea eax, [ebp - 0x6bc]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x44a37c
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x2c]
push edx
push eax
push esi
call ebx
lea ecx, [ebp - 0xa4]
push 0x5167cc
push ecx
call fcn.004dfe9e
add esp, 8
test eax, eax
je 0x44a3a1
lea edx, [ebp - 0xa4]
push str.CDFS
push edx
call fcn.004dfe9e
add esp, 8
test eax, eax
jne 0x44a37c
mov ecx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push 0x400
push eax
push ecx
call fcn.004dfa90
push 0
push 0x400
push edx
push eax
call fcn.004dfa90
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
or ecx, edi
je 0x44a3c3
test edx, edx
jg 0x44a37c
jl 0x44a138
cmp eax, 0x400
ja 0x44a37c
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x2ac]
push esi
lea edx, [ebp - 0x2ac]
push str._sVCD_
rep stosd dword es:[edi], eax
push edx
call fcn.004deb4b
mov eax, dword [0x50d0e0]
lea ecx, [ebp - 0x2ac]
add esp, 0xc
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x44a1d1
lea edx, [ebp - 0x2ac]
shr edx, 0x10
jne 0x44a18f
xor eax, eax
lea ecx, [ebp - 0x2ac]
mov ax, cx
lea ecx, [ebp - 0x10]
push eax
call fcn.00407b60
jmp 0x44a1d1
lea edx, [ebp - 0x2ac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x44a1d1
push esi
lea ecx, [ebp - 0x10]
call fcn.00402190
test eax, eax
je 0x44a1d1
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x44a1d1
mov edi, dword [ebp - 0x10]
mov edx, ecx
lea esi, [ebp - 0x2ac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x44a1e3
xor esi, esi
jmp 0x44a212
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004ded50
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push esi
call fcn.004e03cb
mov dword [ebp - 0x24], eax
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x4b4]
add esp, 8
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x4b4]
push eax
push str._sMPEGAV_
push ecx
call fcn.004deb4b
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x44a299
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x44a28c
mov edx, dword [0x50d0e4]
add eax, 0xfffffff4
cmp eax, edx
je 0x44a299
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x44a282
mov edx, dword [ebp - 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [0x50d0e0]
mov dword [ebp - 0x10], eax
jmp 0x44a299
push 0x5209fc
lea ecx, [ebp - 0x10]
call fcn.00406e00
lea ecx, [ebp - 0x4b4]
test ecx, ecx
jne 0x44a2a7
xor esi, esi
jmp 0x44a2b6
lea edx, [ebp - 0x4b4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004022b0
test eax, eax
je 0x44a2ee
mov edx, dword [ebp - 0x10]
lea edi, [esi + esi]
lea eax, [ebp - 0x4b4]
push edi
lea ecx, [esi + esi + 2]
push eax
push ecx
push edx
call fcn.00402060
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [ebp - 0x10]
mov word [edi + ecx], 0
mov eax, dword [ebp - 0x10]
test eax, eax
mov ebx, eax
jne 0x44a2fe
xor esi, esi
or edi, 0xffffffff
jmp 0x44a32f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004ded50
mov esi, esp
push 0
push 0
push edi
or edi, 0xffffffff
push esi
push edi
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push esi
call fcn.004e03cb
mov ecx, dword [ebp - 0x24]
add esp, 8
cmp ecx, edi
je 0x44a349
cmp eax, edi
jne 0x44a3de
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x50d0e4]
mov dword [ebp - 4], edi
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x44a379
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x44a379
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
call fcn.004debba
add esp, 4
inc eax
lea ecx, [esi + eax*2]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
test ecx, ecx
mov dword [ebp - 0x1c], ecx
jg 0x44a051
jmp 0x44a42d
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x6bc]
push edx
push esi
push str._dvd___s_s_
push eax
call fcn.004074f0
add esp, 0x10
mov dword [ebp - 0x18], 1
jmp 0x44a42d
mov ecx, dword [ebp + 8]
push esi
push str._audiocd___s_
push ecx
call fcn.004074f0
add esp, 0xc
mov dword [ebp - 0x18], 1
jmp 0x44a42d
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x4b4]
push edx
push str._vcd___s_
push eax
call fcn.004074f0
mov eax, dword [ebp - 0x10]
mov edx, dword [0x50d0e4]
add esp, 0xc
mov dword [ebp - 0x18], 1
lea ecx, [eax - 0xc]
mov dword [ebp - 4], edi
cmp ecx, edx
je 0x44a42d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x44a42d
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff4
push edx
call fcn.004de3a6
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xad8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4