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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43a50c]
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, 0x43bb44
jne 0x4199b3
push dword [esi + 0x38]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00409921
add esp, 0x10
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push dword [esi + 0x34]
push ebx
push eax
call fcn.00409921
add esp, 0x10
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push dword [esi + 0x34]
push str._s_s.bak
push eax
call fcn.00409921
add esp, 0x10
jmp 0x4199f9
push eax
mov edi, str._s_s_s
push dword [esi + 0x38]
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00409921
add esp, 0x14
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x34]
push edi
push eax
call fcn.00409921
add esp, 0x14
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x34]
push str._s_s_s.bak
push eax
call fcn.00409921
add esp, 0x14
push dword [ebp - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x419b3f
mov eax, dword [0x43a50c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x419a38
push eax
lea eax, [ebp - 0x10]
push dword [esi + 0x34]
push ebx
push eax
call fcn.00409921
push dword [ebp - 0x10]
call fcn.00421506
add esp, 0x14
jmp 0x419a4c
push dword [esi + 0x34]
lea eax, [ebp - 0x10]
push 0x43ab18
push eax
call fcn.00409921
add esp, 0xc
push dword [ebp - 4]
call edi
test eax, eax
je 0x419aff
push dword [ebp - 8]
call edi
test eax, eax
je 0x419a6b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042190a
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 0x419aac
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [esi + 0x74], 3
push dword [ebp - 0x14]
push ecx
mov ecx, esp
push eax
call fcn.004046e3
mov ecx, esi
call fcn.004193cd
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 0x419aeb
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.004193cd
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042190a
pop ecx
pop ecx
push dword [ebp - 8]
call edi
test eax, eax
je 0x419b35
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x419b35
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 0x419b35
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.004193cd
lea ecx, [ebp - 0x10]
call fcn.00404c0d
jmp 0x419b5c
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.004193cd
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