Function at 0x463850
Capabilities:
Compare security identifiers
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xad8
mov eax, dword [0x6d3438]
xor eax, esp
mov dword [esp + 0xad4], eax
movups xmm0, xmmword [str.mcutil32_install_dir]
mov ax, word [0x697518]
push esi
movups xmmword [esp + 0x2c], xmm0
push edi
movups xmm0, xmmword [0x697500]
mov esi, ecx
mov word [esp + 0x58], ax
push 0
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x10], esi
movq xmm0, qword [0x697510]
movq qword [esp + 0x54], xmm0
call fcn.00463080
test eax, eax
je 0x463d09
push 0x208
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.0060a8e0
add esp, 0xc
lea eax, [esp + 0x2b8]
push 0x208
push 0
push eax
call fcn.0060a8e0
add esp, 0xc
mov dword [esp + 0x28], 0x208
lea eax, [esp + 0x8d0]
mov dword [esp + 0x24], 0
push 0x208
push 0
push eax
call fcn.0060a8e0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x10
push eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x40]
push eax
push str.SOFTWAREMcAfeePlatform
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004627c0
add esp, 0x1c
test eax, eax
jne 0x46395e
cmp dword [esp + 0x24], 1
jne 0x46395e
cmp ax, word [esp + 0xb0]
je 0x46395e
lea eax, [esp + 0xb0]
mov ecx, esi
push eax
call fcn.00463080
test eax, eax
je 0x463d09
movups xmm0, xmmword [str.CommonFiles_Dir]
mov ax, word [0x697580]
push 0x410
movups xmmword [esp + 0x94], xmm0
mov word [esp + 0x84], ax
lea eax, [esp + 0x4c4]
movups xmm0, xmmword [0x68db54]
push 0
push eax
movups xmmword [esp + 0xac], xmm0
movups xmm0, xmmword [str.McAfeePlatform]
movups xmmword [esp + 0x6c], xmm0
movups xmm0, xmmword [0x697570]
movups xmmword [esp + 0x7c], xmm0
call fcn.0060a8e0
add esp, 0xc
mov dword [esp + 0x18], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x410
push 0x10
push eax
lea eax, [esp + 0x4c8]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xa0]
push eax
push str.SOFTWAREMcAfeeMSC
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004627c0
add esp, 0x1c
test eax, eax
jne 0x463a1b
cmp dword [esp + 0x18], 1
jne 0x463a1b
lea eax, [esp + 0x4c0]
push 0x207
push eax
call fcn.006196a0
add esp, 8
test eax, eax
jne 0x463a5d
xor eax, eax
mov word [esp + 0x4c0], ax
lea eax, [esp + 0x4c0]
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x463d3d
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x4c4]
push 0x208
push eax
call fcn.0060e249
add esp, 0xc
lea eax, [esp + 0x4c0]
push 0x207
push eax
call fcn.006196a0
mov ecx, 0x5c
add esp, 8
cmp cx, word [esp + eax*2 + 0x4be]
lea eax, [esp + eax*2 + 0x4be]
je 0x463aaa
push 0x68e7fc
lea eax, [esp + 0x4c4]
push 0x208
push eax
call fcn.0060e249
add esp, 0xc
test eax, eax
jne 0x463d3d
mov edx, 0x22
lea ecx, [esp + 0x4c2]
cmp dx, word [esp + 0x4c0]
lea eax, [esp + 0x4c0]
cmove eax, ecx
push eax
lea eax, [esp + 0x2bc]
push 0x104
push eax
call fcn.0060e2d8
add esp, 0xc
test eax, eax
jne 0x463d3d
lea edx, [esp + 0x2b8]
push ecx
mov ecx, edx
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x463b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x463d3d
xor eax, eax
cmp ax, word [esp + 0x2b8]
je 0x463d3d
lea eax, [esp + 0x2b8]
push eax
lea eax, [esp + 0x8d4]
push 0x104
push eax
call fcn.0060e2d8
add esp, 0xc
lea eax, [esp + 0x2b8]
push str.mcutil
push 0x104
push eax
call fcn.0060e249
add esp, 0xc
lea eax, [esp + 0xb0]
push 0x208
push 0
push eax
call fcn.0060a8e0
add esp, 8
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x2bc]
call fcn.00462e30
add esp, 4
test eax, eax
je 0x463d3d
xor eax, eax
cmp ax, word [esp + 0xb0]
je 0x463d3d
lea eax, [esp + 0xb0]
mov ecx, esi
push eax
call fcn.00463080
test eax, eax
jne 0x463d3d
mov dword [esp + 0x18], eax
xor edi, edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], edi
push eax
push 8
mov word [esp + 0x28], 0x500
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
je 0x463c96
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push esi
push esi
push 2
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x463c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x463c96
push dword [esp + 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x463c96
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push 2
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x463c96
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x463c96
xor esi, esi
cmp dword [edi], esi
jbe 0x463c94
lea eax, [edi + 4]
mov dword [esp + 8], eax
nop dword [eax]
push dword [eax]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x463d26
mov eax, dword [esp + 8]
inc esi
add eax, 8
mov dword [esp + 8], eax
cmp esi, dword [edi]
jb 0x463c70
xor esi, esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x463ca5
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x463cb0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x463cbf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x463d05
lea edx, [esp + 0xb0]
push ecx
mov ecx, edx
call fcn.00463d80
lea eax, [esp + 0xb4]
push 0x104
push eax
call fcn.006196a0
add esp, 8
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0xb8]
push eax
push ecx
lea eax, [esp + 0x40]
push eax
call fcn.00462b10
add esp, 0x14
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.004632a0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xad4]
xor ecx, esp
call fcn.00608185
mov esp, ebp
pop ebp
ret
test byte [edi + esi*8 + 8], 4
mov eax, 1
mov esi, 0
cmovne esi, eax
jmp 0x463c96
xor eax, eax
cmp ax, word [esp + 0x8d0]
je 0x463d5c
lea eax, [esp + 0x8d0]
mov ecx, esi
push eax
call fcn.00463080
test eax, eax
je 0x463d09
mov ecx, dword [esp + 0xadc]
mov eax, 0x7e
pop edi
pop esi
xor ecx, esp
call fcn.00608185
mov esp, ebp
pop ebp
ret