Function at 0x418933
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42e50c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
cmp dword [eax - 8], 0
push dword [ebp + 0xc]
mov esi, ecx
mov ebx, 0x42f9cc
jne 0x418999
push dword [esi + 0x20]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040959f
add esp, 0x10
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push dword [esi + 0x1c]
push ebx
push eax
call fcn.0040959f
add esp, 0x10
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push dword [esi + 0x1c]
push str._s_s.bak
push eax
call fcn.0040959f
add esp, 0x10
jmp 0x4189df
push eax
mov edi, str._s_s_s
push dword [esi + 0x20]
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040959f
add esp, 0x14
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
push edi
push eax
call fcn.0040959f
add esp, 0x14
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
push str._s_s_s.bak
push eax
call fcn.0040959f
add esp, 0x14
push dword [ebp - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x418b25
mov eax, dword [0x42e50c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x418a1e
push eax
lea eax, [ebp - 0x10]
push dword [esi + 0x1c]
push ebx
push eax
call fcn.0040959f
push dword [ebp - 0x10]
call fcn.0041d105
add esp, 0x14
jmp 0x418a32
push dword [esi + 0x1c]
lea eax, [ebp - 0x10]
push 0x42eb18
push eax
call fcn.0040959f
add esp, 0xc
push dword [ebp - 4]
call edi
test eax, eax
je 0x418ae5
push dword [ebp - 8]
call edi
test eax, eax
je 0x418a51
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041d509
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
call ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call edi
test eax, eax
je 0x418a92
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [esi + 0x54], 3
push dword [ebp - 0x14]
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, esi
call fcn.004183bf
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call ebx
push dword [ebp - 4]
mov ebx, eax
call edi
test eax, eax
jne 0x418ad1
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push ebx
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, esi
call fcn.004183bf
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041d509
pop ecx
pop ecx
push dword [ebp - 8]
call edi
test eax, eax
je 0x418b1b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x418b1b
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov ebx, eax
call edi
test eax, eax
jne 0x418b1b
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push ebx
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, esi
call fcn.004183bf
lea ecx, [ebp - 0x10]
call fcn.00404c0d
jmp 0x418b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, esi
call fcn.004183bf
lea ecx, [ebp - 8]
call fcn.00404c0d
lea ecx, [ebp - 4]
call fcn.00404c0d
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea ecx, [ebp + 8]
call fcn.00404c0d
lea ecx, [ebp + 0xc]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret 0xc