Function at 0x14001f6f8
Capabilities:
Check if file exists
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r8, qword [rcx + 0x38]
xor esi, esi
mov rdi, qword [rcx + 0x10]
xor r14d, r14d
mov qword [rax + 8], rsi
mov r15, rdx
mov dword [rax - 0x38], 0x11
mov rbp, rcx
mov byte [rax - 0x34], sil
mov dword [rax - 0x30], 0x12
mov byte [rax - 0x2c], sil
test r8, r8
je 0x14001f750
mov rax, qword [r8 + 0x48]
test rax, rax
cmovne r8, rax
mov r14d, dword [r8 + 0x24]
mov r8d, 2
lea rdx, [rsp + 0x30]
mov ecx, r14d
call fcn.14004d620
mov ebx, eax
test eax, eax
jns 0x14001f78f
and qword [rsp + 0x20], rsi
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilibmount.c
mov r9d, eax
lea rcx, str.DeleteAndRestoreDirectory
mov r8d, 0x110
call fcn.140046874
jmp 0x14001fa09
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.14002f2f8
test rax, rax
mov r12, rax
mov r9, r15
mov edx, FDICopy
cmovne rdi, rax
xor r8d, r8d
lea rax, [0x14001f5e0]
test r15, r15
mov rcx, rdi
cmovne r8, rax
call fcn.14000a9c4
test eax, eax
jne 0x14001f8a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x14001f8a8
cmp eax, 0x4d3
je 0x14001f8a8
cmp eax, 0x800704d3
je 0x14001f895
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov rcx, rdi
call fcn.14000c064
test eax, eax
je 0x14001f8a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001f85a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14001f880
jmp 0x14001f85f
mov ebx, 0x80004005
and qword [rsp + 0x20], rsi
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilibmount.c
mov r9d, ebx
lea rcx, str.DeleteAndRestoreDirectory
mov r8d, 0x14f
call fcn.140046874
and qword [rsp + 0x20], rsi
mov ebx, 0xc1420117
mov r8d, 0x150
jmp 0x14001f996
and qword [rsp + 0x20], rsi
mov r9d, eax
mov r8d, 0x13f
jmp 0x14001f999
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14001f909
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001f8f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x14001f8f9
mov ebx, 0x80004005
and qword [rsp + 0x20], rsi
mov r8d, 0x158
jmp 0x14001f996
mov rcx, qword [rbp + 0x38]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, rdi
call fcn.140043cbc
mov rsi, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
js 0x14001f9ac
mov rcx, rsi
call fcn.14000c064
test eax, eax
je 0x14001f9ac
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x12]
call fcn.14000a9c4
test eax, eax
jne 0x14001f9ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001f985
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x14001f98a
mov ebx, 0x80004005
and qword [rsp + 0x20], 0
mov r8d, 0x168
mov r9d, ebx
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilibmount.c
lea rcx, str.DeleteAndRestoreDirectory
call fcn.140046874
mov r8d, 2
lea rdx, [rsp + 0x30]
mov ecx, r14d
call fcn.14004d78c
test r12, r12
je 0x14001f9e4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rsi, rsi
je 0x14001fa09
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret