Function at 0x47b880
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x60a070]
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 edi, edx
mov esi, ecx
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00407c90
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0047ac70
test al, al
jne 0x47b913
push str.Failed_to_get_wide_string_path
jmp 0x47b9cc
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47b96b
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.File__s_does_not_exist
push str.Utilities
push ecx
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ec6c0
add esp, 0x10
push str.File_does_not_exists_to_create_backup
push str.Utilities
call fcn.004ebad0
push eax
call fcn.004ec870
jmp 0x47babd
lea ecx, [ebp - 0x5c]
call fcn.0047bb50
test al, al
jne 0x47b996
push str.Failed_to_remove_discriminator_from_the_end_of_file
push str.Utilities
call fcn.004ebad0
push eax
call fcn.004ec7e0
add esp, 0xc
xor bl, bl
jmp 0x47bac2
push str._bkp
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.0043f440
add esp, 4
mov ecx, edi
push eax
call fcn.00405450
lea ecx, [ebp - 0x74]
call fcn.00405410
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.0047ac70
test al, al
jne 0x47b9e6
push str.Failed_to_get_wide_string_backup_file_path
push str.Utilities
call fcn.004ebad0
push eax
call fcn.004ec6c0
add esp, 0xc
xor bl, bl
jmp 0x47bac2
mov dl, 1
lea ecx, [ebp - 0x44]
call fcn.0047aec0
test al, al
jne 0x47ba1e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_remove_the_backup_file_already_present:_d
push str.Utilities
push ecx
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ec900
add esp, 0x10
xor bl, bl
jmp 0x47bac2
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileExW]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push 8
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
jne 0x47baa8
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 5
jne 0x47ba85
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0047b5b0
test al, al
je 0x47ba85
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push 8
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x47baa8
call esi
push eax
push str.Failed_to_create_Backup_file_:_d
push str.Utilities
push ecx
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ec900
add esp, 0x10
xor bl, bl
jmp 0x47bac2
push str.Backup_file_Created
push str.Utilities
call fcn.004ebad0
push eax
call fcn.004ec7e0
mov bl, 1
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x47bad7
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00414580
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x47bb00
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00414580
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp ecx, 0x10
jb 0x47bb29
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.00408330
mov al, bl
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.0055eeb4
mov esp, ebp
pop ebp
ret