Function at 0x1400570ec
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x300
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, r8
mov r14, rdx
mov r12, rcx
mov qword [rbp + 0x90], rdx
mov qword [rbp + 0x98], r8
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov rdx, r8
mov rcx, r14
call fcn.1400567a8
test eax, eax
je 0x14005716c
mov rcx, r14
call fcn.140014c6c
nop
mov rcx, rdi
call fcn.140014c6c
mov al, 1
jmp 0x140057921
test byte [0x1400dd8c1], 8
je 0x140057189
mov r9, qword [rdi + 8]
mov r8, qword [r14 + 8]
lea rdx, [0x1400b5a18]
call fcn.14005846c
mov esi, r13d
mov dword [rsp + 0x34], 0xa
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14001c494
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14005686c
nop
mov dword [rsp + 0x38], 1
mov rcx, qword [rax + 8]
call fcn.14001d00c
test al, al
je 0x1400571ef
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.14001c494
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14005686c
mov rdx, rax
call fcn.1400579f4
test al, al
mov bl, 1
jne 0x1400571f2
mov bl, r13b
lea rcx, [rbp + 0xa0]
call fcn.140014c6c
test bl, bl
je 0x14005722b
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14005686c
mov rdx, rax
mov rcx, r12
call fcn.140056ccc
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14001c8d8
mov rcx, qword [rax + 8]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rbp + 0x140]
call fcn.140014c6c
test ebx, ebx
je 0x1400572b7
mov esi, 0x800700b7
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
lea rax, str.NewDir:__ls
mov r9d, esi
mov edx, 0x1c6
lea r15, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov r8, r15
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x238]
call fcn.14004b164
mov byte [rsp + 0x30], r13b
mov byte [rsp + 0x31], 0
mov byte [rsp + 0x32], 0
jmp 0x1400575d0
mov dword [rsp + 0x34], SafeArrayPutElement
mov r9d, dword [r14 + 0x14]
cmp dword [rdi + 0x14], r9d
jb 0x140057334
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400163f4
mov dword [rbp + 0x1e0], r13d
mov eax, dword [r14 + 0x14]
mov dword [rbp + 0x1e4], eax
mov qword [rbp + 0x1e8], r14
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x38]
call fcn.1400161bc
test eax, eax
je 0x140057334
mov rdx, qword [rdi + 8]
mov eax, dword [r14 + 0x14]
cmp word [rdx + rax*2], 0x5c
jne 0x140057334
mov r9d, 0x8007007b
mov esi, r9d
mov qword [rsp + 0x28], rdx
lea rax, str.NewDirChild:__ls
mov edx, 0x1d1
jmp 0x140057288
mov r9d, dword [rdi + 0x14]
lea r15, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
cmp dword [r14 + 0x14], r9d
jb 0x1400573c1
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.1400163f4
mov dword [rbp + 0x1e0], r13d
mov eax, dword [rdi + 0x14]
mov dword [rbp + 0x1e4], eax
mov qword [rbp + 0x1e8], rdi
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x38]
call fcn.1400161bc
test eax, eax
je 0x1400573c1
mov ecx, dword [rdi + 0x14]
mov rax, qword [r14 + 8]
cmp word [rax + rcx*2], 0x5c
jne 0x1400573c1
mov r9d, 0x8007007b
mov esi, r9d
mov rax, qword [rdi + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rax
lea rax, str.NewDirParent:__ls
mov qword [rsp + 0x20], rax
mov r8, r15
mov edx, 0x1d6
call fcn.14004b164
mov byte [rsp + 0x30], r13b
test esi, esi
js 0x1400574f3
mov dword [rsp + 0x34], 0x1e
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.14001cf30
test byte [0x1400dd8c1], 8
je 0x140057410
mov r9, qword [rdi + 8]
mov r8, qword [r14 + 8]
lea rdx, [0x1400b5858]
call fcn.14005846c
lea rax, [rbp + 0x140]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14001c8d8
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.14001c494
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001c8d8
nop
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140056964
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x140057484
mov r9d, eax
mov r8, r15
mov edx, 0x1e7
call fcn.140043510
mov byte [rsp + 0x30], 1
test esi, esi
js 0x1400574f3
mov dword [rsp + 0x34], 0x28
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.14001c494
nop
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140057c74
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x1400574f0
mov r9d, eax
mov r8, r15
mov edx, 0x1f0
call fcn.140043510
mov r13b, 1
mov byte [rsp + 0x31], 0
test esi, esi
js 0x14005753f
mov dword [rsp + 0x34], 0x32
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
call fcn.140057af8
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x14005753a
mov r9d, eax
mov r8, r15
mov edx, 0x1f9
call fcn.140043510
jmp 0x14005753f
mov byte [rsp + 0x31], 1
mov byte [rsp + 0x32], 0
test esi, esi
js 0x1400575d0
mov dword [rsp + 0x34], 0x3c
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
mov rcx, r12
call fcn.1400582dc
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x14005758d
mov r9d, eax
mov r8, r15
mov edx, 0x206
call fcn.140043510
jmp 0x140057592
mov byte [rsp + 0x32], 1
test esi, esi
js 0x1400575d0
test byte [0x1400dd8c1], 8
je 0x1400575b6
mov r8, qword [r14 + 8]
lea rdx, [0x1400b5958]
lea rcx, [0x1400da440]
call fcn.14004d654
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
mov rcx, r12
call fcn.140056bbc
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.14001c494
nop
mov dword [rsp + 0x20], esi
mov r9d, dword [rsp + 0x34]
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140058054
test esi, esi
jns 0x140057906
test byte [0x1400dd8c1], 8
je 0x14005764d
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x1400b56a8]
lea rcx, [0x1400da440]
call fcn.140029954
lea rbx, str.Rollback:__ls
test r13b, r13b
je 0x14005771e
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.14001c494
nop
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140057c74
mov r13d, eax
test eax, eax
jns 0x140057717
mov rdx, qword [rdi + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rdx
lea rax, str.Rollback:__ls
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, r15
mov edx, 0x21f
call fcn.14004b164
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.14001c494
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xc8
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400581ac
lea rbx, str.Rollback:__ls
cmp byte [rsp + 0x30], 0
je 0x1400577d8
test byte [0x1400dd8c1], 8
je 0x140057749
mov r8, qword [rdi + 8]
lea rdx, [0x1400b5a08]
lea rcx, [0x1400da440]
call fcn.14004d654
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
mov rcx, r12
call fcn.140056bbc
mov r13d, eax
test eax, eax
jns 0x1400577d8
mov rdx, qword [rdi + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov r9d, eax
mov r8, r15
mov edx, 0x229
call fcn.14004b164
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.14001c494
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xd2
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400581ac
cmp byte [rsp + 0x31], 0
je 0x140057864
call fcn.140057bd8
mov r13d, eax
test eax, eax
jns 0x140057864
mov rdx, qword [r14 + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rdx
lea rax, str.Rollback:__ls
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, r15
mov edx, 0x232
call fcn.14004b164
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.14001c494
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xdc
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400581ac
cmp byte [rsp + 0x32], 0
je 0x140057906
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rdx, rax
mov rcx, r12
call fcn.1400582dc
mov r13d, eax
test eax, eax
jns 0x140057906
mov rdx, qword [r14 + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rdx
lea rax, str.Rollback:__ls
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, r15
mov edx, 0x23b
call fcn.14004b164
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.14001c494
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.14001c494
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xe6
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400581ac
nop
shr esi, 0x1f
xor sil, 1
mov rcx, r14
call fcn.140014c6c
nop
mov rcx, rdi
call fcn.140014c6c
mov al, sil
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14002a8b0
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret