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

Disassembly:
mov qword [rsp + 0x18], rbx
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 - 0x80]
sub rsp, 0x180
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, qword [rbp + 0xc0]
mov rbx, qword [rbp + 0xc8]
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
cmp byte [r15 + 0x260], r13b
je 0x140049e66
lea rdx, [r15 + 0x268]
lea rcx, [rsp + 0x68]
call fcn.140057b70
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140050290
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14002a100
lea rcx, [rbp - 0x10]
call fcn.140025f00
nop
lea rcx, [rsp + 0x68]
call fcn.140025f00
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140049e5a
test al, 0x10
jne 0x140049e5a
mov al, 1
jmp 0x140049e5c
xor al, al
test al, al
je 0x14004a515
jmp 0x140049eb6
lea rdx, [r15 + 0x158]
lea rcx, [rbp - 0x10]
call fcn.1400500f0
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14002a100
lea rcx, [rbp - 0x10]
call fcn.140025f00
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140049eac
test al, 0x10
jne 0x140049eac
mov al, 1
jmp 0x140049eae
xor al, al
test al, al
je 0x14004a599
cmp byte [r15 + 0x260], 0
je 0x140049f83
lea rdx, [r15 + 0x268]
lea rcx, [rbp - 0x78]
call fcn.140025a50
lea rdx, str.repair
mov qword [rbp - 0x58], rdx
movups xmm1, xmmword [rbp - 0x78]
movaps xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rbp - 0x68]
movaps xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x140213360]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r13w
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x40], xmm1
mov r8d, 6
lea rcx, [rbp + 0x30]
call fcn.140025740
nop
lea rax, [rbp + 0x10]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x50]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.14004f3b0
mov r9, rax
mov r8, rbx
lea rdx, [rbp - 0x30]
call fcn.14004ec90
mov ebx, eax
mov dword [rsp + 0x30], eax
lea r9, [0x1400449a0]
mov edx, 0x40
lea r8d, [rdx - 0x3f]
lea rcx, [rbp + 0x10]
call fcn.140144600
nop
lea rcx, [rbp - 0x78]
call fcn.140025f00
test ebx, ebx
jne 0x14004a557
jmp 0x14004a492
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14009d1b0
movzx edx, word [rbp - 0x4a]
mov word [rsp + 0x64], dx
movzx r8d, word [rbp - 0x4c]
mov word [rsp + 0x62], r8w
movzx r9d, word [rbp - 0x4e]
mov word [rsp + 0x60], r9w
mov rdi, qword [rbp - 0x50]
test di, di
jne 0x140049fcd
test r9w, r9w
jne 0x140049fcd
test r8w, r8w
jne 0x140049fcd
test dx, dx
jne 0x140049fcd
xor al, al
jmp 0x140049fcf
mov al, 1
test al, al
je 0x14004a5db
movzx ecx, di
shl ecx, 0x10
or ecx, r9d
movabs rax, 0x7fffffffffffffff
movabs r9, 0x7ffffffffffffffe
mov r10d, 0xa
lea r11d, [r10 + 0x18]
cmp ecx, 0xa0002
jb 0x14004a30a
ja 0x14004a020
mov ecx, r8d
shl ecx, 0x10
or ecx, edx
cmp ecx, 0x8a10000
jb 0x14004a30a
mov r14, qword [rbp - 0x20]
cmp r14, r9
je 0x14004a604
lea r13, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r13, qword [rbp - 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r12, [r14 + 1]
mov ebx, 7
lea rsi, [rsp + 0x40]
cmp r12, rbx
jbe 0x14004a08b
mov rbx, r12
or rbx, 7
cmp rbx, r9
jbe 0x14004a20c
mov rbx, r9
mov rcx, rax
add rcx, rcx
call fcn.140025bf0
mov rsi, rax
mov qword [rsp + 0x40], rax
mov r11d, 0x22
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rbx
mov word [rsi], r11w
lea rcx, [rsi + 2]
lea r8, [r14 + r14]
mov rdx, r13
call fcn.14019ace0
xor r13d, r13d
mov word [rsi + r12*2], r13w
lea r14d, [r13 + 8]
lea r8d, [r13 + 0x1c]
lea rdx, str.___instop:repair_setup__wait
lea rcx, [rsp + 0x40]
call fcn.140023930
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
or r14d, 0x10
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x68]
call fcn.1400677d0
mov ebx, eax
mov dword [rbp - 0x50], eax
lea rcx, [rsp + 0x68]
call fcn.140025f00
nop
lea rcx, [rsp + 0x40]
call fcn.140025f00
test ebx, ebx
jne 0x14004a60a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x10]
call fcn.140023ad0
nop
lea rdx, [r15 + 0x158]
lea r8, str.Setup_setup.ini
lea rcx, [rsp + 0x68]
call fcn.14000bd70
nop
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400983a0
movzx ebx, al
lea rcx, [rsp + 0x68]
call fcn.140025f00
test bl, bl
je 0x14004a644
lea rax, str.Common
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 6
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140096740
lea rcx, str.NewDirectoryName
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], reloc.WS2_32.dll_recv
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rbp - 0x50], r13
lea rsi, [rax + 0x10]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.1400297b0
mov ecx, 3
mov rbx, qword [rbp - 0x50]
cmp rbx, qword [rsi]
cmovne ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, qword [rsi]
je 0x14004a225
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140025a50
nop
or r14d, 0x40
jmp 0x14004a257
cmp rbx, r10
cmovb rbx, r10
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x14004a58d
jmp 0x14004a075
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 3
lea rdx, [0x140208330]
lea rcx, [rsp + 0x40]
call fcn.140025740
lea rax, [rsp + 0x40]
bts r14d, 7
mov dword [rsp + 0x30], r14d
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140025a50
bts r14d, 8
test r14b, r14b
jns 0x14004a282
btr r14d, 7
lea rcx, [rsp + 0x40]
call fcn.140025f00
nop
test r14b, 0x40
je 0x14004a293
lea rcx, [rsp + 0x68]
call fcn.140025f00
nop
lea rdx, [r15 + 0x158]
lea r9, [rbp - 0x10]
lea rcx, [rbp + 0x50]
call fcn.140050ea0
nop
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004a2c9
test al, 0x10
jne 0x14004a2c9
mov al, 1
jmp 0x14004a2cb
xor al, al
test al, al
je 0x14004a66f
lea rcx, [rbp + 0x50]
call fcn.140025f00
nop
lea rcx, [rbp - 0x10]
call fcn.140025f00
nop
lea rcx, [rbp + 0x10]
call fcn.14000b040
movabs rax, 0x7fffffffffffffff
movabs r9, 0x7ffffffffffffffe
mov r10d, 0xa
mov r14, qword [rbp - 0x20]
cmp r14, r9
je 0x14004a6ae
lea r13, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r13, qword [rbp - 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea r12, [r14 + 1]
mov ebx, 7
lea rsi, [rbp - 0x50]
cmp r12, rbx
jbe 0x14004a36b
mov rbx, r12
or rbx, 7
cmp rbx, r9
jbe 0x14004a4c2
mov rbx, r9
mov rcx, rax
add rcx, rcx
call fcn.140025bf0
mov rsi, rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], rbx
mov word [rsi], 0x22
lea rcx, [rsi + 2]
lea r8, [r14 + r14]
mov rdx, r13
call fcn.14019ace0
xor r14d, r14d
mov word [rsi + r12*2], r14w
lea r8d, [r14 + 0x16]
lea rdx, str.___instop:repair__wait
lea rcx, [rbp - 0x50]
call fcn.140023930
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rsp + 0x68]
call fcn.1400677d0
mov ebx, eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
call fcn.140025f00
nop
lea rcx, [rbp - 0x50]
call fcn.140025f00
test ebx, ebx
jne 0x14004a6b4
movzx ecx, di
shl ecx, 0x10
movzx eax, word [rsp + 0x60]
or ecx, eax
cmp ecx, 0xa0002
jb 0x14004a423
ja 0x14004a492
movzx ecx, word [rsp + 0x62]
shl ecx, 0x10
movzx eax, word [rsp + 0x64]
or ecx, eax
cmp ecx, 0x8a10000
jae 0x14004a492
lea r8, [r15 + 0x158]
lea rcx, [rbp - 0x78]
call fcn.140050d90
nop
mov r8d, 0x2f
lea rdx, str.SetupNewInstup.exe___instop:copy_setup__wait
mov rcx, rax
call fcn.140023930
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rsp + 0x68]
call fcn.1400677d0
mov ebx, eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
call fcn.140025f00
nop
lea rcx, [rbp - 0x78]
call fcn.140025f00
test ebx, ebx
jne 0x14004a4dc
lea rcx, [rbp - 0x30]
call fcn.140025f00
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp rbx, 0xa
cmovb rbx, r10
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x14004a593
jmp 0x14004a35c
lea rax, str.Unable_to_copy_installer_with_exit_code_:010x_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], gethostname
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.140050ce0
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x78]
call fcn.14015a550
int3
lea rax, str.Unable_to_find_file__
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0x19
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.140029fc0
nop
mov r8, rax
lea rcx, [rbp - 0x10]
call fcn.1400537b0
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x10]
call fcn.14015a550
nop
lea rax, str.Unable_to_repair_installation_with_exit_code_:010x_
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], gethostname
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x10]
call fcn.140050ce0
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x10]
call fcn.14015a550
int3
call fcn.140025d90
int3
call fcn.140025d90
int3
lea rax, str.Unable_to_find_file__
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0x19
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.140029fc0
nop
mov r8, rax
lea rcx, [rbp - 0x10]
call fcn.1400537b0
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x10]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_retrieve_a_version_of_the_installer_
lea rcx, [rbp - 0x10]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x10]
call fcn.14015a550
int3
call fcn.140025b80
int3
lea rax, str.Unable_to_repair_installer_with_exit_code_:010x_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], gethostname
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140050ce0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x68]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_open_setup.ini_
lea rcx, [rsp + 0x68]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x68]
call fcn.14015a550
nop
lea rax, str.Unable_to_find_file__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x19
lea r9, [rbp + 0x50]
lea r8, [rsp + 0x40]
mov edx, 2
lea rcx, [rsp + 0x68]
call fcn.14002a040
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x68]
call fcn.14015a550
nop
call fcn.140025b80
int3
lea rax, str.Unable_to_repair_installation_with_exit_code_:010x_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], gethostname
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140050ce0
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x10]
call fcn.14015a550
int3