Function at 0x440f80
Capabilities:
Check if file exists
Get common file path

Disassembly:
lea eax, [r8 - 5]
cmp eax, 3
ja 0x43f60c
cmp qword [rcx + 0x50], 0
je 0x43f60c
lfence
mov rcx, qword [rcx + 0x50]
jmp 0x440f80
ret
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov ebx, r8d
mov edi, edx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x70], 0xffffffff
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsExW]
test eax, eax
je 0x44104b
mov ecx, r14d
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x74]
test r8d, r8d
je 0x441033
nop word [rax + rax]
mov edx, ecx
imul rax, rdx, 0x38
cmp dword [rax + r9 + 4], r14d
je 0x441026
inc ecx
cmp ecx, r8d
jb 0x441010
jmp 0x441033
imul rax, rdx, 0x38
mov ecx, dword [rax + r9 + 8]
mov dword [rsp + 0x70], ecx
test r9, r9
je 0x44104b
mov rdx, r9
mov ecx, 2
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemoryExW]
mov qword [rsp + 0x68], r14
lea r12, [0x00400000]
cmp dword [rsp + 0x70], 1
jae 0x44108d
mov edx, 0x80
lea rcx, [0x004c4ef0]
call fcn.004036d0
lea rdx, [r12 + 0xc4f80]
lea rdx, [rdx + rax*2]
lea r9, str._OnSessionChanged__Cant_get_active_session_information_
mov ecx, 4
mov r8d, 0xd2
call fcn.0044a600
mov edx, 0x80
lea rcx, [0x004c4ef0]
call fcn.004036d0
lea rdx, [r12 + 0xc4f80]
lea rdx, [rdx + rax*2]
mov dword [rsp + 0x30], ebx
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
lea r9, str._OnSessionChanged__Session:_d__ActiveId:_d__event:_d
mov ecx, 4
mov r8d, 0xd5
call fcn.0044a600
cmp ebx, 6
jne 0x44119b
cmp dword [rsi + 0x58], r14d
je 0x4410ea
lea rcx, [rsi + 0x30]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x20]
mov rcx, qword [rax + 8]
mov rdx, rax
mov r8d, dword [rsp + 0x70]
cmp byte [rcx + 0x19], r14b
jne 0x441118
cmp dword [rcx + 0x20], r8d
jae 0x44110c
mov rcx, qword [rcx + 0x10]
jmp 0x441112
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], r14b
je 0x441100
cmp byte [rdx + 0x19], r14b
jne 0x44116a
cmp r8d, dword [rdx + 0x20]
jb 0x44116a
cmp rdx, rax
je 0x44116a
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x20]
call fcn.0043bba0
mov rdi, qword [rax]
test rdi, rdi
je 0x44115c
mov rcx, rdi
call fcn.004387d0
mov rcx, rdi
call fcn.00438000
mov edx, 0x158
mov rcx, rdi
call fcn.00479330
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x20]
call fcn.00441d40
cmp dword [rsi + 0x58], r14d
je 0x44117a
lea rcx, [rsi + 0x30]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.00479310
add rsp, 0x8b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp ebx, 5
je 0x4411a5
cmp ebx, 8
jne 0x44117a
mov rax, qword [rsi + 8]
mov dword [rax + 0x18], r14d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
test eax, eax
js 0x4411fe
lea rdx, str.ASUSASUS_System_Control_InterfaceAsusSoftwareManager_reboot.tmp
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4411fe
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp dword [0x005028cc], 1
je 0x44117a
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x00503db0], eax
jle 0x44126d
lea rcx, [0x00503db0]
call fcn.0047981c
cmp dword [0x00503db0], 0xffffffff
jne 0x44126d
xor edx, edx
mov r8d, 0x210
lea rcx, [0x00503ba0]
call fcn.004a2370
call fcn.0043f840
lea rcx, [0x004b0810]
call fcn.00479570
nop
lea rcx, [0x00503db0]
call fcn.004797b0
mov edx, 0x78
lea rcx, [0x004c69e0]
call fcn.004036d0
lea rdx, [r12 + 0xc6a60]
lea rdx, [rdx + rax*2]
mov eax, dword [0x005022d4]
mov dword [rsp + 0x28], eax
lea rax, str.McAfeeTool::IsWindowsHomeEdition
mov qword [rsp + 0x20], rax
lea r9, str._s:_OS_EditionID_WMI_d
mov ecx, 1
mov r8d, 0x194
call fcn.0044b390
cmp dword [0x005022d4], 0x65
sete r15b
mov eax, dword [rbx]
cmp dword [0x00503db0], eax
jle 0x441313
lea rcx, [0x00503db0]
call fcn.0047981c
cmp dword [0x00503db0], 0xffffffff
jne 0x441313
xor edx, edx
mov r8d, 0x210
lea rcx, [0x00503ba0]
call fcn.004a2370
call fcn.0043f840
lea rcx, [0x004b0810]
call fcn.00479570
nop
lea rcx, [0x00503db0]
call fcn.004797b0
xor r14b, r14b
lea rcx, [0x00503ba0]
call fcn.0044cd30
mov ebx, eax
mov edx, 0x78
lea rcx, [0x004c69e0]
call fcn.004036d0
lea rdx, [r12 + 0xc6a60]
lea rdx, [rdx + rax*2]
mov dword [rsp + 0x28], ebx
lea rax, str.McAfeeTool::SkippedMcAfeeTask
mov qword [rsp + 0x20], rax
lea r9, str._s:_mcafee_val0x_08x
mov ecx, 1
mov r8d, 0x311
call fcn.0044b390
cmp ebx, 0x64
je 0x44137a
lea eax, [rbx - 4]
cmp eax, 3
jbe 0x44137a
cmp ebx, 1
jne 0x44137d
mov r14b, 1
movzx ebx, r14b
movzx edi, r15b
mov edx, 0x80
call fcn.00441f80
lea rdx, [r12 + 0xc4f80]
lea rdx, [rdx + rax*2]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
lea r9, str.bIsWindowsHome___d__bSkippedMcAfeeTask___d
mov ecx, 1
mov r8d, 0x109
call fcn.0044b390
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x4413d6
cmp byte [rsi + 0x18], 0
je 0x4413d2
cmp byte [rax + 0xb8], 0
jne 0x4413d6
mov bl, 1
jmp 0x4413d8
xor bl, bl
mov edx, 0x80
call fcn.00441f80
movzx ecx, byte [0x005022d9]
movzx r8d, bl
lea rdx, [r12 + 0xc4f80]
lea rdx, [rdx + rax*2]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
lea r9, str.bTaskValid___d__m_McAfeeTaskRunning___d
mov ecx, 1
mov r8d, 0x10c
call fcn.0044b390
test r15b, r15b
je 0x44117a
test r14b, r14b
jne 0x44117a
test bl, bl
jne 0x44117a
cmp byte [0x005022d9], bl
jne 0x44117a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
lea rdx, [rsp + 0x40]
call fcn.00442120
mov rdx, rax
mov qword [rbp - 0x80], rax
mov byte [rbp - 0x78], bl
mov byte [rbp - 0x70], bl
test rax, rax
je 0x441510
lock inc dword [rax + 8]
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], 1
mov dword [rsp + 0x44], 1
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 8], eax
cmp eax, 1
jne 0x4414bf
mov rcx, qword [rbp - 0x80]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x4414b4
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x4414bf
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x10]
call fcn.0042c7a0
nop
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x44150b
lock xadd dword [rax + 8], ebx
cmp ebx, 1
jne 0x44150b
mov rcx, qword [rsp + 0x48]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x441500
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x44150b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
jmp 0x44117a
mov edx, 4
lea rcx, [rsp + 0x58]
call fcn.0042ac30
mov rcx, rax
call fcn.00480de0
int3