Function at 0x1079017
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x109a598
call fcn.01077478
sub esp, 0xdc
mov eax, dword [0x10a64dc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0xe4], eax
mov eax, dword [0x10a6184]
mov esi, 0x10a6184
cmp eax, esi
push edi
mov edi, dword [ebp + 0xc]
je 0x1079075
test byte [eax + 0x1c], 1
je 0x1079075
cmp byte [eax + 0x19], 5
jb 0x1079075
movzx ecx, byte [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push 0x10080a8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ef6e
and dword [ebp - 0xdc], 0
lea ecx, [ebp - 0x70]
call fcn.01060cb6
mov eax, dword [ebp - 0xe4]
and dword [eax], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0xdc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov dword [ebp - 0xd4], eax
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x10790da
test byte [eax + 0x1c], 2
je 0x10790da
cmp byte [eax + 0x19], 4
jb 0x10790da
push dword [ebp - 0xd4]
mov edi, 0x10080a8
push edi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [0x10a6184]
jmp 0x10790df
mov edi, 0x10080a8
cmp dword [ebp - 0xd4], 1
jne 0x1079246
xor ecx, ecx
cmp dword [ebp - 0xdc], ecx
setne cl
cmp eax, esi
mov dword [ebp - 0xd4], ecx
je 0x1079121
test byte [eax + 0x1c], 2
je 0x1079121
cmp byte [eax + 0x19], 4
jb 0x1079121
push ecx
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [0x10a6184]
cmp dword [ebp - 0xd4], 1
jne 0x1079246
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
call fcn.01060c0f
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xdc], 0
lea ecx, [ebp - 0xd0]
call fcn.01060cb6
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 0x10791e9
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.01078d8b
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10791d4
cmp byte [ebp - 0xd5], 0
jne 0x10791d4
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0xe8], eax
jne 0x10791d4
mov al, byte [ebp - 0xd6]
and al, byte [ebp + 0x14]
cmp al, byte [ebp + 0x14]
je 0x1079236
mov eax, dword [ebx]
inc dword [ebp - 0xe0]
mov ecx, ebx
call dword [eax + 4]
cmp dword [ebp - 0xe0], eax
jb 0x1079170
push dword [ebp + 0x14]
lea eax, [ebp - 0x70]
push dword [ebp + 0x10]
mov ecx, ebx
push eax
call fcn.010119cc
movzx ebx, al
mov eax, dword [0x10a6184]
cmp eax, esi
mov dword [ebp - 0xd4], ebx
je 0x1079227
test byte [eax + 0x1c], 2
je 0x1079227
cmp byte [eax + 0x19], 4
jb 0x1079227
push ebx
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
xor eax, eax
inc eax
cmp ebx, eax
jne 0x1079236
mov ecx, dword [ebp - 0xe4]
mov dword [ecx], eax
lea ecx, [ebp - 0xd0]
call fcn.01010e04
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x107926a
test byte [eax + 0x1c], 1
je 0x107926a
cmp byte [eax + 0x19], 5
jb 0x107926a
push dword [ebp - 0xd4]
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
lea ecx, [ebp - 0x70]
call fcn.01010e04
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xd4]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01076f63
leave
ret 0x14