Function at 0x5d7ec
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5da28
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5da13
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5d9e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
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
jne 0x5d868
cmp dword [ebp - 0xc], 0
je 0x5d84f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
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 0x5d9cd
mov dword [ebp - 0x10], 0xa
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0002aea4
xor eax, eax
push ebp
push 0x5d9c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call fcn.0005d778
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5d901
cmp dword [ebp - 0x1c], 1
jbe 0x5d901
cmp dword [ebp - 0x1c], 0x9c4000
ja 0x5d901
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0002aecc
mov eax, dword [ebp - 0x1c]
add eax, 0x400
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0002aea4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call fcn.0005d778
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5d9ad
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5d9a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x1b42f4
call sub.advapi32.dll_AllocateAndInitializeSid
xor eax, eax
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x5d95f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_EqualSid
mov dword [ebp - 8], eax
inc ebx
cmp dword [ebp - 8], 0
jne 0x5d984
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x5d980
cmp eax, dword [esp]
pop edx
pop eax
ja 0x5d94a
jmp 0x5d984
pop edx
pop eax
jg 0x5d94a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d9ad
cmp dword [ebp - 0x18], 0
je 0x5d9a0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_FreeSid
xor eax, eax
mov dword [ebp - 0x18], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d9cd
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0002aecc
ret
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 0x5d9f1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5da1a
cmp dword [ebp - 0xc], 0
je 0x5da0d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret