Function at 0x1402d9f04
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 [0x14049e510]
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.1402059d8
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 0x1402da4ee
test al, 0x10
jne 0x1402da4ee
xor r15d, r15d
cmp qword [rdi + 0x10], r15
jne 0x1402da020
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x1402d9fcf
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, [0x1403dfd91]
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 [0x14038ac40]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
lea rcx, [rsp + 0x50]
call fcn.14004e0f0
mov rax, rbx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1402dfdb0
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.1401e95f0
test al, al
jne 0x1402da143
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x1402d9fcf
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, [0x140344690]
mov r9, rdx
mov rax, r15
or rcx, 0xffffffffffffffff
test r8, r8
je 0x1402da0bd
mov r9, r8
mov rax, rcx
inc rax
cmp word [r8 + rax*2], r15w
jne 0x1402da0b3
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 0x1402da0e2
mov rdi, qword [rdi]
mov rax, r15
test rdi, rdi
je 0x1402da0fa
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1402da0f0
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, [0x1403e704d]
mov rcx, r10
call fcn.140001158
jmp 0x1402d9fcf
movdqa xmm0, xmmword [0x14038ac40]
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.140204840
lea r8, [rsi + 0x60]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x70]
call fcn.14006e9e4
nop
mov r14d, 1
mov r8d, r14d
lea rdx, [0x14034d688]
mov rcx, rax
call fcn.14005e1e8
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.14005e1e8
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.1402059d8
nop
lea rcx, [rbp - 0x10]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x10]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x70]
call fcn.14004e0f0
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.1402da518
test al, al
je 0x1402da329
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402da2e5
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, [0x140344690]
mov rcx, r15
test rax, rax
je 0x1402da2a1
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1402da297
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, [0x1403e6fb8]
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 [0x14038ac40]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
lea rcx, [rbp - 0x70]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x70]
call fcn.14004e0f0
nop
lea rcx, [rbp - 0x30]
call fcn.14004e0f0
jmp 0x1402d9ff4
lea r8, [rsi + 0x80]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x90]
call fcn.14006e9e4
nop
mov r8, r14
lea rdx, [0x14034d688]
mov rcx, rax
call fcn.14005e1e8
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.14005e1e8
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.1402059d8
nop
lea rcx, [rbp + 0x30]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x50]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x90]
call fcn.14004e0f0
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x50]
call fcn.1402da518
test al, al
je 0x1402da4cb
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402da49c
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, [0x140344690]
mov rcx, r15
test rax, rax
je 0x1402da458
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1402da44e
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, [0x1403e6fef]
mov rcx, r10
call fcn.140001158
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x40]
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
movups xmmword [rbx + 0x10], xmm1
lea rcx, [rbp - 0x50]
call fcn.14004e0f0
jmp 0x1402da306
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
jmp 0x1402da4b9
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.140080830
int3