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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
je 0x1001f799
test esi, esi
je 0x1001f799
push ebx
lea eax, [ebp - 0x34]
mov dword [edi], 0
push eax
xor ebx, ebx
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push eax
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], ebx
push eax
push ebx
push esi
push ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001f776
push dword [ebp - 0x20]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1001f776
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1001f74f
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1001f74f
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 4
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x1001f74f
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001f74f
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 0x1001f72a
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1001f722
xor eax, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1001f730
jmp 0x1001f6c0
lea ecx, [ebp - 0x28]
push ecx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1001f730
mov eax, dword [ebp - 0x28]
add eax, 8
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1001f714
mov eax, dword [ebp - 0x28]
xor ebx, ebx
cmp byte [eax], 1
mov eax, dword [ebp + 0x14]
sete bl
dec eax
push eax
inc ebx
xor esi, esi
call fcn.1001fc70
add esp, 4
inc eax
cmp esi, eax
jne 0x1001f70b
cmp dword [edi], 2
je 0x1001f70b
mov dword [edi], ebx
inc esi
cmp esi, 0x20
jl 0x1001f700
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jb 0x1001f6c0
jmp 0x1001f730
mov dword [edi], 0
jmp 0x1001f730
mov dword [edi], 1
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ecx
push 0
push eax
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x1001f76a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
test eax, eax
je 0x1001f776
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1001f784
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret 0x14