Function at 0x40dc8f
Capabilities:
Get disk information
Get disk size
Get file attributes
Get file system object information

Disassembly:
mov eax, 0x4af6b8
call fcn.0047cccc
sub esp, 0x39c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push edi
push ebx
mov edi, ecx
push ebx
push 0x1009
mov dword [ebp - 0x34], edi
push dword [edi + 0x840]
call esi
push ebx
push ebx
push 0x101c
push dword [edi + 0x840]
call esi
cmp eax, ebx
jne 0x40dcbe
or esi, 0xffffffff
add edi, 0x824
push esi
push 0xc8
push ebx
push 0x4d7b24
push ebx
mov ecx, edi
call fcn.0049211c
push esi
push 0x64
push ebx
push 0x4d7b1c
push 1
mov ecx, edi
call fcn.0049211c
push esi
push 0x64
push ebx
push 0x4d7b14
push 2
mov ecx, edi
call fcn.0049211c
push esi
push 0x73
push ebx
push 0x4d7b08
push 3
mov ecx, edi
call fcn.0049211c
lea eax, [ebp - 0x248]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x248], bl
lea esi, [ebp - 0x248]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
je 0x40deea
push 0x104
lea eax, [ebp - 0x148]
push ebx
push eax
call fcn.0047c560
add esp, 0xc
lea eax, [ebp - 0x148]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40ddc9
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
push 0x14
pop ecx
call fcn.0047ddb0
mov edx, dword [ebp - 0x2c]
push 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
pop ecx
call fcn.0047ddb0
mov dword [ebp - 0x20], eax
jmp 0x40ddcf
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
push esi
call fcn.0040d76c
pop ecx
pop ecx
push ebx
push eax
push ebx
push ebx
push esi
mov ecx, edi
push dword [ebp - 0x18]
push 3
call fcn.0049216f
push 1
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push eax
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.004921f1
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40de3a
push 0x410
lea eax, [ebp - 0x3a8]
push 0x160
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x298]
jmp 0x40de40
lea eax, [ebp - 0x148]
push eax
push 1
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0049226a
mov eax, dword [0x4d95e4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], eax
push ecx
fild qword [ebp - 0x44]
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
fmul dword [0x4b8ca4]
fstp qword [esp]
push str._10.1f_GB
push eax
call fcn.00490e97
add esp, 0x10
mov ecx, edi
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x14]
call fcn.0049226a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], eax
push ecx
fild qword [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x10]
fmul dword [0x4b8ca4]
fstp qword [esp]
push str._10.1f_GB
push eax
call fcn.00490e97
add esp, 0x10
mov ecx, edi
push dword [ebp - 0x10]
push 3
push dword [ebp - 0x14]
call fcn.0049226a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00497eb4
inc dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
jne 0x40dd57
mov edi, dword [ebp - 0x34]
push 0x4df600
lea esi, [edi + 0x668]
mov ecx, esi
call fcn.0049803d
push ebx
push ebx
push 0x14b
push dword [edi + 0x744]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi]
push 0x4d7ae4
push edi
call fcn.0040f452
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret