Function at 0x409660
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49c970
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov esi, dword [ebx + 0x4ec]
cmp esi, dword [ebx + 0x4f0]
jbe 0x4096b0
call fcn.0047db04
mov edi, dword [ebx + 0x4e0]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov edi, edi
mov esi, dword [ebx + 0x4f0]
cmp dword [ebx + 0x4ec], esi
jbe 0x4096d3
call fcn.0047db04
mov eax, dword [ebx + 0x4e0]
test edi, edi
je 0x4096e1
cmp edi, eax
je 0x4096e6
call fcn.0047db04
cmp dword [esp + 0x1c], esi
je 0x409adf
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
lea ecx, [esp + 0xa8]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x138], 0
or dword [esp + 0x14], 1
cmp dword [eax], 0
je 0x4097a4
test edi, edi
jne 0x409746
call fcn.0047db04
xor eax, eax
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [eax + 0x10]
jb 0x409736
call fcn.0047db04
mov eax, dword [ebx]
add eax, 0x24
cmp dword [eax + 0x18], 8
jb 0x40974a
mov eax, dword [eax + 4]
jmp 0x40974d
mov eax, dword [edi]
jmp 0x409728
add eax, 4
test eax, eax
je 0x4097a4
mov eax, dword [esi]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call edx
or dword [esp + 0x14], 2
mov esi, eax
test edi, edi
jne 0x40978b
call fcn.0047db04
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40977b
call fcn.0047db04
mov eax, dword [ebx]
add eax, 0x24
cmp dword [eax + 0x18], 8
jb 0x40978f
mov eax, dword [eax + 4]
jmp 0x409792
mov eax, dword [edi]
jmp 0x409771
add eax, 4
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4097a4
mov bl, 1
jmp 0x4097a6
xor bl, bl
test byte [esp + 0x14], 2
je 0x4097c7
mov eax, dword [esp + 0x24]
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x4097c7
push eax
call fcn.0047db14
add esp, 4
mov dword [esp + 0x138], 0xffffffff
test byte [esp + 0x14], 1
je 0x4097f9
mov eax, dword [esp + 0xa8]
and dword [esp + 0x14], 0xfffffffe
lea edx, [esp + 0xac]
cmp eax, edx
je 0x4097f9
push eax
call fcn.0047db14
add esp, 4
test bl, bl
jne 0x409827
test edi, edi
jne 0x409823
call fcn.0047db04
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x409816
call fcn.0047db04
add dword [esp + 0x1c], 4
mov ebx, dword [ebp + 8]
jmp 0x4096c0
mov eax, dword [edi]
jmp 0x409808
push 0xb0
call fcn.0047d804
add esp, 4
test eax, eax
je 0x409843
call fcn.00408bc0
mov dword [esp + 0x14], eax
jmp 0x40984b
mov dword [esp + 0x14], 0
push 0x4a8
call fcn.0047d804
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
xor edi, edi
mov dword [esp + 0x138], 1
cmp esi, edi
je 0x4098b0
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esi + 0x18]
mov dword [esi + 4], edi
mov dword [esi + 8], edx
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], vtable.DuiLib::INotifyUI.0
push eax
mov dword [esi], vtable.AddCustomTool.0
mov dword [esi + 0x10], vtable.AddCustomTool.1.0
call fcn.00423972
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], edi
mov dword [esi + 0x4a4], ecx
call fcn.00407450
jmp 0x4098b2
xor esi, esi
mov edx, dword [ebp + 8]
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esi]
mov edi, dword [edx + 4]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test eax, eax
je 0x4098d9
call fcn.00422a4a
test al, al
je 0x40992b
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test eax, eax
jne 0x4098ef
call fcn.004229cc
test al, al
je 0x40992b
mov eax, dword [0x4c3154]
mov edx, dword [esi]
push esi
push eax
mov eax, dword [edx]
push 0
push edi
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x4a1a7c
mov ecx, esi
call eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
push esi
call fcn.0042280f
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40998e
call fcn.0047db04
xor eax, eax
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [eax + 0x10]
jb 0x40994e
call fcn.0047db04
mov eax, dword [ebx]
mov ecx, esi
call fcn.00401100
call fcn.00422723
cmp eax, 1
jne 0x409a86
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x409992
call fcn.0047db04
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40997e
call fcn.0047db04
mov eax, dword [ebx]
add eax, 0x5c
cmp dword [eax + 0x18], 8
jb 0x409996
mov eax, dword [eax + 4]
jmp 0x409999
mov eax, dword [eax]
jmp 0x409940
mov eax, dword [edi]
jmp 0x409974
add eax, 4
test eax, eax
je 0x409a09
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x74], 8
jb 0x4099ac
mov eax, dword [ecx + 0x60]
jmp 0x4099af
lea eax, [ecx + 0x60]
test eax, eax
je 0x409a09
cmp dword [ecx + 0x74], 8
jb 0x4099c2
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x60]
jmp 0x4099c9
mov edi, dword [esp + 0x14]
add edi, 0x60
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4099f2
call fcn.0047db04
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4099e2
call fcn.0047db04
mov eax, dword [ebx]
add eax, 0x5c
cmp dword [eax + 0x18], 8
jb 0x4099f6
mov eax, dword [eax + 4]
jmp 0x4099f9
mov eax, dword [eax]
jmp 0x4099d8
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409a61
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x409a2e
call fcn.0047db04
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x409a1e
call fcn.0047db04
mov eax, dword [ebx]
add eax, 0x5c
cmp dword [eax + 0x18], 8
jb 0x409a32
mov edi, dword [eax + 4]
jmp 0x409a35
mov eax, dword [edi]
jmp 0x409a14
lea edi, [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409a4b
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x409a61
test al, 1
je 0x409a5a
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x409a82
call fcn.0047db04
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x409a7a
call fcn.0047db04
mov edx, dword [esp + 0x14]
mov dword [ebx], edx
jmp 0x409aca
mov eax, dword [eax]
jmp 0x409a70
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x74], 8
jb 0x409a97
mov ecx, eax
mov edi, dword [ecx + 0x60]
jmp 0x409a9e
mov edi, dword [esp + 0x14]
add edi, 0x60
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409ab4
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x409aca
test al, 1
je 0x409ac3
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esi + 0x18]
push edx
call fcn.00423d08
push esi
call fcn.0047d710
mov ebx, dword [ebp + 8]
add esp, 4
push ebx
call fcn.0040cc20
mov ecx, ebx
call fcn.0040d4c0
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8