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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465be8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push ebx
push str.OnDownloadComplete_nError_d
push 0xca
push str.TransfersTransfers.cpp
call fcn.0040a560
push dword [edi + 0x168]
push str.CloseFileHandle_m_file_08x
push 0xb4
push str.FileIO.cpp
call fcn.0040a560
mov eax, dword [edi + 0x168]
add esp, 0x20
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c695
push eax
call fcn.0044ca6e
add esp, 4
call esi
push eax
push str.CloseFileHandle_GetLastError_d
push 0xb4
push str.FileIO.cpp
call fcn.0040a560
add esp, 0x10
mov dword [edi + 0x168], 0
push dword [edi + 0xf0]
push str.CloseFileHandle_m_file_08x
push 0xb4
push str.FileIO.cpp
call fcn.0040a560
mov eax, dword [edi + 0xf0]
add esp, 0x10
test eax, eax
je 0x40c6e9
push eax
call fcn.0044ca6e
add esp, 4
call esi
push eax
push str.CloseFileHandle_GetLastError_d
push 0xb4
push str.FileIO.cpp
call fcn.0040a560
add esp, 0x10
mov dword [edi + 0xf0], 0
test ebx, ebx
jne 0x40c8c3
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + 8]
call fcn.0040b830
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
lea ecx, [edi + 8]
call fcn.0040b870
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 8]
call fcn.00402300
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40c79c
test cl, 0x10
jne 0x40c79c
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
push 0x80
cmovae esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, eax
test ecx, ecx
jne 0x40c778
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, eax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push ecx
push str.OnDownloadComplete_DeleteFileEx_Old_File_bDeleFile_d_strFilePath_s
push 0xca
push str.TransfersTransfers.cpp
call fcn.0040a560
add esp, 0x14
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c80b
test al, 0x10
jne 0x40c80b
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push 0x80
cmovae esi, dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, eax
test ecx, ecx
jne 0x40c7e7
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, eax
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push ecx
push str.OnDownloadComplete_DeleteFileEx_IniFile_bDeleFile_d_strIniFile_s
push 0xca
push str.TransfersTransfers.cpp
call fcn.0040a560
add esp, 0x14
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c861
test al, 0x10
jne 0x40c861
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00412510
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x48], 8
push edx
cmovae ecx, dword [ebp - 0x5c]
push ecx
push eax
push str.OnDownloadComplete_RenameFileEx_bRenameFile_d_strTempFile_s_strFilePath_s
push 0xca
push str.TransfersTransfers.cpp
call fcn.0040a560
add esp, 0x18
cmp dword [ebp - 0x18], 8
jb 0x40c872
push dword [ebp - 0x2c]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x40c897
push dword [ebp - 0x44]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x40c8c3
push dword [ebp - 0x5c]
call fcn.0044a77c
add esp, 4
push 0x40
call fcn.0044afbe
mov esi, eax
add esp, 4
test esi, esi
je 0x40c918
mov dword [esi], 0
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
jmp 0x40c91a
xor esi, esi
mov eax, dword [edi + 0x220]
lea ecx, [ebp - 0x7c]
push ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], eax
push dword [eax + 4]
push eax
call fcn.00406950
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [edi + 0x224]
sub ecx, eax
cmp ecx, 1
jae 0x40c951
push str.list_T__too_long
call fcn.0044a63a
inc eax
lea ecx, [edi + 8]
mov dword [edi + 0x224], eax
mov eax, dword [ebp - 0x78]
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x74]
push eax
mov dword [esi + 0x18], ebx
call fcn.00402340
lea ebx, [esi + 0x1c]
mov dword [ebp - 0x78], eax
cmp ebx, eax
je 0x40c9b5
cmp dword [ebx + 0x14], 8
jb 0x40c99a
push dword [ebx]
call fcn.0044a77c
mov eax, dword [ebp - 0x78]
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
mov ecx, ebx
push eax
call fcn.00409860
cmp dword [ebp - 0x60], 8
jb 0x40c9c6
push dword [ebp - 0x74]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x64], 0
jb 0x40c9fc
mov ebx, dword [ebx]
push ebx
push dword [ebp + 8]
push dword [edi + 0x1e8]
push str.OnDownloadComplete_m_hWndNotify_08x_nError_d_strFileClsid_s
push 0xca
push str.TransfersTransfers.cpp
call fcn.0040a560
add esp, 0x18
push esi
push 0
push 0x7d3
push dword [edi + 0x1e8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044a781
mov esp, ebp
pop ebp
ret 4