Function at 0x140058db0
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 + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, r8
mov r14, rdx
mov r12, rcx
mov qword [rbp + 0xa0], rdx
mov qword [rbp + 0xa8], r8
xor r13d, r13d
mov dword [rsp + 0x48], r13d
mov rdx, r8
mov rcx, r14
call fcn.140058540
test eax, eax
je 0x140058e30
mov rcx, r14
call fcn.1400282a4
nop
mov rcx, rdi
call fcn.1400282a4
mov al, 1
jmp 0x1400595b8
test dword [0x1400ca100], 0x800
je 0x140058e50
mov r9, qword [rdi + 8]
mov r8, qword [r14 + 8]
lea rdx, [0x1400a0d98]
call fcn.14005a094
mov esi, r13d
mov dword [rsp + 0x34], 0xa
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14001f244
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.1400585ec
nop
mov dword [rsp + 0x48], 1
mov rcx, qword [rax + 8]
call fcn.14001f888
test al, al
je 0x140058eb6
mov rdx, rdi
lea rcx, [rbp]
call fcn.14001f244
mov rdx, rax
lea rcx, [rbp + 0x150]
call fcn.1400585ec
mov rdx, rax
call fcn.140059684
test al, al
mov bl, 1
jne 0x140058eb9
mov bl, r13b
lea rcx, [rbp + 0xb0]
call fcn.1400282a4
test bl, bl
je 0x140058ef2
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
lea rcx, [rbp + 0x150]
call fcn.1400585ec
mov rdx, rax
mov rcx, r12
call fcn.1400589f8
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
lea rcx, [rbp + 0x150]
call fcn.14001e68c
mov rcx, qword [rax + 8]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rbp + 0x150]
call fcn.1400282a4
test ebx, ebx
je 0x140058f78
mov esi, 0x800700b7
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
lea rax, str.NewDir:__ls
mov r9d, esi
mov edx, 0x1c8
lea r15, str.onecoreuap_base_appmodel_search_searchcommonpkmutillindexmove.cxx
mov r8, r15
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x238]
call fcn.140050428
mov byte [rsp + 0x30], r13b
mov byte [rsp + 0x31], 0
mov byte [rsp + 0x32], 0
jmp 0x140059283
mov dword [rsp + 0x34], SafeArrayPutElement
mov r9d, dword [r14 + 0x14]
cmp dword [rdi + 0x14], r9d
jb 0x140058fed
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14001f408
mov dword [rsp + 0x38], r13d
mov eax, dword [r14 + 0x14]
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140004ca8
test eax, eax
je 0x140058fed
mov rdx, qword [rdi + 8]
mov eax, dword [r14 + 0x14]
cmp word [rdx + rax*2], 0x5c
jne 0x140058fed
mov r9d, 0x8007007b
mov esi, r9d
mov qword [rsp + 0x28], rdx
lea rax, str.NewDirChild:__ls
mov edx, 0x1d3
jmp 0x140058f49
mov r9d, dword [rdi + 0x14]
lea r15, str.onecoreuap_base_appmodel_search_searchcommonpkmutillindexmove.cxx
cmp dword [r14 + 0x14], r9d
jb 0x140059072
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.14001f408
mov dword [rsp + 0x38], r13d
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140004ca8
test eax, eax
je 0x140059072
mov ecx, dword [rdi + 0x14]
mov rax, qword [r14 + 8]
cmp word [rax + rcx*2], 0x5c
jne 0x140059072
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, 0x1d8
call fcn.140050428
mov byte [rsp + 0x30], r13b
test esi, esi
js 0x1400591a3
mov dword [rsp + 0x34], 0x1e
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.14001eb80
test dword [0x1400ca100], 0x800
je 0x1400590c4
mov r9, qword [rdi + 8]
mov r8, qword [r14 + 8]
lea rdx, [0x1400a1ff8]
call fcn.14005a094
lea rax, [rbp + 0x150]
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
lea rcx, [rbp + 0x150]
call fcn.14001e68c
mov rbx, rax
mov rdx, r14
lea rcx, [rbp]
call fcn.14001f244
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14001e68c
nop
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400586d0
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x140059136
mov r9d, eax
mov r8, r15
mov edx, 0x1e9
call fcn.14002c058
mov byte [rsp + 0x30], 1
test esi, esi
js 0x1400591a3
mov dword [rsp + 0x34], 0x28
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x150]
call fcn.14001f244
nop
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400598dc
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x1400591a0
mov r9d, eax
mov r8, r15
mov edx, 0x1f2
call fcn.14002c058
mov r13b, 1
mov byte [rsp + 0x31], 0
test esi, esi
js 0x1400591ef
mov dword [rsp + 0x34], 0x32
mov rdx, r14
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
call fcn.140059780
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x1400591ea
mov r9d, eax
mov r8, r15
mov edx, 0x1fb
call fcn.14002c058
jmp 0x1400591ef
mov byte [rsp + 0x31], 1
mov byte [rsp + 0x32], 0
test esi, esi
js 0x140059283
mov dword [rsp + 0x34], 0x3c
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
mov rcx, r12
call fcn.140059f14
mov esi, eax
mov rcx, qword [rbp + 0x238]
test eax, eax
jns 0x14005923d
mov r9d, eax
mov r8, r15
mov edx, 0x208
call fcn.14002c058
jmp 0x140059242
mov byte [rsp + 0x32], 1
test esi, esi
js 0x140059283
test dword [0x1400ca100], 0x800
je 0x140059269
mov r8, qword [r14 + 8]
lea rdx, [0x1400a2198]
lea rcx, [0x1400c8290]
call fcn.14005325c
mov rdx, r14
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
mov rcx, r12
call fcn.1400588f8
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x150]
call fcn.14001f244
nop
mov dword [rsp + 0x20], esi
mov r9d, dword [rsp + 0x34]
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140059c9c
test esi, esi
jns 0x14005959d
test dword [0x1400ca100], 0x800
je 0x1400592ef
lea rdx, [0x1400a1d18]
lea rcx, [0x1400c8290]
call fcn.1400218f4
lea rbx, str.Rollback:__ls
test r13b, r13b
je 0x1400593bc
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
mov rdx, r14
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp + 0x150]
call fcn.14001f244
nop
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400598dc
mov r13d, eax
test eax, eax
jns 0x1400593b5
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, 0x221
call fcn.140050428
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x150]
call fcn.14001f244
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xc8
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140059dec
lea rbx, str.Rollback:__ls
cmp byte [rsp + 0x30], 0
je 0x140059477
test dword [0x1400ca100], 0x800
je 0x1400593ea
mov r8, qword [rdi + 8]
lea rdx, [0x1400a0d78]
lea rcx, [0x1400c8290]
call fcn.14005325c
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
mov rcx, r12
call fcn.1400588f8
mov r13d, eax
test eax, eax
jns 0x140059477
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, 0x22b
call fcn.140050428
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x150]
call fcn.14001f244
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xd2
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140059dec
cmp byte [rsp + 0x31], 0
je 0x1400594fd
call fcn.140059850
mov r13d, eax
test eax, eax
jns 0x1400594fd
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, 0x234
call fcn.140050428
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x150]
call fcn.14001f244
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xdc
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140059dec
cmp byte [rsp + 0x32], 0
je 0x14005959d
mov rdx, r14
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rdx, rax
mov rcx, r12
call fcn.140059f14
mov r13d, eax
test eax, eax
jns 0x14005959d
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, 0x23d
call fcn.140050428
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14001f244
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x150]
call fcn.14001f244
nop
mov dword [rsp + 0x20], r13d
mov r9d, 0xe6
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140059dec
nop
shr esi, 0x1f
xor sil, 1
mov rcx, r14
call fcn.1400282a4
nop
mov rcx, rdi
call fcn.1400282a4
mov al, sil
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret