Function at 0x210514b2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x2109c230], 0
jne 0x210514e9
cmp dword [ebp + 8], 0
je 0x210514d0
mov eax, dword [ebp + 8]
mov dword [eax], 1
cmp dword [ebp + 0xc], 0
je 0x210514df
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x3000
mov eax, 1
jmp 0x210516d4
cmp dword [ebp + 8], 0
je 0x210514f8
mov edx, dword [ebp + 8]
mov dword [edx], 0
cmp dword [ebp + 0xc], 0
je 0x21051507
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
call fcn.21050fa0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x2105151d
or eax, 0xffffffff
jmp 0x210516d4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
push 8
call fcn.21058b07
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x2105154a
jmp 0x210516d2
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 2
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x2105156e
jmp 0x210516d0
mov eax, dword [ebp - 4]
push eax
call fcn.2106e07d
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x2105158e
jmp 0x210516ce
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 2
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x210515af
jmp 0x210516cc
cmp dword [0x2109c230], 5
jl 0x21051605
mov dword [ebp - 4], 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x14
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x210515e0
jmp 0x210516ca
cmp dword [ebp + 8], 0
je 0x210515ee
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
cmp dword [ebp + 0xc], 0
je 0x21051605
mov eax, dword [ebp - 0x1c]
push eax
call fcn.210511ae
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
jmp 0x2105161e
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jae 0x21051666
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*8 + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x21051643
jmp 0x21051615
mov dword [ebp - 0xc], 1
cmp dword [0x2109c230], 5
jl 0x21051666
cmp dword [ebp + 8], 0
jne 0x21051666
cmp dword [ebp - 0x14], 0
jne 0x21051666
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x1c], 0
je 0x21051676
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x21051686
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.2106e0a6
add esp, 4
cmp dword [0x2109c230], 4
jg 0x210516c5
cmp dword [ebp - 0xc], 0
je 0x210516c5
cmp dword [ebp + 8], 0
je 0x210516b6
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
cmp dword [ebp + 0xc], 0
je 0x210516c5
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x3000
mov eax, dword [ebp - 0xc]
jmp 0x210516d4
jmp 0x21051666
jmp 0x21051666
jmp 0x21051666
jmp 0x21051666
jmp 0x21051666
mov esp, ebp
pop ebp
ret