Function at 0x14000af58
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140035010]
xor rax, rsp
mov qword [rbp], rax
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x50]
call fcn.14000627c
nop
lea rcx, [rsp + 0x58]
call fcn.1400061c0
nop
lea rdx, [0x14002c8c8]
lea rcx, [rsp + 0x78]
call fcn.1400052f0
nop
mov rax, qword [rsp + 0x58]
mov r8d, dword [rax - 0x10]
mov rax, qword [rsp + 0x78]
sub r8d, dword [rax - 0x10]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140007218
nop
mov r14b, r12b
lea rdx, [0x14002ccc0]
lea rcx, [rbp - 0x28]
call fcn.1400052f0
nop
lea rdx, str.AliWorkbench.exe.manifest
lea rcx, [rbp - 0x20]
call fcn.1400052f0
nop
lea rdx, str.AliWorkbench.ini
lea rcx, [rbp - 0x18]
call fcn.1400052f0
nop
lea rdx, str.AliWorkbenchTask.exe
lea rcx, [rbp - 0x10]
call fcn.1400052f0
nop
lea rdx, str.Uninstall.exe
lea rcx, [rbp - 8]
call fcn.1400052f0
nop
lea rdx, str.Replace_new_now
lea rcx, [rsp + 0x60]
call fcn.1400052f0
nop
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.1400077a0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or r13d, 0xffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b082
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, [rsp + 0x38]
mov qword [rbp - 0x48], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
call fcn.14000d078
mov qword [rsp + 0x38], rax
mov esi, r12d
movsxd rax, esi
lea rbx, [rbp - 0x28]
lea rbx, [rbx + rax*8]
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140007170
nop
lea r8, str.new_
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1400070ac
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007170
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b107
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000b278
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x14000b278
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x70]
call fcn.140004184
mov rbx, rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.140004184
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x14000b5a8
mov rcx, qword [rax]
call fcn.140016930
test eax, eax
sete bl
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b187
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b1a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, bl
je 0x14000b1d2
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b1cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14000b29a
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rbx + 8]
cmp byte [rdi + 0x19], r12b
jne 0x14000b230
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14000b5be
mov rcx, qword [rdi + 0x20]
call fcn.1400178cc
test eax, eax
jns 0x14000b202
mov rdi, qword [rdi + 0x10]
jmp 0x14000b208
mov rbx, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], r12b
je 0x14000b1e1
cmp rbx, qword [rsp + 0x38]
je 0x14000b230
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x14000b5b3
mov rcx, qword [rsp + 0x50]
call fcn.1400178cc
test eax, eax
jns 0x14000b265
lea rax, [rsp + 0x50]
mov qword [rbp - 0x68], rax
lea r8, [rbp - 0x68]
lea rcx, [rsp + 0x38]
call fcn.14000e778
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call fcn.14000e80c
mov rbx, qword [rbp - 0x60]
mov qword [rbp - 0x38], rbx
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x48]
call fcn.140007328
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b29a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b2bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc esi
cmp esi, 5
jl 0x14000b0a2
cmp qword [rsp + 0x40], r12
jbe 0x14000b42b
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000b3b6
mov edi, dword [rsp + 0x30]
lea rsi, [rbx + 0x20]
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000b328
lea r8, str..bak
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.1400070ac
nop
or edi, 1
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov sil, 1
je 0x14000b32b
mov sil, r12b
test dil, 1
je 0x14000b35c
and edi, 0xfffffffe
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b358
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rsp + 0x30]
test sil, sil
jne 0x14000b55e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
je 0x14000b38d
mov rax, qword [rbx + 8]
jmp 0x14000b382
cmp rbx, qword [rax + 0x10]
jne 0x14000b388
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x14000b375
mov rbx, rax
jmp 0x14000b3a8
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r12b
jne 0x14000b3a8
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r12b
je 0x14000b399
mov rax, qword [rsp + 0x38]
cmp rbx, rax
jne 0x14000b2e6
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000b421
xor r8d, r8d
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000b54a
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
je 0x14000b3ff
mov rax, qword [rbx + 8]
jmp 0x14000b3f4
cmp rbx, qword [rax + 0x10]
jne 0x14000b3fa
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x14000b3e7
mov rbx, rax
jmp 0x14000b41a
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r12b
jne 0x14000b41a
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r12b
je 0x14000b40b
cmp rbx, qword [rsp + 0x38]
jne 0x14000b3be
lea rcx, [rsp + 0x38]
call fcn.140009a44
mov r14b, 1
lea rax, [rsp + 0x38]
mov qword [rbp - 0x48], rax
mov rbx, qword [rsp + 0x38]
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x38]
call fcn.14000d0b0
mov rax, qword [rsp + 0x38]
mov qword [rax + 8], rbx
mov rax, qword [rsp + 0x38]
mov qword [rax], rbx
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rbx
mov qword [rsp + 0x40], r12
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.14000f3f4
nop
lea r9, [fcn.1400052bc]
mov edx, 8
lea r8d, [rdx - 3]
lea rcx, [rbp - 0x28]
call fcn.14000fa60
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b4b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b4d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b4f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, r13d
lock xadd dword [rdx + 0x10], ecx
add ecx, r13d
test ecx, ecx
jg 0x14000b51a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov al, r14b
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14000f3d0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [rsp + 0x38]
call fcn.140009b1c
lea rcx, [rsp + 0x38]
call fcn.140009a44
lea rdx, str.file_failed
lea rcx, [rsp + 0x68]
call fcn.1400052f0
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.1400077a0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000b42e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000b42e
mov ecx, 0x80004005
call fcn.140005bc4
nop
mov ecx, 0x80004005
call fcn.140005bc4
int3
mov ecx, 0x80004005
call fcn.140005bc4
int3