Function at 0x51df50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
jb 0x51df63
mov eax, dword [esi]
jmp 0x51df65
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x51df72
mov ecx, dword [edi]
jmp 0x51df74
mov ecx, edi
push 9
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
test al, al
jne 0x51e2c7
cmp byte [ebp + 0x10], al
mov ebx, dword [ebp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x51e14a
call eax
cmp eax, 5
jne 0x51e145
test ebx, ebx
je 0x51dfde
cmp dword [esi + 0x14], 8
jb 0x51dfb5
mov edx, dword [esi]
jmp 0x51dfb7
mov edx, esi
cmp dword [edi + 0x14], 8
jb 0x51dfc1
mov ecx, dword [edi]
jmp 0x51dfc3
mov ecx, edi
mov eax, dword [ebx]
push edx
push ecx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x5f8398
push 0x5f8398
push 0x1e
push ebx
jmp 0x51e062
mov edx, dword [0x656c44]
test edx, edx
je 0x51e024
cmp dword [esi + 0x14], 8
jb 0x51dff2
mov ecx, dword [esi]
jmp 0x51dff4
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x51dffe
mov eax, dword [edi]
jmp 0x51e000
mov eax, edi
push ecx
push eax
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x5f8398
push 0x5f8398
push 0x5f8398
push 0x61c4f4
push 0x1e
call edx
add esp, 0x20
jmp 0x51e068
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51e068
cmp dword [esi + 0x14], 8
jb 0x51e03b
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
jmp 0x51e03e
mov dword [ebp + 0xc], esi
cmp dword [edi + 0x14], 8
jb 0x51e048
mov edx, dword [edi]
jmp 0x51e04a
mov edx, edi
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x5f8398
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
jb 0x51e072
mov ecx, dword [edi]
jmp 0x51e074
mov ecx, edi
push ecx
call fcn.00520800
add esp, 4
test al, al
je 0x51e18a
test ebx, ebx
je 0x51e0ac
cmp dword [edi + 0x14], 8
jb 0x51e093
mov ecx, dword [edi]
jmp 0x51e095
mov ecx, edi
mov eax, dword [ebx]
push ecx
push str.Trying_to_back_up_folder__s_after_setting_permissions
push str.FileUtils
push 0x5f8398
push 0x1e
push ebx
jmp 0x51e110
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x51e0e5
cmp dword [edi + 0x14], 8
jb 0x51e0c0
mov eax, dword [edi]
jmp 0x51e0c2
mov eax, edi
push eax
push str.Trying_to_back_up_folder__s_after_setting_permissions
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x1e
call ecx
add esp, 0x1c
jmp 0x51e116
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51e116
cmp dword [edi + 0x14], 8
jb 0x51e0f9
mov edx, dword [edi]
jmp 0x51e0fb
mov edx, edi
mov eax, dword [ecx]
push edx
push str.Trying_to_back_up_folder__s_after_setting_permissions
push str.FileUtils
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x51e120
mov ecx, dword [esi]
jmp 0x51e122
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x51e12c
mov eax, dword [edi]
jmp 0x51e12e
mov eax, edi
push 9
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
test al, al
jne 0x51e2c7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
test ebx, ebx
je 0x51e246
cmp dword [esi + 0x14], 8
jb 0x51e15e
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x51e166
mov edi, dword [edi]
mov eax, dword [ebx]
push edx
push esi
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push str.FileUtils
push 0x5f8398
push 0x32
push ebx
call dword [eax + 0x34]
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x51e1c0
cmp dword [edi + 0x14], 8
jb 0x51e196
mov edi, dword [edi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx]
call eax
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push str.FileUtils
push 0x5f8398
push 0x32
push ebx
call dword [esi + 0x34]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [0x656c44], 0
je 0x51e205
cmp dword [edi + 0x14], 8
jb 0x51e1d1
mov edi, dword [edi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
mov esi, dword [0x656c48]
test esi, esi
je 0x51e23f
cmp dword [edi + 0x14], 8
jb 0x51e217
mov edi, dword [edi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi]
call eax
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push str.FileUtils
push 0x5f8398
push 0x32
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x1c
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
mov eax, dword [0x656c44]
test eax, eax
je 0x51e289
cmp dword [esi + 0x14], 8
jb 0x51e257
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x51e25f
mov edi, dword [edi]
push edx
push esi
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push 0x5f8398
push 0x5f8398
push str.FileUtils
push 0x61c4f4
push 0x32
call eax
add esp, 0x24
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51e2c0
cmp dword [esi + 0x14], 8
jb 0x51e29b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x51e2a3
mov edi, dword [edi]
mov eax, dword [ecx]
push edx
push esi
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push str.FileUtils
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x20
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret