Function at 0x616190
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x78a6d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x6161eb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::OpenProcessToken
push 0x45
push 0x1d
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonPrivilege.cpp
push str.IsRunningLocalSystemAcct
call fcn.00612830
add esp, 0x20
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x61624d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x61624d
push 0
push 0
push eax
push str.::GetTokenInformation
push 0x45
push 0x29
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonPrivilege.cpp
push str.IsRunningLocalSystemAcct
call fcn.00612830
add esp, 0x20
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x61629b
push eax
push eax
push 0xfe000004
push str.::GlobalAlloc
push 0x45
push 0x33
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonPrivilege.cpp
push str.IsRunningLocalSystemAcct
call fcn.00612830
add esp, 0x20
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x6162f7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::GetTokenInformation
push 0x45
push 0x3b
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonPrivilege.cpp
push str.IsRunningLocalSystemAcct
call fcn.00612830
add esp, 0x20
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x616374
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::AllocateAnInitializeSid
push 0x45
push 0x49
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonPrivilege.cpp
push str.IsRunningLocalSystemAcct
call fcn.00612830
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push esi
test eax, eax
je 0x6163a4
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0058a893
mov esp, ebp
pop ebp
ret