Function at 0x1014e2b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x102e91c0]
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 0x1014e2d7
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1014e2e1
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 0x1014e5f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1014e5ed
test esi, esi
je 0x1014e33f
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1014e318
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1014e322
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 0x1025b044
push 0x1025b044
push 0x1e
push dword [ebp - 0xc]
jmp 0x1014e3bf
mov eax, dword [0x102eec44]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1014e38c
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x1014e355
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x1014e35f
mov edx, dword [edi]
push ecx
push edx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x1025b044
push 0x1025b044
push 0x1025b044
push str.OOBEUtils
push 0x1e
mov ecx, eax
call dword [0x1024852c]
call dword [ebp - 0x14]
add esp, 0x20
jmp 0x1014e3d2
mov eax, dword [0x102eec48]
test eax, eax
je 0x1014e3d2
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1014e39f
mov ecx, dword [edi]
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x1014e3a9
mov edx, dword [ebx]
mov esi, dword [eax]
push edx
push ecx
push str.Failed_to_rename_path__s_to__s._Trying_to_set_administrative_permissions.
push 0x1025b044
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], edi
jb 0x1014e3e0
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 0x1014e50a
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1014e42b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
sub esp, 0x14
push dword [ebp - 0x1c]
call fcn.1014fb20
add esp, 0x1c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 0
jne 0x1014e50a
test esi, esi
je 0x1014e465
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1014e44c
mov eax, dword [edi]
mov esi, dword [esi]
push eax
push str.Trying_to_back_up_folder__s_after_setting_permissions
push 0x102a812c
push 0x1025b044
push 0x1e
push dword [ebp - 0xc]
jmp 0x1014e4cf
mov eax, dword [0x102eec44]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1014e4a7
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1014e47b
mov ecx, dword [edi]
push ecx
push str.Trying_to_back_up_folder__s_after_setting_permissions
push 0x1025b044
push 0x1025b044
push 0x102a812c
push str.OOBEUtils
push 0x1e
mov ecx, eax
call dword [0x1024852c]
call dword [ebp - 0x14]
add esp, 0x1c
jmp 0x1014e4e2
mov eax, dword [0x102eec48]
test eax, eax
je 0x1014e4e2
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1014e4ba
mov ecx, dword [edi]
mov esi, dword [eax]
push ecx
push str.Trying_to_back_up_folder__s_after_setting_permissions
push 0x102a812c
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x18
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1014e4ec
mov eax, dword [edi]
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x1014e4f6
mov ecx, dword [ebx]
push 9
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne cl
jmp 0x1014e5f0
test esi, esi
je 0x1014e539
cmp dword [edi + 0x14], 8
jb 0x1014e516
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 0x102a812c
push 0x1025b044
push 0x32
push dword [ebp - 0xc]
jmp 0x1014e5ca
cmp dword [0x102eec44], 0
je 0x1014e593
cmp dword [edi + 0x14], 8
jb 0x1014e54a
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x102eec44]
mov ecx, esi
push eax
push edi
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push 0x1025b044
push 0x1025b044
push 0x102a812c
push str.OOBEUtils
push 0x32
call dword [0x1024852c]
call esi
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov esi, dword [0x102eec48]
test esi, esi
je 0x1014e6ca
cmp dword [edi + 0x14], 8
jb 0x1014e5a9
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 0x102a812c
push 0x1025b044
push 0x32
push dword [0x102eec48]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0xd]
test cl, cl
jne 0x1014e6dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test esi, esi
je 0x1014e632
cmp dword [edi + 0x14], 8
jb 0x1014e60c
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x1014e614
mov ebx, dword [ebx]
mov esi, dword [esi]
push ecx
push ebx
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push 0x102a812c
push 0x1025b044
push 0x32
push dword [ebp - 0xc]
jmp 0x1014e6ba
mov esi, dword [0x102eec44]
test esi, esi
je 0x1014e68a
cmp dword [edi + 0x14], 8
jb 0x1014e644
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x1014e64c
mov ebx, dword [ebx]
push ecx
push ebx
push edi
push str.Failed_to_rename_path__s_to__s._LastError:__d
push 0x1025b044
push 0x1025b044
push 0x102a812c
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x24
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov eax, dword [0x102eec48]
test eax, eax
je 0x1014e6ca
cmp dword [ebx + 0x14], 8
jb 0x1014e69b
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x1014e6a3
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 0x102a812c
push 0x1025b044
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
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.101cff65
mov esp, ebp
pop ebp
ret