Function at 0x101a427
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp edi, 1
sete cl
neg eax
sbb eax, eax
and eax, 0xffffff80
add eax, 0x100
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1001b8c
cmp eax, esi
je 0x101a48b
test byte [eax + 0x1c], 4
je 0x101a48b
cmp byte [eax + 0x19], 5
jb 0x101a48b
push ebx
push 0x1c9
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [0x1075004]
mov ecx, dword [ebp + 8]
or ecx, dword [ebp + 0xc]
jne 0x101a4be
cmp eax, esi
je 0x101a4b6
test byte [eax + 0x1c], 4
je 0x101a4b6
cmp byte [eax + 0x19], 2
jb 0x101a4b6
push ecx
push ecx
push ebx
push 0x1ca
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01010f30
push 0x57
pop eax
jmp 0x101a693
test edi, edi
je 0x101a4eb
cmp edi, 1
je 0x101a4eb
cmp eax, esi
je 0x101a4b6
test byte [eax + 0x1c], 4
je 0x101a4b6
cmp byte [eax + 0x19], 2
jb 0x101a4b6
push edi
push ebx
push 0x1cb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x101a4b6
call fcn.010425fd
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x101a537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a67a
test byte [eax + 0x1c], 4
je 0x101a67a
cmp byte [eax + 0x19], 2
jb 0x101a67a
push edi
push ebx
push 0x1cc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x101a67a
cmp dword [ebp - 0xc], 0
je 0x101a548
mov ecx, dword [ebp + 0x10]
test dword [ebp - 0x10], ecx
jne 0x101a548
mov dword [ebp - 8], eax
push dword [ebp + 0x18]
mov ecx, dword [0x1077e1c]
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01010854
mov edi, eax
test edi, edi
je 0x101a5a6
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a598
test byte [eax + 0x1c], 4
je 0x101a598
cmp byte [eax + 0x19], 2
jb 0x101a598
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x1cd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01014964
cmp edi, 2
jne 0x101a67a
jmp 0x101a675
push 0x5c
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x101a5b9
inc eax
inc eax
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x1077e1c]
push 0
push eax
call fcn.0100ca72
mov edi, eax
test edi, edi
je 0x101a606
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a67a
test byte [eax + 0x1c], 4
je 0x101a67a
cmp byte [eax + 0x19], 2
jb 0x101a67a
push edi
push ebx
push 0x1ce
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x101a67a
cmp dword [ebp - 4], 0
jne 0x101a637
push 1
push dword [ebp + 0x10]
call fcn.01049c80
test eax, eax
jne 0x101a67a
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a675
test byte [eax + 0x1c], 4
je 0x101a675
cmp byte [eax + 0x19], 2
jb 0x101a675
push ebx
push 0x1cf
jmp 0x101a66a
mov eax, dword [ebp + 0x10]
test dword [ebp - 0x10], eax
jne 0x101a67a
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x101a67a
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a675
test byte [eax + 0x1c], 4
je 0x101a675
cmp byte [eax + 0x19], 2
jb 0x101a675
push ebx
push 0x1d0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov edi, 0x1b61
push dword [ebp - 0x14]
call fcn.0105c5dc
cmp dword [ebp - 4], 0
je 0x101a691
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14