Function at 0x535e50
Capabilities:
Compare security identifiers
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x535ecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
add esp, 4
mov esi, eax
test byte [0x9538a8], 1
je 0x535ec5
push esi
push str.Failed_to_get_the_thread_handle_for_the_currentthread._err___d._n
push 0x191
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_cmdi_cmdi_process.c
push str.cmdi_check_admin_privilege
push dword [0x7d0124]
push 1
call fcn.004f21c0
add esp, 0x1c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x535f24
call ebx
push eax
call fcn.004f1a60
add esp, 4
mov edi, eax
test byte [0x9538a8], 1
je 0x535f1c
push edi
push str.Failed_to_impersonate._err___d._n
push 0x19a
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_cmdi_cmdi_process.c
push str.cmdi_check_admin_privilege
push dword [0x7d0124]
push 1
call fcn.004f21c0
add esp, 0x1c
mov dword [ebp - 8], esi
jmp 0x5360ac
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 1
push eax
push 0
push 8
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x535f63
call ebx
push eax
call fcn.004f1a60
add esp, 4
mov edi, eax
test byte [0x9538a8], 1
je 0x535f1c
push edi
push str.Failed_to_open_the_thread_token._err___d._n
push 0x1a7
jmp 0x535f02
push 0x4a494351
push 0x64
mov dword [ebp - 4], 0x64
call fcn.004f3590
mov esi, eax
add esp, 8
test esi, esi
jne 0x535f89
mov edi, 0xc
jmp 0x5360ac
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x535fe4
call ebx
cmp eax, 0x7a
jne 0x53603e
push esi
call fcn.004f3570
mov eax, dword [ebp - 4]
add eax, eax
push 0x4b494351
push eax
mov dword [ebp - 4], eax
call fcn.004f3590
mov esi, eax
add esp, 0xc
test esi, esi
je 0x535f7f
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x535fa0
lea eax, [ebp - 0x10]
push eax
push str.S_1_5_32_544
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x536074
call ebx
push eax
call fcn.004f1a60
add esp, 4
mov edi, eax
test byte [0x9538a8], 1
je 0x536035
push edi
push str.ConvertStringSidtoSid_failed._err___d.
push 0x1ce
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_cmdi_cmdi_process.c
push str.cmdi_check_admin_privilege
push dword [0x7d0124]
push 1
call fcn.004f21c0
add esp, 0x1c
mov dword [ebp - 8], 0
jmp 0x5360ac
test byte [0x9538a8], 1
je 0x5360ac
push eax
call fcn.004f1a60
push eax
push str.GetTokenInformation_failed._err___d._n
push 0x1bc
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_cmdi_cmdi_process.c
push str.cmdi_check_admin_privilege
push dword [0x7d0124]
push 1
call fcn.004f21c0
add esp, 0x20
jmp 0x5360ac
mov dword [ebp - 0x14], edi
cmp dword [esi], edi
jbe 0x5360ac
lea ebx, [esi + 4]
nop
push dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x53609f
mov eax, dword [ebp - 0x14]
add ebx, 8
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi]
jb 0x536080
jmp 0x5360a6
mov dword [ebp - 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5360ba
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5360c8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x536120
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x536120
test byte [0x9538a8], 1
je 0x53610e
call ebx
push eax
call fcn.004f1a60
push eax
push str.RevertToSelf_function_failed_with_error__d
push 0x1ef
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_cmdi_cmdi_process.c
push str.cmdi_check_admin_privilege
push dword [0x7d0124]
push 1
call fcn.004f21c0
add esp, 0x20
call ebx
push eax
call fcn.004f1a60
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test esi, esi
je 0x536137
push esi
call fcn.004f3570
add esp, 4
test edi, edi
jne 0x536146
cmp dword [ebp - 8], edi
mov eax, 0xd
cmove edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret