Function at 0x1001ea70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2440
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10104610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
mov edi, ecx
push ebx
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.100052c0
mov dword [ebp - 4], ebx
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
push str.utilBackupFolderIfExits
push str.In_Function_:_s
mov byte [ebp - 4], 2
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006a60
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.10028f60
add esp, 0x10
test al, al
jne 0x1001eb7e
push str.Failed_to_get_wide_string_path
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006a60
mov edi, 8
add esp, 4
cmp dword [ebp - 0x34], edi
jb 0x1001eb3c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100afa01
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], edi
jb 0x1001eb59
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100afa01
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jb 0x1001eb77
mov edx, dword [ebp - 0x64]
push edx
call fcn.100afa01
add esp, 4
xor al, al
jmp 0x1001edfc
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x1001eb8e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1001ec05
push 0x100e0290
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006ac0
add esp, 4
cmp dword [ebp - 0x34], edi
jb 0x1001ebc1
mov eax, dword [ebp - 0x48]
push eax
call fcn.100afa01
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], edi
jb 0x1001ebde
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
jb 0x1001edfa
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100afa01
add esp, 4
jmp 0x1001edfa
lea edx, [ebp - 0x64]
push edx
call fcn.1001e890
add esp, 4
test al, al
jne 0x1001ec83
push str.Failed_to_remove_discriminator_from_the_end_of_folder
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006ac0
add esp, 4
cmp dword [ebp - 0x34], edi
jb 0x1001ec3d
mov eax, dword [ebp - 0x48]
push eax
call fcn.100afa01
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], edi
jb 0x1001ec5a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
jb 0x1001eb77
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100afa01
add esp, 4
xor al, al
jmp 0x1001edfc
push str._bkp
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.10019580
add esp, 0xc
mov esi, dword [ebp - 0x84]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.10005050
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], 0x10
jb 0x1001ecbf
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.100afa01
add esp, 4
lea edx, [ebp - 0x48]
push edx
push esi
call fcn.10028f60
add esp, 8
test al, al
jne 0x1001ed06
push str.Failed_to_get_wide_string_backup_folder_path
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006a60
add esp, 4
lea esi, [ebp - 0x48]
call fcn.10001790
lea esi, [ebp - 0x2c]
call fcn.10001790
lea ecx, [ebp - 0x64]
call fcn.10004d50
xor al, al
jmp 0x1001edfc
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x1001ed16
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1001ed4e
push esi
call fcn.1001ee20
add esp, 4
test al, al
jne 0x1001ed4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_remove_the_backup_folder_already_present:_d
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b20
add esp, 8
jmp 0x1001ece7
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x1001ed59
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x1001ed64
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
push ecx
push eax
call esi
cmp eax, ebx
jne 0x1001edcb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], bl
je 0x1001edbe
call edi
cmp eax, 5
jne 0x1001edbe
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1001ed91
lea eax, [ebp - 0x2c]
call fcn.1002a960
test al, al
je 0x1001edbe
mov ecx, dword [ebp - 0x48]
mov edx, 8
cmp dword [ebp - 0x34], edx
jae 0x1001edaa
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x1001edb5
lea eax, [ebp - 0x2c]
push edx
push ecx
push eax
call esi
cmp eax, ebx
jne 0x1001edcb
call edi
push eax
push str.Failed_to_create_Backup_folder_:_d
jmp 0x1001ed3a
push str.Backup_Folder_Created
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006ac0
add esp, 4
lea esi, [ebp - 0x48]
call fcn.10001790
lea esi, [ebp - 0x2c]
call fcn.10001790
lea ecx, [ebp - 0x64]
call fcn.10004d50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret