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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6083ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x90]
mov ecx, 0x21
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
call fcn.0059c547
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.004013cf
test eax, eax
jne 0x414dc1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053ec5c
mov eax, dword [ebp - 0x1c]
jmp 0x41507b
push str.OldExecutable.bak
push 0x5c
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00512b25
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0053f0ba
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0053ec5c
lea ecx, [ebp - 0x18]
call fcn.0059c5ea
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004d6760
test eax, eax
jne 0x414ea6
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d6760
cmp eax, 2
je 0x414ea6
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0059c5ea
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004d6760
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d6760
push eax
push 0x6f24c0
lea edx, [ebp - 0x14]
push edx
call fcn.00513ea6
add esp, 0xc
push 0
push 0
push 0x6f30fc
call fcn.0056b3c1
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053ec5c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053ec5c
mov eax, dword [ebp - 0x24]
jmp 0x41507b
mov esi, esp
push 2
lea ecx, [ebp - 0x18]
call fcn.0059c5ea
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0059c5ea
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp esi, esp
call fcn.004d6760
test eax, eax
jne 0x414f77
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0059c5ea
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004d6760
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d6760
push eax
push 0x6f24c0
lea eax, [ebp - 0x14]
push eax
call fcn.00513ea6
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x6f30e0
lea edx, [ebp - 0x28]
push edx
call fcn.0053f17c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
call fcn.0059c5ea
push eax
call fcn.0056b3c1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0053ec5c
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053ec5c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053ec5c
mov eax, dword [ebp - 0x2c]
jmp 0x41507b
mov esi, esp
push 2
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0059c5ea
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0059c5ea
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp esi, esp
call fcn.004d6760
test eax, eax
jne 0x415048
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0059c5ea
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004d6760
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d6760
push eax
push 0x6f24c0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00513ea6
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0x6f30c4
lea eax, [ebp - 0x30]
push eax
call fcn.0053f17c
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x50]
call fcn.0059c5ea
push eax
call fcn.0056b3c1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0053ec5c
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053ec5c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053ec5c
mov eax, dword [ebp - 0x34]
jmp 0x41507b
push 0
push 0
push 0x6f309c
call fcn.0056b3c1
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053ec5c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053ec5c
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x90
cmp ebp, esp
call fcn.004d6760
mov esp, ebp
pop ebp
ret