Function at 0x51e8c0
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 0x51e8d3
mov eax, dword [esi]
jmp 0x51e8d5
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x51e8e2
mov ecx, dword [edi]
jmp 0x51e8e4
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 0x51ec37
cmp byte [ebp + 0x10], al
mov ebx, dword [ebp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x51eaba
call eax
cmp eax, 5
jne 0x51eab5
test ebx, ebx
je 0x51e94e
cmp dword [esi + 0x14], 8
jb 0x51e925
mov edx, dword [esi]
jmp 0x51e927
mov edx, esi
cmp dword [edi + 0x14], 8
jb 0x51e931
mov ecx, dword [edi]
jmp 0x51e933
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 0x51e9d2
mov edx, dword [0x656c44]
test edx, edx
je 0x51e994
cmp dword [esi + 0x14], 8
jb 0x51e962
mov ecx, dword [esi]
jmp 0x51e964
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x51e96e
mov eax, dword [edi]
jmp 0x51e970
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 str.OOBEUtils
push 0x1e
call edx
add esp, 0x20
jmp 0x51e9d8
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51e9d8
cmp dword [esi + 0x14], 8
jb 0x51e9ab
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
jmp 0x51e9ae
mov dword [ebp + 0xc], esi
cmp dword [edi + 0x14], 8
jb 0x51e9b8
mov edx, dword [edi]
jmp 0x51e9ba
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 0x51e9e2
mov ecx, dword [edi]
jmp 0x51e9e4
mov ecx, edi
push ecx
call fcn.00521170
add esp, 4
test al, al
je 0x51eafa
test ebx, ebx
je 0x51ea1c
cmp dword [edi + 0x14], 8
jb 0x51ea03
mov ecx, dword [edi]
jmp 0x51ea05
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 0x51ea80
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x51ea55
cmp dword [edi + 0x14], 8
jb 0x51ea30
mov eax, dword [edi]
jmp 0x51ea32
mov eax, edi
push eax
push str.Trying_to_back_up_folder__s_after_setting_permissions
push 0x5f8398
push 0x5f8398
push str.FileUtils
push str.OOBEUtils
push 0x1e
call ecx
add esp, 0x1c
jmp 0x51ea86
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x51ea86
cmp dword [edi + 0x14], 8
jb 0x51ea69
mov edx, dword [edi]
jmp 0x51ea6b
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 0x51ea90
mov ecx, dword [esi]
jmp 0x51ea92
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x51ea9c
mov eax, dword [edi]
jmp 0x51ea9e
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 0x51ec37
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
test ebx, ebx
je 0x51ebb6
cmp dword [esi + 0x14], 8
jb 0x51eace
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x51ead6
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 0x51eb30
cmp dword [edi + 0x14], 8
jb 0x51eb06
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 0x51eb75
cmp dword [edi + 0x14], 8
jb 0x51eb41
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 str.OOBEUtils
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 0x51ebaf
cmp dword [edi + 0x14], 8
jb 0x51eb87
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 0x51ebf9
cmp dword [esi + 0x14], 8
jb 0x51ebc7
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x51ebcf
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 str.OOBEUtils
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 0x51ec30
cmp dword [esi + 0x14], 8
jb 0x51ec0b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x51ec13
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