Function at 0x140006d00
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x3f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r15d, r9d
mov r14, r8
mov r12, rdx
lea rcx, [0x14002c6a8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140006d69
lea rdx, str.SetProcessDPIAware
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006d60
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbp - 0x21]
call fcn.14000627c
nop
lea rdx, str.new_AliWorkbench.exe
mov rcx, qword [rbp - 0x21]
call fcn.140016930
nop
test eax, eax
jne 0x140006e3d
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140006dad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp - 1]
call fcn.14000676c
nop
mov rdx, r14
lea rcx, [rbp - 1]
call fcn.14000bf7c
nop
lea rax, [rbp + 0x17]
mov qword [rbp + 0x2f], rax
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140006deb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, [rbp - 1]
mov qword [rbp + 0x2f], rax
lea rax, [rbp + 0xf]
mov qword [rbp + 0x37], rax
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140006e1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, [rbp - 1]
mov qword [rbp + 0x37], rax
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x140006e36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp - 1], 0
xor eax, eax
jmp 0x14000708a
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140006e5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp - 0x29]
call fcn.140006358
nop
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140007067
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x140007067
lea r8, str.libtcmalloc_minimal.dll
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x1f]
call fcn.1400070ac
nop
mov edi, 8
mov r8d, edi
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140006ed3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.SetDllDirectoryW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006f31
mov rcx, qword [rbp - 0x29]
call rax
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, str.Path
lea rcx, [rbp - 0x11]
call fcn.1400052f0
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call fcn.140006b88
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140006f78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140006a10
nop
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.140007170
nop
mov rax, qword [rbp - 0x19]
cmp dword [rax - 0x10], 0
jle 0x140006fb5
mov r8d, edi
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
jmp 0x140006ff9
lea r8, str.AliIMStartup.dll
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x27]
call fcn.1400070ac
nop
mov r8d, edi
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov rdx, qword [rbp + 0x27]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140006ff9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test rsi, rsi
jne 0x140007002
mov edi, ebx
jmp 0x140007028
xor edi, edi
lea rdx, str.AliEntry
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140007028
mov r9d, r15d
mov r8, r14
mov edx, r12d
mov ecx, esi
call rax
mov edi, eax
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007047
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007069
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140007069
mov edi, ebx
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140007088
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret