Function at 0x140025500
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, r8
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140025550
lea rcx, [rsp + 0x70]
call fcn.14000a220
nop
mov qword [rbp - 0x10], r12
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140025580
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.14000a220
nop
mov rdx, qword [r15 + 0x68]
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov r8, rsi
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400255b4
lea rcx, [rbp - 0x30]
call fcn.14000a220
nop
lea rcx, [rsp + 0x30]
call fcn.140027d10
nop
mov rdx, qword [rax]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
mov r8, rsi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400255f0
lea rcx, [rbp - 0x50]
call fcn.14000a220
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025623
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rdi, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdi, qword [rsp + 0x70]
mov r14, qword [rbp - 0x80]
cmp r14, 8
jae 0x14002565f
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], 7
jmp 0x1400256a2
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x50]
call fcn.14000a030
mov qword [rsp + 0x50], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.1400d9910
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r14
mov r14d, 1
mov r8d, r14d
lea rdx, [0x140245a90]
lea rcx, [rsp + 0x50]
call fcn.14000a0a0
lea r8d, [r14 + 0x13]
lea rdx, str.upgrade_manifest.xml
lea rcx, [rsp + 0x50]
call fcn.14000a0a0
lea edx, [r14 + 0x20]
mov rcx, r15
call fcn.14001cbc0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002572b
lea r8, [0x140241920]
lea rdx, [0x140241920]
lea rcx, str._patchProc__update_manifest_not_exist
call fcn.14002c680
lea edx, [r14 + 0x15]
mov rcx, r15
call fcn.14001cbc0
mov r14d, r12d
jmp 0x140025932
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.14002c000
nop
mov ecx, 0xb0
call fcn.1400d7034
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140025780
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], r14d
mov dword [rax + 0xc], r14d
lea rax, vtable.std::_Ref_count_obj2_class_TiXmlDocument_.0
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
call fcn.140086d60
jmp 0x140025783
mov rbx, r12
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
test rdi, rdi
je 0x14002588e
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
xor r8d, r8d
mov rcx, rdi
call fcn.140088310
test al, al
je 0x14002588e
lea rdx, str.files
mov rcx, rdi
call fcn.140088060
mov rdi, rax
test rax, rax
jne 0x1400257e1
lea edi, [rax + 0x18]
lea rcx, str._patchProc__manifest_content_error.
jmp 0x14002589a
lea r8, [0x140241920]
lea rdx, [0x140241920]
lea rcx, str._patchProc__begin_patch_files.
call fcn.14002c680
lea rdx, [0x1402469c8]
mov rcx, rdi
call fcn.140088060
mov rdi, rax
test rax, rax
je 0x140025849
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140019870
test eax, eax
je 0x140025872
mov rcx, rdi
call fcn.1400884c0
mov rdi, rax
test rax, rax
jne 0x140025812
lea r8, [0x140241920]
lea rdx, [0x140241920]
lea rcx, str._patchProc__end_patch_files.
call fcn.14002c680
mov edx, 0x15
mov rcx, r15
call fcn.14001cbc0
jmp 0x1400258ba
lea r8, [0x140241920]
lea rdx, [0x140241920]
lea rcx, str._patchProc__MergeFile_error.
call fcn.14002c680
jmp 0x1400258b7
mov edi, 0x17
lea rcx, str._patchProc__load_patch_manifest_fail
lea r8, [0x140241920]
lea rdx, [0x140241920]
call fcn.14002c680
mov edx, edi
mov rcx, r15
call fcn.14001cbc0
mov r14d, r12d
test rbx, rbx
je 0x1400258e7
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400258e7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400258e7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140025922
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002591d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025aaf
call fcn.1400d7558
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140025974
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002596f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025ab5
call fcn.1400d7558
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400259c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400259c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025abb
call fcn.1400d7558
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140025a0a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025a04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025ac1
call fcn.1400d7558
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x140025a4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025a45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025ac7
call fcn.1400d7558
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140025a88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025a83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025aa9
call fcn.1400d7558
mov eax, r14d
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400d7670
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400de97c
nop
call fcn.1400de97c
nop
call fcn.1400de97c
nop
call fcn.1400de97c
nop
call fcn.1400de97c
nop
call fcn.1400de97c
int3