Function at 0x100534c0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x1017e8ec], 0xffffffff
push ebx
mov dword [esp + 0x10], 0
jne 0x10053501
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1017e8ec
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.10050110
add esp, 0x20
cmp dword [0x1017e8ec], 0
jne 0x1005351f
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1010d699
add esp, 0x20
ret
call fcn.1004b350
test eax, eax
jne 0x10053538
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1010d699
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 0x100535ab
call esi
cmp eax, 0x3f0
jne 0x10053598
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 0x100535ab
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1010d699
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 0x100535e2
call esi
cmp eax, 0x7a
jne 0x1005364a
mov eax, dword [esp + 0x14]
push eax
call fcn.1004e860
mov esi, eax
add esp, 4
test esi, esi
jne 0x10053600
lea ecx, [esp + 0x10]
push ecx
call fcn.100673f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1010d699
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 0x10053641
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 0x10053668
push esi
call fcn.1010dc10
add esp, 4
lea edx, [esp + 0x10]
push edx
call fcn.100673f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1010d699
add esp, 0x20
ret
xor edi, edi
cmp dword [esi], edi
jbe 0x100536bf
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 0x10053690
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x10053678
jmp 0x100536be
mov dword [esp + 0x1c], 1
call fcn.1004fe90
test eax, eax
je 0x100536be
lea ebx, [esp + 0x13]
mov byte [esp + 0x13], 0
call fcn.1004b960
cmp byte [esp + 0x13], 3
je 0x100536be
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.100673f0
push esi
call fcn.1010dc10
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x20
ret