Function at 0x96a540
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0xb32da4], 0xffffffff
push ebx
mov dword [esp + 0x10], 0
jne 0x96a581
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xb32da4
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.009691d0
add esp, 0x20
cmp dword [0xb32da4], 0
jne 0x96a59f
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x20
ret
call fcn.009622a0
test eax, eax
jne 0x96a5b8
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x20
ret
push esi
lea eax, [esp + 0xc]
push eax
push 0
push 8
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x96a62b
call esi
cmp eax, 0x3f0
jne 0x96a618
lea ecx, [esp + 0xc]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x96a62b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x20
ret
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 2
push eax
call edi
test eax, eax
jne 0x96a66b
call esi
cmp eax, 0x7a
jne 0x96a6d3
mov eax, dword [esp + 0x14]
add eax, 0x10
push 1
push eax
call fcn.00a7b9f8
mov esi, eax
add esp, 8
test esi, esi
jne 0x96a689
lea ecx, [esp + 0x10]
push ecx
call fcn.00985290
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x20
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
je 0x96a6ca
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x96a6f1
push esi
call fcn.00a78fec
add esp, 4
lea edx, [esp + 0x10]
push edx
call fcn.00985290
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x20
ret
xor edi, edi
cmp dword [esi], edi
jbe 0x96a748
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
push eax
push ecx
call ebp
test eax, eax
jne 0x96a719
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x96a701
jmp 0x96a747
mov dword [esp + 0x1c], 1
call fcn.00968d70
test eax, eax
je 0x96a747
lea ebx, [esp + 0x13]
mov byte [esp + 0x13], 0
call fcn.00962920
cmp byte [esp + 0x13], 3
je 0x96a747
mov dword [esp + 0x1c], 0
pop ebp
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [esp + 0x10]
push eax
call fcn.00985290
push esi
call fcn.00a78fec
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x20
ret