Function at 0x5cc260
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7e500c]
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 0x5cc287
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5cc291
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 0x5cc5a0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x5cc59d
test esi, esi
je 0x5cc2ef
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x5cc2c8
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5cc2d2
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 0x71a27c
push 0x71a27c
push 0x1e
push dword [ebp - 0xc]
jmp 0x5cc36f
mov eax, dword [0x8076a4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5cc33c
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x5cc305
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x5cc30f
mov edx, dword [edi]
push ecx
push edx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x71a27c
push 0x71a27c
push 0x71a27c
push str.OOBEUtils
push 0x1e
mov ecx, eax
call dword [0x707770]
call dword [ebp - 0x14]
add esp, 0x20
jmp 0x5cc382
mov eax, dword [0x8076a8]
test eax, eax
je 0x5cc382
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x5cc34f
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x5cc359
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 0x71a27c
push 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], edi
jb 0x5cc390
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 0x5cc4ba
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x5cc3db
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
sub esp, 0x14
push dword [ebp - 0x1c]
call fcn.005cde50
add esp, 0x1c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x14], 0
jne 0x5cc4ba
test esi, esi
je 0x5cc415
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5cc3fc
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 0x71a27c
push 0x1e
push dword [ebp - 0xc]
jmp 0x5cc47f
mov eax, dword [0x8076a4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5cc457
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5cc42b
mov ecx, dword [edi]
push ecx
push str.Trying_to_back_up_folder__s_after_setting_permissions
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x1e
mov ecx, eax
call dword [0x707770]
call dword [ebp - 0x14]
add esp, 0x1c
jmp 0x5cc492
mov eax, dword [0x8076a8]
test eax, eax
je 0x5cc492
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5cc46a
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 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x18
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x5cc49c
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5cc4a6
mov ecx, dword [edi]
push 9
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
setne cl
jmp 0x5cc5a0
test esi, esi
je 0x5cc4e9
cmp dword [edi + 0x14], 8
jb 0x5cc4c6
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 0x71a27c
push 0x32
push dword [ebp - 0xc]
jmp 0x5cc57a
cmp dword [0x8076a4], 0
je 0x5cc543
cmp dword [edi + 0x14], 8
jb 0x5cc4fa
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x707770]
call esi
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, dword [0x8076a8]
test esi, esi
je 0x5cc67a
cmp dword [edi + 0x14], 8
jb 0x5cc559
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 0x71a27c
push 0x32
push dword [0x8076a8]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0xd]
test cl, cl
jne 0x5cc68d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
test esi, esi
je 0x5cc5e2
cmp dword [ebx + 0x14], 8
jb 0x5cc5bc
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x5cc5c4
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 0x71a27c
push 0x32
push dword [ebp - 0xc]
jmp 0x5cc66a
mov esi, dword [0x8076a4]
test esi, esi
je 0x5cc63a
cmp dword [ebx + 0x14], 8
jb 0x5cc5f4
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x5cc5fc
mov edi, dword [edi]
push ecx
push ebx
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x24
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov eax, dword [0x8076a8]
test eax, eax
je 0x5cc67a
cmp dword [ebx + 0x14], 8
jb 0x5cc64b
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x5cc653
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 0x71a27c
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
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.00650ddc
mov esp, ebp
pop ebp
ret