Function at 0x40a5ca
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x34
mov eax, 0x46e570
call fcn.004550bc
mov esi, ecx
mov edi, edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
call fcn.0044a0cb
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00442144
push eax
lea ecx, [ebp - 0x18]
call fcn.0040132d
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0044a148
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0044a148
lea eax, [ebp - 0x2c]
push eax
call fcn.00404ae7
lea eax, [ebp - 0x18]
push eax
call fcn.004396bf
mov esi, dword [ebp - 0x24]
pop ecx
pop ecx
jmp 0x40a738
dec esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00439d57
mov eax, dword [eax]
push 0x104
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40a738
lea eax, [ebp]
push 0x47b3f0
push eax
call fcn.00458c60
test eax, eax
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x2c]
jne 0x40a704
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40a6da
call fcn.00439d57
push str.RECYCLER_
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040177e
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00404124
add esp, 0x18
push eax
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040a0c5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x10]
jmp 0x40a72c
call fcn.00439d57
push str.RECYCLER
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040177e
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040a0c5
mov ecx, dword [ebp - 0x3c]
jmp 0x40a72c
call fcn.00439d57
push str.RECYCLED
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040177e
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040a0c5
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
cmp esi, ebx
jne 0x40a647
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
mov esi, dword [ebp - 0x24]
push 0x47b260
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a7c9
push str.SHEmptyRecycleBinA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, ebx
setne cl
push edi
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a7c9
dec esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00439d57
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a7c9
test al, 4
je 0x40a7c9
push esi
lea ecx, [ebp - 0x2c]
call fcn.00439d57
push eax
lea ecx, [ebp - 0x10]
call fcn.0040170c
push dword [ebp - 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0x10]
call fcn.0040a34e
add esp, 0x10
cmp esi, ebx
jne 0x40a788
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010af
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044a39d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.004550ad
add ebp, 0x108
leave
ret