Function at 0x404060
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov dword [ebp - 0x18], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 1
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 8]
push 1
call sub.vmwarebase.DLL_UtilSafeCalloc0
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x404228
mov eax, dword [esi]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x404228
push dword [ebp - 0x14]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404225
lea eax, [ebp - 0xc]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40421e
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push edi
push edi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 8]
push 1
call sub.vmwarebase.DLL_UtilSafeCalloc0
add esp, 8
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40421e
mov eax, dword [edi]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40421e
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40421e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404225
lea eax, [ebp - 0xc]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40421e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 8]
push 1
call sub.vmwarebase.DLL_UtilSafeCalloc0
add esp, 8
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40421e
mov eax, dword [edi]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40421e
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x404236
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 8
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004083a0
mov esp, ebp
pop ebp
ret