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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, qword [rbp + 0x80]
mov r14, qword [rbp + 0x90]
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], r13
mov edi, 7
mov qword [rbp + 0x30], rdi
mov word [rbp + 0x18], r13w
cmp byte [rbx + 0x260], r13b
je 0x14004ae36
lea rdx, [rbx + 0x268]
lea rcx, [rbp - 0x70]
call fcn.140057b70
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140050290
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.14002a100
lea rcx, [rsp + 0x50]
call fcn.140025f00
nop
lea rcx, [rbp - 0x70]
call fcn.140025f00
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], rdi
cmova rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004ae2a
test al, 0x10
jne 0x14004ae2a
mov al, 1
jmp 0x14004ae2c
xor al, al
test al, al
je 0x14004b358
jmp 0x14004ae88
lea rdx, [rbx + 0x158]
lea rcx, [rsp + 0x50]
call fcn.1400500f0
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.14002a100
lea rcx, [rsp + 0x50]
call fcn.140025f00
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004ae7e
test al, 0x10
jne 0x14004ae7e
mov al, 1
jmp 0x14004ae80
xor al, al
test al, al
je 0x14004b3e0
cmp byte [rbx + 0x260], 0
je 0x14004b234
mov rdi, qword [rbp + 0x88]
mov r9, qword [rdi + 0x10]
mov r8, rdi
mov r10, qword [rdi + 0x18]
cmp r10, 7
jbe 0x14004aeb0
mov r8, qword [rdi]
mov rdx, r9
mov r15d, 3
cmp r9, r15
cmova rdx, r15
lea rsi, [0x140208568]
mov rcx, rsi
movabs r12, 0x7ffffffffffffffe
test rdx, rdx
je 0x14004aef4
sub r8, rsi
nop dword [rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14004aef9
add rcx, 2
sub rdx, 1
jne 0x14004aee0
cmp r9, r15
je 0x14004af52
mov r8, rdi
cmp r10, 7
jbe 0x14004af05
mov r8, qword [rdi]
mov rdx, r9
cmp r9, 7
mov ecx, 7
cmova rdx, rcx
lea rcx, [0x140205bc8]
test rdx, rdx
je 0x14004af48
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14004b070
add rcx, 2
sub rdx, 1
jne 0x14004af30
cmp r9, 7
jne 0x14004b070
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rdx, [rbx + 0x268]
lea rcx, [rbp - 0x10]
call fcn.140025a50
lea rax, str.checkforupdates
mov qword [rbp + 0x10], rax
movups xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140213360]
movdqu xmmword [rbp], xmm1
mov word [rbp - 0x10], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x20], xmm1
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140025740
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.14004f3b0
mov rbx, rax
mov rdx, qword [r14 + 0x10]
mov rcx, r12
sub rcx, rdx
cmp rcx, 0x15
jb 0x14004b427
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x14004affe
mov rax, qword [r14]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], reloc.WS2_32.dll_setsockopt
lea r9, str.check_product_update_
lea rcx, [rsp + 0x50]
call fcn.140015aa0
nop
mov r9, rbx
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x18]
call fcn.14004ec90
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x50]
call fcn.140025f00
nop
lea r9, [0x1400449a0]
mov edx, 0x40
lea r8d, [rdx - 0x3f]
lea rcx, [rbp - 0x50]
call fcn.140144600
nop
lea rcx, [rbp - 0x10]
call fcn.140025f00
test ebx, ebx
jne 0x14004b42d
mov r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14004b081
mov rdx, qword [rdi]
mov rcx, r8
cmp r8, 3
cmova rcx, r15
test rcx, rcx
je 0x14004b0a7
sub rdx, rsi
movzx eax, word [rdx + rsi]
cmp ax, word [rsi]
jne 0x14004b0ad
add rsi, 2
sub rcx, 1
jne 0x14004b094
cmp r8, 3
je 0x14004b0f2
cmp qword [rdi + 0x18], 7
jbe 0x14004b0b7
mov rdi, qword [rdi]
mov rdx, r8
cmp r8, 3
cmova rdx, r15
lea rcx, [0x140205760]
test rdx, rdx
je 0x14004b0e8
sub rdi, rcx
movzx eax, word [rcx + rdi]
cmp ax, word [rcx]
jne 0x14004b204
add rcx, 2
sub rdx, 1
jne 0x14004b0d1
cmp r8, 3
jne 0x14004b204
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
call fcn.1400589a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm1
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14004b120
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140025740
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x20], xmm1
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.checkforupdates
lea rcx, [rbp - 0x30]
call fcn.140025740
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.14004f3b0
mov rbx, rax
mov rcx, qword [r14 + 0x10]
sub r12, rcx
cmp r12, 0x11
jb 0x14004b468
cmp qword [r14 + 0x18], 7
jbe 0x14004b19c
mov r14, qword [r14]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], reloc.WS2_32.dll_recvfrom
lea r9, str.check_update_vps_
lea rcx, [rsp + 0x50]
call fcn.140015aa0
nop
mov r9, rbx
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x18]
call fcn.14004ec90
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x50]
call fcn.140025f00
nop
lea r9, [0x1400449a0]
mov edx, 0x40
lea r8d, [rdx - 0x3f]
lea rcx, [rbp - 0x50]
call fcn.140144600
test ebx, ebx
jne 0x14004b46e
lea rcx, [rbp + 0x18]
call fcn.140025f00
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rbp + 0x28]
movabs r12, 0x7ffffffffffffffe
cmp rsi, r12
je 0x14004b352
lea r15, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova r15, qword [rbp + 0x18]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea r14, [rsi + 1]
mov rbx, rdi
lea rdi, [rbp - 0x70]
cmp r14, rbx
jbe 0x14004b2a4
mov rbx, r14
or rbx, 7
cmp rbx, r12
jbe 0x14004b32a
mov rbx, r12
movabs rcx, 0x7fffffffffffffff
add rcx, rcx
call fcn.140025bf0
mov rdi, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], rbx
mov word [rdi], 0x22
lea rcx, [rdi + 2]
lea r8, [rsi + rsi]
mov rdx, r15
call fcn.14019ace0
mov word [rdi + r14*2], r13w
mov r8d, 0x21
lea rdx, str.___instop:check_for_updates__wait
lea rcx, [rbp - 0x70]
call fcn.140023930
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r13
mov ecx, 7
mov qword [rax + 0x18], rcx
mov word [rax], r13w
lea rcx, [rsp + 0x70]
call fcn.1400677d0
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.140025f00
nop
lea rcx, [rbp - 0x70]
call fcn.140025f00
test ebx, ebx
jne 0x14004b39f
jmp 0x14004b204
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14004b3da
jmp 0x14004b295
call fcn.140025b80
int3
lea rax, str.Unable_to_find_file__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x19
lea r8, [rbp + 0x18]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140029fc0
nop
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.1400537b0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
nop
lea rax, str.Unable_to_check_for_updates_with_exit_code_:010x_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], gethostname
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140050ce0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3
call fcn.140025d90
int3
lea rax, str.Unable_to_find_file__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x19
lea r8, [rbp + 0x18]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140029fc0
nop
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.1400537b0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
nop
call fcn.140025b80
nop
lea rax, str.Unable_to_check_for_updates_with_exit_code_:010x_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], gethostname
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140050ce0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
nop
call fcn.140025b80
nop
lea rax, str.Unable_to_check_for_updates_with_exit_code_:010x_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], gethostname
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140050ce0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3