Function at 0x10008120
Capabilities:
Compare security identifiers
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10044996
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x100533e8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x9c], eax
push 1
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0xa0], bl
mov byte [esp + 0xa1], bl
mov byte [esp + 0xa2], bl
mov byte [esp + 0xa3], bl
mov byte [esp + 0xa4], bl
mov byte [esp + 0xa5], 1
call fcn.10005050
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x40], 2
mov dword [esp + 0x34], 0x10047d84
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0xbc]
lea edx, [esp + 0x34]
push edx
push 1
push eax
mov byte [esp + 0xc0], 1
call fcn.10006c80
add esp, 0x1c
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 5
call fcn.10007d60
mov ecx, dword [esp + 0x14]
xor esi, esi
cmp ecx, ebx
jbe 0x100082f6
xor edi, edi
cmp esi, ecx
mov dword [esp + 0x20], edi
jae 0x100084c5
mov edx, dword [esp + 0x10]
mov eax, dword [edi + edx + 4]
cmp eax, ebx
lea edi, [edi + edx + 4]
je 0x100082e2
cmp dword [esp + 0x48], ebx
je 0x100082e2
mov ebp, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebp
test eax, eax
je 0x100082de
mov eax, dword [esp + 0x48]
push eax
call ebp
test eax, eax
je 0x100082de
mov ecx, dword [esp + 0x48]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
cmp al, bl
je 0x100082de
cmp esi, dword [esp + 0x64]
jae 0x100084c5
mov ebp, dword [esp + 0x60]
cmp byte [esi + ebp], bl
jne 0x100082de
cmp esi, dword [esp + 0x74]
jae 0x100084c5
mov edi, dword [esp + 0x70]
test dword [edi + esi*4], 0x1f0000
jne 0x100084cf
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
inc esi
add edi, 0x1c
cmp esi, ecx
mov dword [esp + 0x20], edi
jb 0x1000826b
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x10008336
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, ebx
mov ebp, eax
jbe 0x10008329
lea ebx, [ebx]
mov ecx, dword [edi + esi*4]
cmp ecx, ebx
je 0x1000831d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + esi*4], ebx
inc esi
cmp esi, ebp
jb 0x10008310
mov edi, dword [esp + 0x34]
push edi
call fcn.1003633d
add esp, 4
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.1003633d
add esp, 4
push 3
push 0x10000000
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebx
call fcn.100054f0
mov esi, dword [esp + 0xac]
cmp esi, ebx
je 0x1000838e
push ebx
lea ecx, [esp + 0x28]
call fcn.10003a60
push eax
push ebx
push ebx
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x100083a2
push eax
call fcn.1003633d
add esp, 4
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x100083b3
push eax
call fcn.1003633d
add esp, 4
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x100083c4
push eax
call fcn.1003633d
add esp, 4
mov esi, dword [esp + 0x10]
cmp esi, ebx
mov byte [esp + 0xa4], 1
je 0x100083fa
mov edi, dword [esp + 0x14]
cmp edi, ebx
jbe 0x100083f1
lea esp, [esp]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
add esi, 0x1c
dec edi
jne 0x100083e0
mov esi, dword [esp + 0x10]
push esi
call fcn.1003633d
add esp, 4
lea ecx, [esp + 0x24]
call fcn.10007ef0
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x48], 0x10047d2c
mov dword [esp + 0xa8], 0xffffffff
call fcn.1003633d
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10008441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000845f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000847d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000849b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8c]
mov eax, 1
pop ebx
call fcn.10036133
add esp, 0x98
ret
push 0x80070057
call fcn.10003290
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x100084e3
push eax
call fcn.1003633d
add esp, 4
cmp ebp, ebx
je 0x100084f0
push ebp
call fcn.1003633d
add esp, 4
cmp edi, ebx
je 0x100084fd
push edi
call fcn.1003633d
add esp, 4
mov esi, dword [esp + 0x10]
cmp esi, ebx
mov byte [esp + 0xa4], 1
je 0x100083fa
mov edi, dword [esp + 0x14]
cmp edi, ebx
jbe 0x100083f1
lea ecx, [ecx]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
add esi, 0x1c
dec edi
jne 0x10008520
jmp 0x100083ed