Function at 0x1402a9194
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x108]
sub rsp, 0x208
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.1401f0934
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402a977e
test al, 0x10
jne 0x1402a977e
xor r15d, r15d
cmp qword [rdi + 0x10], r15
jne 0x1402a92b0
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x1402a925f
lea rax, str.maxAllowedVersion_not_specified__choosing_factory_default
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], reloc.WS2_32.dll_WSACleanup
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a3d4e]
call fcn.140001158
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
lea rcx, [rsp + 0x50]
call fcn.14004b500
mov rax, rbx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x208
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1401d8730
test al, al
jne 0x1402a93d3
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x1402a925f
mov dword [rsp + 0x30], 0x80070057
lea rax, [rsp + 0x30]
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], 4
lea rax, str.Failed_to_parse_maxAllowedVersion__choosing_factory_default
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], 0x78
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
lea rdx, [0x14030cae0]
mov r9, rdx
mov rax, r15
or rcx, 0xffffffffffffffff
test r8, r8
je 0x1402a934d
mov r9, r8
mov rax, rcx
inc rax
cmp word [r8 + rax*2], r15w
jne 0x1402a9343
mov qword [rbp + 0xd0], r9
lea eax, [rax*2 + 2]
mov dword [rbp + 0xd8], eax
mov dword [rbp + 0xdc], r15d
cmp qword [rdi + 0x18], 8
jb 0x1402a9372
mov rdi, qword [rdi]
mov rax, r15
test rdi, rdi
je 0x1402a938a
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1402a9380
mov qword [rbp + 0xe0], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0xe8], eax
mov dword [rbp + 0xec], r15d
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a437b]
mov rcx, r10
call fcn.140001158
jmp 0x1402a925f
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r15w
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r15w
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.1401ef89c
lea r8, [rsi + 0x60]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x70]
call fcn.14006b6ac
nop
mov r14d, 1
mov r8d, r14d
lea rdx, [0x1403158a0]
mov rcx, rax
call fcn.14005b1c8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x20], xmm1
mov qword [rax + 0x10], r15
lea edi, [r14 + 6]
mov qword [rax + 0x18], rdi
mov word [rax], r15w
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.14005b1c8
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rdi
mov word [rax], r15w
lea rdx, [rsi + 0x20]
lea r8, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call fcn.1401f0934
nop
lea rcx, [rbp - 0x10]
call fcn.14004b500
nop
lea rcx, [rbp + 0x10]
call fcn.14004b500
nop
lea rcx, [rbp + 0x70]
call fcn.14004b500
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.1402a97a8
test al, al
je 0x1402a95b9
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402a9575
lea rax, str.Choosing_current_update_path
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], 0x3a
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rax, qword [rbp - 0x70]
lea rdx, [0x14030cae0]
mov rcx, r15
test rax, rax
je 0x1402a9531
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1402a9527
mov qword [rbp + 0xc0], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0xc8], eax
mov dword [rbp + 0xcc], r15d
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a42ce]
mov rcx, r10
call fcn.140001158
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
lea rcx, [rbp - 0x70]
call fcn.14004b500
nop
lea rcx, [rsp + 0x70]
call fcn.14004b500
nop
lea rcx, [rbp - 0x30]
call fcn.14004b500
jmp 0x1402a9284
lea r8, [rsi + 0x80]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x90]
call fcn.14006b6ac
nop
mov r8, r14
lea rdx, [0x1403158a0]
mov rcx, rax
call fcn.14005b1c8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rdi
mov word [rax], r15w
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
lea rcx, [rbp + 0x50]
call fcn.14005b1c8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rdi
mov word [rax], r15w
lea rdx, [rsi + 0x40]
lea r8, [rbp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.1401f0934
nop
lea rcx, [rbp + 0x30]
call fcn.14004b500
nop
lea rcx, [rbp + 0x50]
call fcn.14004b500
nop
lea rcx, [rbp + 0x90]
call fcn.14004b500
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x50]
call fcn.1402a97a8
test al, al
je 0x1402a975b
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402a972c
lea rax, str.Choosing_previous_update_path
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], 0x3c
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
lea rdx, [0x14030cae0]
mov rcx, r15
test rax, rax
je 0x1402a96e8
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1402a96de
mov qword [rbp + 0xc0], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0xc8], eax
mov dword [rbp + 0xcc], r15d
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a4347]
mov rcx, r10
call fcn.140001158
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x40]
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
movups xmmword [rbx + 0x10], xmm1
lea rcx, [rbp - 0x50]
call fcn.14004b500
jmp 0x1402a9596
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
jmp 0x1402a9749
mov rcx, qword [rbp + 0x138]
lea rax, str.Tool_was_not_found_at_factory_default_location
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.amcorewcd_sourcecommon_srcupdatablebinaryrunner.cpp
lea edx, [r9 + 0x5b]
call fcn.14007d010
int3