Function at 0x401ca0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486508
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x46], 0
xorps xmm0, xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
movlpd qword [ebp - 0x20], xmm0
jne 0x401ce9
cmp word [edi + 0x36], 0
jbe 0x401e38
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4a4fc8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x401d42
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov dword [ebp - 0x18], 0x4a4fc8
call eax
mov dword [ebp - 0x14], 0
jmp 0x401d7e
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x401dba
call ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4a4fc8
test esi, esi
je 0x401d7b
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x401ddb
cmp byte [edi + 0x2c], 0
je 0x401da4
cmp dword [edi + 0x30], 0
je 0x401da4
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [eax + 4]
mov ecx, dword [edi + 0x30]
push 0
push esi
push 0
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4a4fc8
test esi, esi
je 0x401ddb
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x14], 0
lea esi, [edi + 0x48]
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x401e29
call ebx
cmp byte [edi + 0x2c], 0
mov esi, eax
je 0x401da4
cmp dword [edi + 0x30], 0
je 0x401da4
mov edx, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [edx + 4]
mov ecx, dword [edi + 0x30]
push 0
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x401ded
cmp word [edi + 0x36], 0
lea eax, [edi + 0x36]
jbe 0x401e84
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x401ded
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x401e84
mov eax, 0xe0000013
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x401eab
cmp ecx, dword [esi]
jne 0x401eab
lock inc dword [eax]
jmp 0x401ed7
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40212e
mov eax, dword [ebx]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x10]
call fcn.004023d0
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402280
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040a790
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401f2f
cmp byte [edi + 0x2c], 0
je 0x401f27
cmp dword [edi + 0x30], 0
je 0x401f27
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [eax + 4]
mov ecx, dword [edi + 0x30]
push 0
push ebx
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov esi, dword [ebp - 0x10]
jmp 0x4020f9
cmp byte [edi + 0x34], 0
mov esi, dword [ebp - 0x10]
je 0x402014
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402014
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
push ecx
push 0x10000000
push str.S_1_1_0
lea ecx, [ebp - 0x58]
call fcn.00404330
push ecx
push 0x10000000
push str.S_1_5_18
lea ecx, [ebp - 0x58]
call fcn.00404330
lea ecx, [ebp - 0x58]
call fcn.00404770
push 0
push 0x80
xor edx, edx
mov dword [ebp - 0x28], eax
push 2
test eax, eax
lea ecx, [ebp - 0x2c]
cmove ecx, edx
push ecx
push edx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x401fec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004041e0
test ebx, ebx
je 0x402014
push 0
lea ecx, [edi + 0x28]
push ebx
push ecx
call fcn.004041b0
jmp 0x4020f9
xor eax, eax
mov ecx, 2
cmp byte [edi + 0x24], al
cmovne eax, ecx
push eax
mov eax, dword [ebp + 8]
push 0
push edi
push 0x401bc0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x402071
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov ebx, eax
je 0x402068
cmp byte [edi + 4], 0
je 0x402068
cmp dword [edi + 8], 0
je 0x402068
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
push 0
push ebx
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
test ebx, ebx
je 0x4020a4
jmp 0x4020f9
cmp byte [edi + 0x1c], 0
je 0x4020a4
cmp byte [edi + 0x1d], 0
je 0x4020a4
cmp byte [edi + 4], 0
mov ebx, dword [edi + 0x20]
je 0x4020a4
cmp byte [edi + 5], 0
je 0x4020a4
cmp dword [edi + 8], 0
je 0x4020a4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
push 0
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [eax]
call ebx
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4020eb
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4020e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebx, eax
lea ecx, [edi + 0x28]
push ebx
push ecx
call fcn.004041b0
jmp 0x4020f9
push esi
call ebx
push 0
lea ecx, [edi + 0x28]
push 1
call fcn.00404180
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402118
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004023c0
int3