Function at 0x1001c8b0
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
test ebx, ebx
je 0x1001cabc
test esi, esi
je 0x1001cabc
lea eax, [ebp - 0x30]
mov dword [edi], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push esi
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001ca98
push dword [ebp - 0x1c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001ca98
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1001ca73
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1001ca73
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 4
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x1001ca73
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1001ca73
push 2
push 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 8
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x1001ca66
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001ca5e
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x1001ca6c
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1001ca6c
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1001ca50
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp byte [eax], 1
mov eax, dword [ebp + 0x14]
sete bl
xor esi, esi
inc ebx
dec eax
mov dword [ebp - 0x34], eax
push eax
call fcn.1001cf40
inc eax
add esp, 4
cmp esi, eax
jne 0x1001ca47
cmp dword [edi], 2
je 0x1001ca47
mov dword [edi], ebx
mov eax, dword [ebp - 0x34]
inc esi
cmp esi, 0x20
jl 0x1001ca32
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x10]
jb 0x1001c9f7
jmp 0x1001ca6c
mov dword [edi], 0
jmp 0x1001ca6c
mov dword [edi], 1
mov dword [ebp - 0x14], 1
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1001ca98
push eax
push 0
call ebx
push eax
call esi
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1001caa6
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x14