Function at 0x40c820
Capabilities:
Get disk information
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x453416
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x46eaa4]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46eaa4]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov esi, ecx
push 0x458934
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00407ef0
mov dword [esp + 0x1a4], 0
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0xf3c]
push 0x10
push eax
mov ecx, esi
call fcn.00409480
call fcn.00419e37
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c8b4
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x1a4], 1
je 0x40caae
lea edi, [esi + 0x8a0]
mov edi, edi
test al, 1
je 0x40ca9b
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401c40
mov eax, dword [esp + 0x14]
mov ebp, dword [eax - 0xc]
test ebp, ebp
jle 0x40cbad
cmp dword [eax - 4], 1
jle 0x40c91b
mov edx, ebp
push edx
lea ecx, [esp + 0x18]
call fcn.004014b0
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x20]
add cl, 0x41
test ebp, ebp
mov byte [eax], cl
jl 0x40cbad
mov eax, dword [esp + 0x14]
cmp ebp, dword [eax - 8]
jg 0x40cbad
mov dword [eax - 0xc], ebp
mov edx, dword [esp + 0x14]
mov byte [edx + ebp], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], esp
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
push eax
call fcn.00401740
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov ecx, esi
call fcn.00409f00
mov eax, dword [esp + 0x14]
push 0x301
push 0x160
lea edx, [esp + 0x40]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push ebp
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00407ef0
push ebx
mov ecx, esi
call fcn.00409c60
push ebp
mov ecx, esi
call fcn.00408f60
add dword [esi + 0xf48], 1
lea eax, [esi + 0xf34]
test eax, eax
je 0x40c9cc
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi - 0x670]
push 0
push 0x1109
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004191d3
lea ecx, [edi - 0x690]
push 0
call fcn.004182f5
lea eax, [esi + 0xf3c]
test eax, eax
je 0x40ca01
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x20]
push eax
push 1
push 0x1003
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004191d3
push 0
mov ecx, edi
call fcn.004182f5
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push str.File_Name
push 0
mov ecx, edi
call fcn.00418e7a
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push str.Size
push 1
mov ecx, edi
call fcn.00418e7a
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push str.Date
push 2
mov ecx, edi
call fcn.00418e7a
mov eax, dword [esp + 0x14]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebp, esp
push eax
call fcn.00401740
add eax, 0x10
add esp, 4
mov dword [ebp], eax
push edi
lea eax, [edi - 0x690]
push eax
mov ecx, esi
call fcn.0040c730
mov eax, dword [esp + 0x1c]
add ebx, 1
add edi, 0x54
mov dword [esi + 0xf30], ebx
add dword [esp + 0x20], 1
shr eax, 1
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40c8e0
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
cdq
idiv ebx
mov ecx, dword [esi + 0x1d0]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x1331
push ecx
call edi
push 5
lea ecx, [esi + 0x264]
call fcn.004182f5
push 5
lea ecx, [esi + 0x8f4]
call fcn.004182f5
mov edx, dword [esi + 0x1d0]
push 0
push 1
push 0x130c
push edx
mov dword [esi + 0xf44], 1
call edi
mov eax, dword [esi + 0x1a8]
mov eax, dword [eax + 4]
push 0x408
push 1
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esi + 0xf4c], 0xcb
mov byte [esp + 0x1a4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0043d9be
add esp, 0x194
ret
push 0x80070057
call fcn.00401350
int3