Function at 0x14004c178
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
mov qword [rsp + 0x70], r9
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x48], rcx
mov rsi, r9
mov r12, r8
mov rdi, rdx
test rdx, rdx
je 0x14004c1c5
mov r15, qword [rdx]
jmp 0x14004c1c8
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
mov dword [rbp - 0x10], eax
mov eax, dword [r9 + 0x1c]
xorps xmm1, xmm1
mov dword [rsp + 0x50], 1
mov r13d, ebx
mov dword [rsp + 0x54], ebx
mov word [rsp + 0x40], bx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x68], rbx
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movdqu xmmword [rbp - 0x78], xmm0
test al, 0x10
je 0x14004c2fa
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call fcn.1400448f4
test eax, eax
jne 0x14004c2fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14004c2f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
je 0x14004c2f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
lea rdi, str.RestoreReparsePoint
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c2a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c2c9
jmp 0x14004c2ac
mov ebx, 0x80004005
and qword [rsp + 0x20], r13
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, ebx
mov r8d, 0x6a5
mov rcx, rdi
call fcn.140046874
mov dword [rsp + 0x30], 0x6a6
lea r9, str.CreateDirectory_failed
mov qword [rsp + 0x28], rdi
mov r8, r12
mov rdx, r14
mov dword [rsp + 0x20], ebx
mov ecx, 1
call fcn.14002aaa0
jmp 0x14004c917
mov dword [rsp + 0x50], ebx
mov eax, dword [rsi + 0x1c]
mov edx, 0x200
mov ecx, eax
mov dword [rsp + 0x30], ebx
and ecx, 0x10
mov qword [rbp - 0x80], r12
or ecx, 0x48000000
mov r9d, 4
mov r8d, ecx
or r8d, edx
and eax, edx
lea rdx, [rsp + 0x78]
lea rax, [rsp + 0x48]
cmove r8d, ecx
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.140027ec0
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x14004c3c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
lea rdi, str.RestoreReparsePoint
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c38e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c3b0
jmp 0x14004c393
mov ebx, 0x80004005
and qword [rsp + 0x20], r13
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, ebx
mov r8d, 0x6c0
mov rcx, rdi
call fcn.140046874
mov dword [rsp + 0x30], 0x6c1
lea r9, str.CreateFile_failed
jmp 0x14004c81a
cmp r15, 0xffffffffffffffff
jne 0x14004c4f1
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, r14
call fcn.140034310
mov rbx, qword [rsp + 0x68]
mov r15, rax
test rbx, rbx
jne 0x14004c456
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edi, edi
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c42b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c835
jmp 0x14004c430
mov ebx, 0x80004005
mov r9d, ebx
mov qword [rsp + 0x20], rdi
mov r8d, 0x6d1
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
lea rcx, str.RestoreReparsePoint
call fcn.140046874
jmp 0x14004c835
mov rdx, qword [rsp + 0x70]
mov r9, rbx
add rdx, 0x20
mov r8, rax
mov rcx, r14
call fcn.140046ea8
test eax, eax
jne 0x14004c4e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
lea rdi, str.RestoreReparsePoint
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c4b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c4d5
jmp 0x14004c4b8
mov ebx, 0x80004005
and qword [rsp + 0x20], r13
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, ebx
mov r8d, 0x6db
mov rcx, rdi
call fcn.140046874
mov dword [rsp + 0x30], 0x6dc
lea r9, str.ResExtractToFile_failed
jmp 0x14004c81a
mov dword [rsp + 0x54], 1
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14004c580
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
lea rdi, str.RestoreReparsePoint
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c54a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c56c
jmp 0x14004c54f
mov ebx, 0x80004005
and qword [rsp + 0x20], r13
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, ebx
mov r8d, 0x6e9
mov rcx, rdi
call fcn.140046874
mov dword [rsp + 0x30], 0x6ea
lea r9, str.stat._failed
jmp 0x14004c81a
movzx eax, word [rbp - 0x1c]
mov r13d, 8
add ax, r13w
movzx ebx, ax
mov word [rsp + 0x40], bx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r13, rax
test rax, rax
jne 0x14004c638
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
lea rdi, str.RestoreReparsePoint
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c601
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c624
jmp 0x14004c606
mov ebx, 0x80004005
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, ebx
mov r8d, 0x6f4
mov rcx, rdi
call fcn.140046874
mov dword [rsp + 0x30], 0x6f5
lea r9, str.MALLOC_failed
jmp 0x14004c81a
mov rbx, qword [rsp + 0x70]
lea rdx, [r13 + 8]
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x60]
mov rcx, r15
mov eax, dword [rbx + 0x80]
mov dword [r13], eax
movzx eax, word [rbp - 0x1c]
mov word [r13 + 4], ax
movzx eax, word [rbx + 0x84]
movzx r8d, word [r13 + 4]
mov word [r13 + 6], ax
call fcn.1400316a4
test eax, eax
jne 0x14004c6f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
lea rdi, str.RestoreReparsePoint
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c6bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c6df
jmp 0x14004c6c1
mov ebx, 0x80004005
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, ebx
mov r8d, 0x706
mov rcx, rdi
call fcn.140046874
mov dword [rsp + 0x30], 0x707
lea r9, str.ReadData_reparse_tag_from_filestream_failed
jmp 0x14004c81a
lea rax, [rsp + 0x40]
mov r9, r12
mov qword [rsp + 0x38], rax
mov r8, rbx
lea rax, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, r14
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], r13
call fcn.140018844
mov ebx, eax
test eax, eax
jns 0x14004c755
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, eax
lea rcx, str.RestoreReparsePoint
mov r8d, 0x70d
call fcn.140046874
xor edi, edi
jmp 0x14004c83a
mov r8, qword [rsp + 0x58]
xor ebx, ebx
test r8, r8
jne 0x14004c76c
mov r8, r13
mov qword [rsp + 0x58], r13
mov r13d, ebx
movzx r9d, word [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov edx, 0x900a4
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14004c93a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
lea rdi, str.RestoreReparsePoint
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14004c7e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004c80b
jmp 0x14004c7ed
mov ebx, 0x80004005
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restoreworker.c
mov r9d, ebx
mov r8d, 0x71f
mov rcx, rdi
call fcn.140046874
mov dword [rsp + 0x30], 0x720
lea r9, str.ioctl:_setting_reparse_point_tag_failed
mov qword [rsp + 0x28], rdi
mov r8, r12
mov rdx, r14
mov dword [rsp + 0x20], ebx
mov ecx, 1
call fcn.14002aaa0
xor edi, edi
mov rsi, qword [rsp + 0x48]
cmp r15, 0xffffffffffffffff
je 0x14004c855
cmp dword [rsp + 0x54], edi
je 0x14004c855
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov r14d, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14004c893
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp rsi, 0xffffffffffffffff
je 0x14004c8a8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x1c]
test al, 0x10
je 0x14004c8c8
test r14d, r14d
je 0x14004c8c8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test r13, r13
je 0x14004c8ed
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp qword [rsp + 0x58], 0
je 0x14004c917
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140096bd0
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14004c955
mov qword [rdi], rsi
or rsi, 0xffffffffffffffff
xor r14d, r14d
jmp 0x14004c85a