Function at 0x4c6ee0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd0f5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4c6f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_open_current_process_token._Assuming_its_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x4f
call fcn.00427510
add esp, 0xc
xor al, al
jmp 0x4c70e5
push dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
call fcn.004e6460
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0x7a
je 0x4c6faa
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_get_the_required_buffer_length_for_token_information._Assuming_current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x77
call fcn.0047f7d0
add esp, 0xc
xor bl, bl
jmp 0x4c70db
mov esi, dword [ebp - 0x20]
push esi
call fcn.004e9941
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x2c], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x20]
push ebx
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4c700c
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_get_token_information._Assuming_current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x58
call fcn.00427510
add esp, 0xc
xor bl, bl
jmp 0x4c70d0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4c706b
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_allocate_and_initialize_SYSTEM_SID._Assuming_current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x65
call fcn.00427510
add esp, 0xc
xor bl, bl
jmp 0x4c70d0
push dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
call fcn.004e6460
push dword [ebp - 0x28]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4c70ac
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Current_process_is_not_run_by_SYSTEM._Code:_
mov dword [eax + 4], 0x2e
call fcn.004c8a00
add esp, 0xc
xor bl, bl
jmp 0x4c70c8
sub esp, 8
mov eax, esp
mov dword [eax], str.Current_process_is_run_by_SYSTEM.
mov dword [eax + 4], 0x21
call fcn.004160f0
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x34]
call fcn.004e65d0
push dword [ebp - 0x2c]
call fcn.004e993c
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.004e6530
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret