Function at 0x4ba160
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556370
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4ba398
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ba1b5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ba398
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov byte [ebp - 4], 1
call fcn.004167f0
mov eax, dword [eax + 0x1c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004120e0
mov byte [ebp - 4], 2
push str._backup
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0043b440
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00420090
mov byte [ebp - 4], 4
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00434bd0
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2c]
call fcn.00414420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00410460
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00410460
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.00410d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00410d30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x4ba297
mov edx, dword [edi]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4ba2a1
mov ecx, dword [esi]
push 0
push 0
push 0
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x4ba30b
mov eax, dword [0x5a99a0]
cmp eax, 0x5a99a0
je 0x4ba30b
test byte [eax + 0x1c], 8
je 0x4ba30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x4ba2e5
mov edi, dword [edi]
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x4ba2ef
mov edx, dword [esi]
mov eax, dword [0x5a99a0]
push dword [ebp - 0x90]
push ecx
push edi
push edx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004b9bc0
add esp, 0x18
mov ecx, ebx
call fcn.004bc8b0
test al, al
je 0x4ba33b
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410460
mov al, 1
jmp 0x4ba3b9
cmp dword [esi + 0x14], 8
jb 0x4ba343
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410460
xor al, al
jmp 0x4ba3b9
cmp dword [esi + 0x14], 8
jb 0x4ba3a0
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4ba3a8
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, ebx
call fcn.004bc8b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret 0xc