Function at 0x12a226b1
Capabilities:
Compare security identifiers

Disassembly:
push 0xdc
mov eax, 0x12a32def
call fcn.12a1a02e
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [0x12a37010]
mov esi, 0x12a37010
cmp eax, esi
je 0x12a22703
test byte [eax + 0x1c], 1
je 0x12a22703
cmp byte [eax + 0x19], 5
jb 0x12a22703
movzx ecx, byte [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push 0x12a02fd0
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a1eea8
and dword [ebp - 0xdc], 0
lea ecx, [ebp - 0x70]
call fcn.12a1aeb5
mov eax, dword [ebp - 0xe4]
and dword [eax], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0xdc]
push eax
push edi
call sub.API_MS_Win_Security_SDDL_L1_1_0.dll_ConvertStringSidToSidW
mov dword [ebp - 0xd4], eax
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a22767
test byte [eax + 0x1c], 2
je 0x12a22767
cmp byte [eax + 0x19], 4
jb 0x12a22767
push dword [ebp - 0xd4]
mov edi, 0x12a02fd0
push edi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
mov eax, dword [0x12a37010]
jmp 0x12a2276c
mov edi, 0x12a02fd0
cmp dword [ebp - 0xd4], 1
jne 0x12a228d3
xor ecx, ecx
cmp dword [ebp - 0xdc], ecx
setne cl
mov dword [ebp - 0xd4], ecx
cmp eax, esi
je 0x12a227ae
test byte [eax + 0x1c], 2
je 0x12a227ae
cmp byte [eax + 0x19], 4
jb 0x12a227ae
push ecx
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
mov eax, dword [0x12a37010]
cmp dword [ebp - 0xd4], 1
jne 0x12a228d3
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
call fcn.12a2164f
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xdc], 0
lea ecx, [ebp - 0xd0]
call fcn.12a1aeb5
mov eax, dword [ebx]
and dword [ebp - 0xe0], 0
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [eax + 4]
test eax, eax
jbe 0x12a22876
push 0
push 0
lea eax, [ebp - 0xd6]
push eax
lea eax, [ebp - 0xd5]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xe0]
mov ecx, ebx
call fcn.12a21fcb
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x12a22861
cmp byte [ebp - 0xd5], 0
jne 0x12a22861
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0xe8], eax
jne 0x12a22861
mov al, byte [ebp - 0xd6]
and al, byte [ebp + 0x14]
cmp al, byte [ebp + 0x14]
je 0x12a228c3
mov eax, dword [ebx]
inc dword [ebp - 0xe0]
mov ecx, ebx
call dword [eax + 4]
cmp dword [ebp - 0xe0], eax
jb 0x12a227fd
push dword [ebp + 0x14]
lea eax, [ebp - 0x70]
push dword [ebp + 0x10]
mov ecx, ebx
push eax
call fcn.12a222d9
movzx ebx, al
mov dword [ebp - 0xd4], ebx
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a228b4
test byte [eax + 0x1c], 2
je 0x12a228b4
cmp byte [eax + 0x19], 4
jb 0x12a228b4
push ebx
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
xor eax, eax
inc eax
cmp ebx, eax
jne 0x12a228c3
mov ecx, dword [ebp - 0xe4]
mov dword [ecx], eax
lea ecx, [ebp - 0xd0]
call fcn.12a1aef4
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a228f7
test byte [eax + 0x1c], 1
je 0x12a228f7
cmp byte [eax + 0x19], 5
jb 0x12a228f7
push dword [ebp - 0xd4]
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
lea ecx, [ebp - 0x70]
call fcn.12a1aef4
mov eax, dword [ebp - 0xd4]
call fcn.12a1a0c0
ret 0x14