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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43b50c]
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, 0x43cb6c
jne 0x419a80
push dword [esi + 0x3c]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00409818
add esp, 0x10
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push dword [esi + 0x38]
push ebx
push eax
call fcn.00409818
add esp, 0x10
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push dword [esi + 0x38]
push str._s_s.bak
push eax
call fcn.00409818
add esp, 0x10
jmp 0x419ac6
push eax
mov edi, str._s_s_s
push dword [esi + 0x3c]
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00409818
add esp, 0x14
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x38]
push edi
push eax
call fcn.00409818
add esp, 0x14
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x38]
push str._s_s_s.bak
push eax
call fcn.00409818
add esp, 0x14
push dword [ebp - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x419c0c
mov eax, dword [0x43b50c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x419b05
push eax
lea eax, [ebp - 0x10]
push dword [esi + 0x38]
push ebx
push eax
call fcn.00409818
push dword [ebp - 0x10]
call fcn.004216ea
add esp, 0x14
jmp 0x419b19
push dword [esi + 0x38]
lea eax, [ebp - 0x10]
push 0x43bb18
push eax
call fcn.00409818
add esp, 0xc
push dword [ebp - 4]
call edi
test eax, eax
je 0x419bcc
push dword [ebp - 8]
call edi
test eax, eax
je 0x419b38
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00421aee
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 0x419b79
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [esi + 0x78], 3
push dword [ebp - 0x14]
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, esi
call fcn.0041949a
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 0x419bb8
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.0041949a
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00421aee
pop ecx
pop ecx
push dword [ebp - 8]
call edi
test eax, eax
je 0x419c02
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x419c02
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 0x419c02
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.0041949a
lea ecx, [ebp - 0x10]
call fcn.00404c0d
jmp 0x419c29
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.0041949a
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