Function at 0x5da800
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [ebx + 0x14], 8
mov edi, ecx
mov dword [ebp - 0xc], esi
mov ecx, ebx
jb 0x5da827
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5da831
mov eax, dword [edi]
push 9
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
setne cl
mov byte [ebp - 0xd], cl
test eax, eax
jne 0x5dab40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x5dab3d
test esi, esi
je 0x5da88f
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x5da868
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5da872
mov ecx, dword [edi]
mov esi, dword [esi]
push eax
push ecx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x701e7c
push 0x701e7c
push 0x1e
push dword [ebp - 0xc]
jmp 0x5da90f
mov eax, dword [0x7eb9f0]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5da8dc
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x5da8a5
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x5da8af
mov edx, dword [edi]
push ecx
push edx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x701e7c
push 0x701e7c
push 0x701e7c
push 0x7721a4
push 0x1e
mov ecx, eax
call dword [0x6ef350]
call dword [ebp - 0x14]
add esp, 0x20
jmp 0x5da922
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5da922
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x5da8ef
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x5da8f9
mov edx, dword [edi]
mov esi, dword [eax]
push ecx
push edx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x701e7c
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], edi
jb 0x5da930
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
push 0x44
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0x44
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5daa5a
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x5da97b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
sub esp, 0x14
push dword [ebp - 0x1c]
call fcn.005dc400
add esp, 0x1c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x14], 0
jne 0x5daa5a
test esi, esi
je 0x5da9b5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5da99c
mov eax, dword [edi]
mov esi, dword [esi]
push eax
push str.Trying_to_back_up_folder__s_after_setting_permissions
push str.FileUtils
push 0x701e7c
push 0x1e
push dword [ebp - 0xc]
jmp 0x5daa1f
mov eax, dword [0x7eb9f0]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5da9f7
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5da9cb
mov ecx, dword [edi]
push ecx
push str.Trying_to_back_up_folder__s_after_setting_permissions
push 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x1e
mov ecx, eax
call dword [0x6ef350]
call dword [ebp - 0x14]
add esp, 0x1c
jmp 0x5daa32
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5daa32
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5daa0a
mov ecx, dword [edi]
mov esi, dword [eax]
push ecx
push str.Trying_to_back_up_folder__s_after_setting_permissions
push str.FileUtils
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x18
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x5daa3c
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5daa46
mov ecx, dword [edi]
push 9
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
setne cl
jmp 0x5dab40
test esi, esi
je 0x5daa89
cmp dword [edi + 0x14], 8
jb 0x5daa66
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push str.FileUtils
push 0x701e7c
push 0x32
push dword [ebp - 0xc]
jmp 0x5dab1a
cmp dword [0x7eb9f0], 0
je 0x5daae3
cmp dword [edi + 0x14], 8
jb 0x5daa9a
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5dac1a
cmp dword [edi + 0x14], 8
jb 0x5daaf9
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push str.FileUtils
push 0x701e7c
push 0x32
push dword [0x7eb9f4]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0xd]
test cl, cl
jne 0x5dac2d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
test esi, esi
je 0x5dab82
cmp dword [ebx + 0x14], 8
jb 0x5dab5c
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x5dab64
mov edi, dword [edi]
mov esi, dword [esi]
push ecx
push ebx
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push str.FileUtils
push 0x701e7c
push 0x32
push dword [ebp - 0xc]
jmp 0x5dac0a
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5dabda
cmp dword [ebx + 0x14], 8
jb 0x5dab94
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x5dab9c
mov edi, dword [edi]
push ecx
push ebx
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x24
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5dac1a
cmp dword [ebx + 0x14], 8
jb 0x5dabeb
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x5dabf3
mov edi, dword [edi]
mov esi, dword [eax]
push ecx
push ebx
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push str.FileUtils
push 0x701e7c
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063de71
mov esp, ebp
pop ebp
ret