Function at 0x4950aa
Capabilities:
Compare security identifiers

Disassembly:
push 0xe0
mov eax, 0x4af013
call fcn.004a95a1
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xe4], esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xec], ebx
mov ecx, dword [0x4b70c8]
cmp ecx, 0x4b70c8
je 0x4950fb
test byte [ecx + 0x1c], 1
je 0x4950fb
cmp byte [ecx + 0x19], 5
jb 0x4950fb
mov eax, dword [ebp + 0xc]
movzx eax, al
push eax
push dword [ebp + 8]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00494b17
and dword [ebp - 0xd8], 0
lea ecx, [ebp - 0xd0]
call fcn.004943f3
and dword [ebp - 4], 0
lea eax, [ebp - 0xd8]
and dword [ebx], 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov ebx, eax
mov ecx, dword [0x4b70c8]
mov edi, 0x410160
cmp ecx, 0x4b70c8
je 0x49515a
test byte [ecx + 0x1c], 2
je 0x49515a
cmp byte [ecx + 0x19], 4
jb 0x49515a
push ebx
push dword [ecx + 0x14]
mov edx, edi
push dword [ecx + 0x10]
push 0x19
pop ecx
call fcn.0041610f
mov ecx, dword [0x4b70c8]
cmp ebx, 1
jne 0x495341
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
test eax, eax
setne bl
cmp ecx, 0x4b70c8
je 0x4951a1
test byte [ecx + 0x1c], 2
je 0x4951a1
cmp byte [ecx + 0x19], 4
jb 0x4951a1
push ebx
push dword [ecx + 0x14]
mov edx, edi
push dword [ecx + 0x10]
push 0x1a
pop ecx
call fcn.0041610f
mov eax, dword [ebp - 0xd8]
mov ecx, dword [0x4b70c8]
cmp ebx, 1
jne 0x495341
push eax
lea ecx, [ebp - 0xd0]
call fcn.00494438
push dword [ebp - 0xd8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xd8], 0
lea ecx, [ebp - 0x70]
call fcn.004943f3
xor edi, edi
mov byte [ebp - 4], bl
cmp dword [esi + 0x14], edi
jbe 0x4952dc
lea eax, [esi + 0x10]
mov dword [ebp - 0xe8], eax
push edi
mov ecx, eax
call fcn.0042370a
lea ecx, [ebp - 0x70]
mov eax, dword [eax]
mov dword [ebp - 0xdc], eax
lea esi, [eax + 4]
cmp ecx, esi
je 0x49525a
mov eax, dword [esi + 0x4c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x50]
push eax
call fcn.0041715f
lea eax, [esi + 0x54]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041715f
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041715f
mov al, byte [esi + 0x48]
mov byte [ebp - 0x28], al
test al, al
je 0x495254
add esi, 4
push esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push esi
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x49537b
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax]
mov dword [ebp - 0xe0], ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4bb544]
mov ecx, dword [ebp - 0xdc]
call esi
mov byte [ebp - 0xd1], al
mov eax, dword [ebp - 0xdc]
mov cl, byte [eax + 0x68]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 0xd2], cl
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4952c5
cmp byte [ebp - 0xd1], 0
jne 0x4952c5
mov eax, dword [ebp - 0xe0]
cmp eax, dword [ebp + 8]
jne 0x4952c5
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0xd2]
and cl, al
cmp cl, al
je 0x49532e
mov esi, dword [ebp - 0xe4]
inc edi
cmp edi, dword [esi + 0x14]
jae 0x4952dc
mov eax, dword [ebp - 0xe8]
jmp 0x4951e8
push dword [ebp + 0xc]
lea eax, [ebp - 0xd0]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.0041aadd
movzx ebx, al
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49531f
test byte [eax + 0x1c], 2
je 0x49531f
cmp byte [eax + 0x19], 4
jb 0x49531f
push ebx
push dword [eax + 0x14]
mov edx, 0x410160
push dword [eax + 0x10]
push 0x1b
pop ecx
call fcn.0041610f
xor ecx, ecx
inc ecx
cmp ebx, ecx
jne 0x49532e
mov eax, dword [ebp - 0xec]
mov dword [eax], ecx
lea ecx, [ebp - 0x70]
call fcn.0041a6cc
mov ecx, dword [0x4b70c8]
mov edi, 0x410160
cmp ecx, 0x4b70c8
je 0x495366
test byte [ecx + 0x1c], 1
je 0x495366
cmp byte [ecx + 0x19], 5
jb 0x495366
push ebx
push dword [ecx + 0x14]
mov edx, edi
push dword [ecx + 0x10]
push 0x1c
pop ecx
call fcn.0041610f
lea ecx, [ebp - 0xd0]
call fcn.0041a6cc
mov eax, ebx
call fcn.004a9550
ret 0xc
call fcn.00424c49
mov ecx, eax
mov byte [ebp - 0x28], 0
call fcn.00417459
int3