Function at 0x7ac84
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x7af1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x7af01
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x7aed1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x7acea
cmp dword [ebp - 0x10], 0
jne 0x7ad12
cmp dword [ebp - 0x10], 0
je 0x7acf9
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x7ae80
mov dword [ebp - 0x18], 0xa
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.000744bc
xor eax, eax
push ebp
push 0x7ae79
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call fcn.0007ab68
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7adab
cmp dword [ebp - 0x20], 1
jbe 0x7adab
cmp dword [ebp - 0x20], 0x9c4000
ja 0x7adab
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.000744f8
mov eax, dword [ebp - 0x20]
add eax, 0x400
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.000744bc
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call fcn.0007ab68
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x7ae60
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x7ae59
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0xe7404
call sub.advapi32.dll_AllocateAndInitializeSid
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x7ae11
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*8 + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_EqualSid
mov dword [ebp - 8], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0
jne 0x7ae37
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x7ae33
cmp eax, dword [esp]
pop edx
pop eax
ja 0x7adf7
jmp 0x7ae37
pop edx
pop eax
jg 0x7adf7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ae60
cmp dword [ebp - 0x14], 0
je 0x7ae53
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_FreeSid
xor eax, eax
mov dword [ebp - 0x14], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ae80
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.000744f8
ret
cmp dword [ebp - 8], 0
je 0x7aebb
mov eax, dword [0xeadf8]
cmp dword [eax], 6
jb 0x7aebb
xor eax, eax
mov dword [0xe741c], eax
call fcn.0007abe8
cmp dword [0xe741c], 1
je 0x7aeb2
cmp dword [0xe741c], 2
je 0x7aeb2
xor eax, eax
jmp 0x7aeb4
mov al, 1
neg al
sbb eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7aedf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7af08
cmp dword [ebp - 0x10], 0
je 0x7aefb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret