Function at 0x1400640a8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rbp + 0x90], rdx
mov qword [rbp + 0x98], r8
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov rdx, qword [r8 + 8]
mov rcx, qword [r14 + 8]
call fcn.140054994
test eax, eax
jne 0x140064116
lea r12d, [r13 + 1]
jmp 0x1400648d6
test byte [0x1400ddd81], 8
je 0x140064133
mov r9, qword [rdi + 8]
mov r8, qword [r14 + 8]
lea rdx, [0x1400bbc08]
call fcn.140065844
mov dword [rsp + 0x34], 0xa
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400498f0
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14002e6f8
nop
mov r12d, 1
mov dword [rsp + 0x40], r12d
mov rcx, qword [rax + 8]
call fcn.140063cd0
test al, al
je 0x14006419a
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.1400498f0
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14002e6f8
mov rdx, rax
call fcn.140064a8c
test al, al
mov bl, r12b
jne 0x14006419d
mov bl, r13b
lea rcx, [rbp + 0xa0]
call fcn.14000e3c0
test bl, bl
je 0x1400641d6
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14002e6f8
mov rdx, rax
mov rcx, rsi
call fcn.14006368c
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.140062fd4
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.14000e3c0
test ebx, ebx
je 0x14006425d
mov esi, 0x800700b7
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
lea rax, str.NewDir:__ls
mov r9d, esi
mov edx, 0x1ce
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x20], rax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
call fcn.140050ed8
mov r15b, r13b
mov byte [rsp + 0x30], r13b
mov byte [rsp + 0x31], r13b
jmp 0x140064584
mov dword [rsp + 0x34], SafeArrayPutElement
mov r9d, dword [r14 + 0x14]
cmp dword [rdi + 0x14], r9d
jb 0x1400642da
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400114d0
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 + 0x40]
call fcn.140011d10
test eax, eax
je 0x1400642da
mov rdx, qword [rdi + 8]
mov eax, dword [r14 + 0x14]
cmp word [rdx + rax*2], 0x5c
jne 0x1400642da
mov r9d, 0x8007007b
mov esi, r9d
mov qword [rsp + 0x28], rdx
lea rax, str.NewDirChild:__ls
mov edx, 0x1da
jmp 0x140064233
mov r9d, dword [rdi + 0x14]
cmp dword [r14 + 0x14], r9d
jb 0x140064351
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400114d0
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 + 0x40]
call fcn.140011d10
test eax, eax
je 0x140064351
mov ecx, dword [rdi + 0x14]
mov rax, qword [r14 + 8]
cmp word [rax + rcx*2], 0x5c
jne 0x140064351
mov r9d, 0x8007007b
mov esi, r9d
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
lea rax, str.NewDirParent:__ls
mov edx, 0x1e1
jmp 0x140064233
mov dword [rsp + 0x34], 0x1e
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.14006330c
test byte [0x1400ddd81], 8
je 0x140064393
mov r9, qword [rdi + 8]
mov r8, qword [r14 + 8]
lea rdx, [0x1400bbbf8]
call fcn.140065844
lea rax, [rbp + 0x140]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.140062fd4
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.1400498f0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140062fd4
nop
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.1400630f8
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x14006440b
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x1f1
call fcn.14002061c
mov r15b, r12b
test esi, esi
js 0x140064483
mov dword [rsp + 0x34], 0x28
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400498f0
nop
mov r8, rbx
mov rdx, rax
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140064cf4
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x14006447e
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x1fa
call fcn.14002061c
mov r13b, r12b
jmp 0x140064488
mov rbx, qword [rsp + 0x38]
mov byte [rsp + 0x30], 0
test esi, esi
js 0x14006457a
mov dword [rsp + 0x34], 0x32
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
call fcn.140064b84
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x1400644da
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x203
call fcn.14002061c
jmp 0x14006457f
mov byte [rsp + 0x30], r12b
mov byte [rsp + 0x31], 0
mov dword [rsp + 0x34], 0x3c
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
mov rcx, rbx
call fcn.140065344
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x140064529
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x210
call fcn.14002061c
jmp 0x140064584
mov byte [rsp + 0x31], r12b
mov al, byte [rsp + 0x30]
mov byte [rsp + 0x30], al
test byte [0x1400ddd81], 8
je 0x140064556
mov r8, qword [r14 + 8]
lea rdx, [0x1400bbbe8]
lea rcx, [0x1400db9b0]
call fcn.14002e352
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
mov rcx, rbx
call fcn.140063584
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x34], eax
jmp 0x140064584
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x31], 0
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400498f0
nop
mov dword [rsp + 0x20], esi
mov r9d, dword [rsp + 0x34]
mov r8, rbx
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call fcn.1400650d4
test esi, esi
jns 0x1400648d0
test byte [0x1400ddd81], 8
je 0x140064600
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea rdx, [0x1400bbc28]
lea rcx, [0x1400db9b0]
call fcn.14002e1f8
lea rbx, str.Rollback:__ls
test r13b, r13b
je 0x140064915
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.1400498f0
nop
mov r8, rbx
mov rdx, rax
mov r13, qword [rsp + 0x38]
mov rcx, r13
call fcn.140064cf4
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1400646d7
mov rdx, qword [rdi + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rdx
lea rdx, str.Rollback:__ls
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x229
call fcn.140050ed8
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400498f0
nop
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], ecx
mov r9d, reloc.OLEAUT32.dll_SetErrorInfo
mov r8, rbx
mov rdx, rax
mov rcx, r13
call fcn.140065220
lea rbx, str.Rollback:__ls
test r15b, r15b
je 0x14006479a
test byte [0x1400ddd81], 8
je 0x140064707
mov r8, qword [rdi + 8]
lea rdx, [0x1400bbc18]
lea rcx, [0x1400db9b0]
call fcn.14002e352
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
mov rcx, r13
call fcn.140063584
mov r15d, eax
test eax, eax
jns 0x14006479a
mov rdx, qword [rdi + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x233
call fcn.140050ed8
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400498f0
nop
mov dword [rsp + 0x20], r15d
mov r9d, 0xd2
mov r8, rbx
mov rdx, rax
mov rcx, r13
call fcn.140065220
cmp byte [rsp + 0x30], 0
je 0x14006482a
call fcn.140064c58
mov r15d, eax
test eax, eax
jns 0x14006482a
mov rdx, qword [r14 + 8]
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x28], rdx
lea rdx, str.Rollback:__ls
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x23c
call fcn.140050ed8
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400498f0
nop
mov dword [rsp + 0x20], r15d
mov r9d, 0xdc
mov r8, rbx
mov rdx, rax
mov rcx, r13
call fcn.140065220
cmp byte [rsp + 0x31], 0
je 0x1400648d0
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rdx, rax
mov rcx, r13
call fcn.140065344
mov r15d, eax
test eax, eax
jns 0x1400648d0
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, r15d
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x245
call fcn.140050ed8
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x1e0], rax
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.1400498f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400498f0
nop
mov dword [rsp + 0x20], r15d
mov r9d, 0xe6
mov r8, rbx
mov rdx, rax
mov rcx, r13
call fcn.140065220
nop
shr esi, 0x1f
xor r12b, sil
mov rcx, r14
call fcn.14000e3c0
nop
mov rcx, rdi
call fcn.14000e3c0
mov al, r12b
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13, qword [rsp + 0x38]
jmp 0x1400646de