Function at 0x140047b20
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 [0x140212c80]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, qword [rbp + 0xc0]
mov rbx, qword [rbp + 0xc8]
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
lea rdx, [rbp - 0x30]
mov rcx, r13
call fcn.140045100
cmp byte [r13 + 0x278], r12b
je 0x140047c5a
lea rdx, [r13 + 0x280]
lea rcx, [rbp - 0x78]
call fcn.140025a20
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], xmm0
movdqa xmm1, xmmword [0x1401e8230]
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], r12w
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x20], xmm1
lea r8d, [r12 + 6]
lea rcx, [rbp + 0x10]
call fcn.1400258d0
nop
lea rax, [rbp - 0x10]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.14004c490
mov r9, rax
mov r8, rbx
lea rdx, [rbp - 0x30]
call fcn.14004be50
mov ebx, eax
mov dword [rsp + 0x30], eax
lea r9, [0x140023fd0]
lea edx, [r12 + 0x40]
lea r8d, [r12 + 1]
lea rcx, [rbp - 0x10]
call fcn.1401338d8
nop
lea rcx, [rbp - 0x78]
call fcn.140025e80
test ebx, ebx
jne 0x1400481cf
jmp 0x140048150
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14008cac0
movzx r8d, word [rbp - 0x4a]
mov word [rsp + 0x62], r8w
movzx r9d, word [rbp - 0x4c]
mov word [rsp + 0x60], r9w
movzx edx, word [rbp - 0x4e]
mov rax, qword [rbp - 0x50]
test ax, ax
jne 0x140047c9f
test dx, dx
jne 0x140047c9f
test r9w, r9w
jne 0x140047c9f
test r8w, r8w
jne 0x140047c9f
xor cl, cl
jmp 0x140047ca1
mov cl, 1
test cl, cl
je 0x140048211
movzx r14d, ax
shl r14d, 0x10
or r14d, edx
movabs rdx, 0x7ffffffffffffffe
movabs rax, 0x7fffffffffffffff
mov ecx, 0xa
lea r10d, [rcx + 0x18]
cmp r14d, 0xa0002
jb 0x140047fd7
ja 0x140047cf9
mov ecx, r9d
shl ecx, 0x10
or ecx, r8d
cmp ecx, 0x8a10000
lea ecx, [r10 - 0x18]
jb 0x140047fd7
mov rsi, qword [rbp - 0x20]
cmp rsi, rdx
je 0x14004823a
lea r12, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r12, qword [rbp - 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r15, [rsi + 1]
mov ebx, 7
lea rdi, [rsp + 0x40]
cmp r15, rbx
jbe 0x140047d64
mov rbx, r15
or rbx, 7
cmp rbx, rdx
jbe 0x140047edd
mov rbx, rdx
mov rcx, rax
add rcx, rcx
call fcn.140025b70
mov rdi, rax
mov qword [rsp + 0x40], rax
mov r10d, 0x22
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rbx
mov word [rdi], r10w
lea rcx, [rdi + 2]
lea r8, [rsi + rsi]
mov rdx, r12
call fcn.140175f40
xor r12d, r12d
mov word [rdi + r15*2], r12w
lea esi, [r12 + 8]
lea r8d, [r12 + 0x1c]
lea rdx, str.___instop:repair_setup__wait
lea rcx, [rsp + 0x40]
call fcn.1400237f0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
or esi, 0x10
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x68]
call fcn.140062bc0
mov ebx, eax
mov dword [rbp - 0x50], eax
lea rcx, [rsp + 0x68]
call fcn.140025e80
nop
lea rcx, [rsp + 0x40]
call fcn.140025e80
test ebx, ebx
jne 0x140048240
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.1400239c0
nop
lea rdx, [r13 + 0x158]
lea rcx, [rsp + 0x68]
call fcn.14000bc40
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140088120
movzx ebx, al
lea rcx, [rsp + 0x68]
call fcn.140025e80
test bl, bl
je 0x140048278
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.140085e40
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], r12
lea rdi, [rax + 0x10]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400296d0
mov ecx, 3
mov rbx, qword [rbp - 0x50]
cmp rbx, qword [rdi]
cmovne ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, qword [rdi]
je 0x140047ef7
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140025a20
nop
or esi, 0x40
jmp 0x140047f28
cmp rbx, 0xa
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x140048205
jmp 0x140047d4e
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 3
lea rdx, [0x1401de438]
lea rcx, [rsp + 0x40]
call fcn.1400258d0
lea rax, [rsp + 0x40]
bts esi, 7
mov dword [rsp + 0x30], esi
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140025a20
bts esi, 8
test sil, sil
jns 0x140047f50
btr esi, 7
lea rcx, [rsp + 0x40]
call fcn.140025e80
nop
test sil, 0x40
je 0x140047f61
lea rcx, [rsp + 0x68]
call fcn.140025e80
nop
lea r9, [rbp + 0x50]
lea rdx, [r13 + 0x158]
lea rcx, [rbp + 0x30]
call fcn.14004da50
nop
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047f97
test al, 0x10
jne 0x140047f97
mov al, 1
jmp 0x140047f99
xor al, al
test al, al
je 0x1400482a1
lea rcx, [rbp + 0x30]
call fcn.140025e80
nop
lea rcx, [rbp + 0x50]
call fcn.140025e80
nop
lea rcx, [rbp - 0x10]
call fcn.14000af00
movabs rdx, 0x7ffffffffffffffe
movabs rax, 0x7fffffffffffffff
mov ecx, 0xa
mov rsi, qword [rbp - 0x20]
cmp rsi, rdx
je 0x1400482de
lea r12, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r12, qword [rbp - 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea r15, [rsi + 1]
mov ebx, 7
lea rdi, [rbp - 0x50]
cmp r15, rbx
jbe 0x140048038
mov rbx, r15
or rbx, 7
cmp rbx, rdx
jbe 0x140048180
mov rbx, rdx
mov rcx, rax
add rcx, rcx
call fcn.140025b70
mov rdi, rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], rbx
mov word [rdi], 0x22
lea rcx, [rdi + 2]
lea r8, [rsi + rsi]
mov rdx, r12
call fcn.140175f40
xor esi, esi
mov word [rdi + r15*2], si
lea r8d, [rsi + 0x16]
lea rdx, str.___instop:repair__wait
lea rcx, [rbp - 0x50]
call fcn.1400237f0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rsp + 0x68]
call fcn.140062bc0
mov ebx, eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
call fcn.140025e80
nop
lea rcx, [rbp - 0x50]
call fcn.140025e80
test ebx, ebx
jne 0x1400482e4
cmp r14d, 0xa0002
jb 0x1400480e2
ja 0x140048150
movzx ecx, word [rsp + 0x60]
shl ecx, 0x10
movzx eax, word [rsp + 0x62]
or ecx, eax
cmp ecx, 0x8a10000
jae 0x140048150
lea r8, [r13 + 0x158]
lea rcx, [rbp - 0x78]
call fcn.14004d940
nop
mov r8d, 0x2f
lea rdx, str.SetupNewInstup.exe___instop:copy_setup__wait
mov rcx, rax
call fcn.1400237f0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rsp + 0x68]
call fcn.140062bc0
mov ebx, eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
call fcn.140025e80
nop
lea rcx, [rbp - 0x78]
call fcn.140025e80
test ebx, ebx
jne 0x140048196
lea rcx, [rbp - 0x30]
call fcn.140025e80
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140133600
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, rcx
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x14004820b
jmp 0x140048029
lea rax, str.Unable_to_copy_installer_with_exit_code_:010x_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], getservbyname
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.14004d880
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x10]
call fcn.140135f84
int3
lea rax, str.Unable_to_repair_installation_with_exit_code_:010x_
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], getservbyname
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x10]
call fcn.14004d880
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x10]
call fcn.140135f84
int3
call fcn.140025d10
int3
call fcn.140025d10
int3
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.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x10]
call fcn.140135f84
int3
call fcn.140025b50
int3
lea rax, str.Unable_to_repair_installer_with_exit_code_:010x_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], getservbyname
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.14004d880
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x78]
call fcn.140135f84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_open_setup.ini_
lea rcx, [rbp - 0x78]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x78]
call fcn.140135f84
nop
lea rax, str.Unable_to_find_file__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x19
lea r9, [rbp + 0x30]
lea r8, [rsp + 0x40]
mov edx, 2
lea rcx, [rbp - 0x78]
call fcn.140029f20
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x78]
call fcn.140135f84
nop
call fcn.140025b50
int3
lea rax, str.Unable_to_repair_installation_with_exit_code_:010x_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], getservbyname
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.14004d880
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x10]
call fcn.140135f84
int3