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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4c4074]
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 0x401e09
cmp word [edi + 0x36], 0
jbe 0x401f58
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], 0x4a85d0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x401e62
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov dword [ebp - 0x18], 0x4a85d0
call eax
mov dword [ebp - 0x14], 0
jmp 0x401e9e
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x401eda
call ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4a85d0
test esi, esi
je 0x401e9b
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 0x401efb
cmp byte [edi + 0x2c], 0
je 0x401ec4
cmp dword [edi + 0x30], 0
je 0x401ec4
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], 0x4a85d0
test esi, esi
je 0x401efb
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 0x401f49
call ebx
cmp byte [edi + 0x2c], 0
mov esi, eax
je 0x401ec4
cmp dword [edi + 0x30], 0
je 0x401ec4
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 0x401f0d
cmp word [edi + 0x36], 0
lea eax, [edi + 0x36]
jbe 0x401fa4
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 0x401f0d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x401fa4
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 0x401fcb
cmp ecx, dword [esi]
jne 0x401fcb
lock inc dword [eax]
jmp 0x401ff7
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40224e
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.004024f0
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.004023a0
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040e570
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40204f
cmp byte [edi + 0x2c], 0
je 0x402047
cmp dword [edi + 0x30], 0
je 0x402047
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 0x402219
cmp byte [edi + 0x34], 0
mov esi, dword [ebp - 0x10]
je 0x402134
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402134
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 0x4a8c14
lea ecx, [ebp - 0x58]
call fcn.004088e0
push ecx
push 0x10000000
push str.S_1_5_18
lea ecx, [ebp - 0x58]
call fcn.004088e0
lea ecx, [ebp - 0x58]
call fcn.00408d20
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 0x40210c
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.00408790
test ebx, ebx
je 0x402134
push 0
lea ecx, [edi + 0x28]
push ebx
push ecx
call fcn.00408760
jmp 0x402219
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 0x401ce0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x402191
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov ebx, eax
je 0x402188
cmp byte [edi + 4], 0
je 0x402188
cmp dword [edi + 8], 0
je 0x402188
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 0x4021c4
jmp 0x402219
cmp byte [edi + 0x1c], 0
je 0x4021c4
cmp byte [edi + 0x1d], 0
je 0x4021c4
cmp byte [edi + 4], 0
mov ebx, dword [edi + 0x20]
je 0x4021c4
cmp byte [edi + 5], 0
je 0x4021c4
cmp dword [edi + 8], 0
je 0x4021c4
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 0x40220b
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402208
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebx, eax
lea ecx, [edi + 0x28]
push ebx
push ecx
call fcn.00408760
jmp 0x402219
push esi
call ebx
push 0
lea ecx, [edi + 0x28]
push 1
call fcn.00408730
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 0x402238
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.004024e0
int3