Function at 0x40ba30
Capabilities:
Copy file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4b9b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov eax, dword [0x4f5b3c]
mov dword [esp + 0x40], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 2
call fcn.00434b80
test eax, eax
je 0x40bff2
mov eax, dword [0x4ffa20]
test eax, eax
je 0x40bff2
mov eax, dword [0x4fef24]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bc0b
push str.backup
lea ecx, [esp + 0x20]
push 0x4ff318
push ecx
call fcn.004a9e68
push eax
mov ecx, 0x4fef24
mov byte [esp + 0x44], 3
call fcn.004a9d0c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.004a9c1f
push 0
lea ecx, [esp + 0x30]
call fcn.004440d0
mov edx, dword [str.SoftwareIntelLANDeskLDWMDistribution]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x48], 4
call fcn.004a9c8d
lea ecx, [esp + 0x30]
call fcn.004447a0
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Centralized_Backup_Dir
call fcn.004a9c8d
lea ecx, [esp + 0x34]
call fcn.00444180
test eax, eax
je 0x40bbc8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bbc8
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x14]
call fcn.004a719d
mov eax, dword [eax]
push 0x4ee660
push eax
call fcn.00474eb8
add esp, 8
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004a9c1f
test esi, esi
je 0x40bb65
push 0x4ee660
lea ecx, [esp + 0x10]
call fcn.004a9faf
push 0x4ee660
lea eax, [esp + 0x24]
push 0x4ff350
push eax
call fcn.004a9e68
push str.backup
lea ecx, [esp + 0x20]
mov bl, 5
push eax
push ecx
mov byte [esp + 0x4c], bl
call fcn.004a9e68
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 6
call fcn.004a9feb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.004a9c1f
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 4
call fcn.004a9c1f
lea edx, [esp + 0xc]
mov ecx, 0x4fef24
push edx
call fcn.004a9d0c
push 0x4fef24
lea eax, [esp + 0x24]
push str.BackupFile:_Setting_backup_dir_to
push eax
call fcn.004a9edc
push eax
mov byte [esp + 0x44], 7
call fcn.0045db50
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 4
call fcn.004a9c1f
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 8
call fcn.004a9c1f
mov byte [esp + 0x40], 2
mov ecx, dword [0x4fef24]
push ecx
lea ecx, [esp + 0xc]
call fcn.004a9d5c
mov eax, dword [0x4fef78]
test eax, eax
je 0x40bc32
push 0x4fef74
lea ecx, [esp + 0xc]
call fcn.004a9feb
lea ecx, [esp + 8]
call fcn.00434be0
test eax, eax
jne 0x40bd00
push 1
lea ecx, [esp + 0xc]
call fcn.00434840
test eax, eax
jne 0x40bd00
lea edx, [esp + 8]
lea eax, [esp + 0x20]
push edx
push str.BackupFile:_FATAL_ERROR:_Unable_to_create_backup_directory
push eax
call fcn.004a9edc
push eax
mov byte [esp + 0x44], 9
call fcn.0045db50
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 2
call fcn.004a9c1f
mov al, byte [0x4feef8]
mov dword [0x4feef0], 0x75
test al, 8
jne 0x40bcbe
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x3e7
push edx
call fcn.004a76a2
mov eax, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x30
push eax
call fcn.004b1fc6
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.004a9c1f
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0
call fcn.004a9c1f
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.004a9c1f
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x3c
ret 4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004354c0
push eax
lea edx, [esp + 0x24]
mov bl, 0xa
push 0x4ee660
push edx
mov byte [esp + 0x4c], bl
call fcn.004a9edc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0xb
call fcn.004a9feb
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], bl
call fcn.004a9c1f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.004a9c1f
push 0x4eead8
lea ecx, [esp + 0xc]
call fcn.004a9faf
push 0
lea ecx, [esp + 0xc]
call fcn.00434b80
test eax, eax
je 0x40bd74
lea ecx, [esp + 8]
call fcn.00436630
mov eax, dword [0x4f5b3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
mov bl, 0xd
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], bl
call fcn.004a9d0c
push 0x4ff328
lea ecx, [esp + 0x18]
call fcn.004a9d0c
lea ecx, [esp + 0x18]
call fcn.004aa0f5
lea ecx, [esp + 0x14]
call fcn.004aa0f5
lea ecx, [esp + 0x48]
lea edx, [esp + 0x24]
push ecx
push str.Backup
push edx
call fcn.004a9edc
push str._to
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x48], 0xe
push eax
call fcn.004a9e68
lea ecx, [esp + 8]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x4c], 0xf
call fcn.004a9e02
push eax
mov byte [esp + 0x44], 0x10
call fcn.0045db50
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 0xf
call fcn.004a9c1f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0xe
call fcn.004a9c1f
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], bl
call fcn.004a9c1f
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40be75
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x14]
push str.BackupFile:_WARNING_MoveFile___s__to___s__failed__using_CopyFile.
push eax
call fcn.004a768f
lea ecx, [esp + 0x1c]
push ecx
call fcn.0045db50
add esp, 0x14
lea edx, [esp + 0x48]
lea eax, [esp + 0x28]
push edx
push str.BackupFile:__
push eax
call fcn.004a9edc
push 0x4eea6c
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x4c], 0x11
call fcn.004a9e68
lea edx, [esp + 8]
mov byte [esp + 0x40], 0x12
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004a9e02
push 0x4ee4f8
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x4c], 0x13
call fcn.004a9e68
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0x14
call fcn.004a9d0c
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0x13
call fcn.004a9c1f
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 0x12
call fcn.004a9c1f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0x11
call fcn.004a9c1f
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], bl
call fcn.004a9c1f
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004a9994
mov ecx, 0x4fee30
call fcn.00421b40
mov eax, dword [0x4f5b3c]
mov dword [esp + 0x10], eax
push 0x4ee4fc
lea ecx, [esp + 0x24]
push 0x4fef34
push ecx
mov byte [esp + 0x4c], 0x15
call fcn.004a9e68
lea edx, [esp + 8]
mov byte [esp + 0x40], 0x16
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004a9e02
push 0x4ee4f8
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x4c], 0x17
call fcn.004a9e68
mov byte [esp + 0x40], 0x18
push eax
lea ecx, [esp + 0x14]
call fcn.004a9d0c
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0x17
call fcn.004a9c1f
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0x16
call fcn.004a9c1f
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 0x15
call fcn.004a9c1f
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004a9994
mov ecx, 0x4fee30
call fcn.00421b40
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.004a9c1f
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0xc
call fcn.004a9c1f
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.004a9c1f
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.004a9c1f
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0
call fcn.004a9c1f
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 0x38]
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 4