Function at 0x40c5e0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46fb34]
mov ebx, eax
push 0xa
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xc], ebx
call fcn.00428a45
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
mov dword [ebp - 8], eax
call fcn.00402470
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b8a0
add esp, 8
cmp eax, 2
je 0x40c69f
lea ecx, [ebp - 0xc]
push str._Move__Invalid_arguments__nArg_2_:
push ecx
lea ecx, [ebp + 8]
call fcn.00402290
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40c657
mov dword [ebp - 8], esi
jmp 0x40c685
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40c66d
mov dword [ebp - 8], esi
jmp 0x40c685
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0043b4a4
push 0x4686c8
lea eax, [ebp - 0x1c]
push eax
call fcn.0043e342
push 0
lea ecx, [ebp - 0x3c]
call fcn.00428a21
test eax, eax
jne 0x40c6b2
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
mov esi, eax
add esp, 4
add esi, 0x10
push 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
call fcn.00428a21
test eax, eax
jne 0x40c6dc
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
mov edi, eax
push esi
add edi, 0x10
call ebx
test eax, eax
jne 0x40c769
lea ecx, [ebp - 0x20]
push str._Move__Source_file_or_path_not_found:
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402290
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40c71e
mov dword [ebp - 8], esi
jmp 0x40c74f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40c734
mov dword [ebp - 8], esi
jmp 0x40c74f
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov edx, dword [ebp - 0xc]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043b4a4
push 0x4686c8
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0043e342
push edi
call ebx
test eax, eax
je 0x40c777
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
push edi
push esi
call ebx
test eax, eax
jne 0x40c78d
push 4
push edi
push esi
call ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c7a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3c]
call fcn.00428b7d
mov eax, dword [ebp - 8]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439c98
mov esp, ebp
pop ebp
ret