Function at 0x101a3fb
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 0x101a45f
test byte [eax + 0x1c], 4
je 0x101a45f
cmp byte [eax + 0x19], 5
jb 0x101a45f
push ebx
push 0x1c6
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 0x101a492
cmp eax, esi
je 0x101a48a
test byte [eax + 0x1c], 4
je 0x101a48a
cmp byte [eax + 0x19], 2
jb 0x101a48a
push ecx
push ecx
push ebx
push 0x1c7
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01010e99
push 0x57
pop eax
jmp 0x101a667
test edi, edi
je 0x101a4bf
cmp edi, 1
je 0x101a4bf
cmp eax, esi
je 0x101a48a
test byte [eax + 0x1c], 4
je 0x101a48a
cmp byte [eax + 0x19], 2
jb 0x101a48a
push edi
push ebx
push 0x1c8
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x101a48a
call fcn.010421ed
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x101a50b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a64e
test byte [eax + 0x1c], 4
je 0x101a64e
cmp byte [eax + 0x19], 2
jb 0x101a64e
push edi
push ebx
push 0x1c9
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x101a64e
cmp dword [ebp - 0xc], 0
je 0x101a51c
mov ecx, dword [ebp + 0x10]
test dword [ebp - 0x10], ecx
jne 0x101a51c
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.010107bd
mov edi, eax
test edi, edi
je 0x101a57a
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a56c
test byte [eax + 0x1c], 4
je 0x101a56c
cmp byte [eax + 0x19], 2
jb 0x101a56c
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x1ca
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101478a
cmp edi, 2
jne 0x101a64e
jmp 0x101a649
push 0x5c
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x101a58d
inc eax
inc eax
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x1077e1c]
push 0
push eax
call fcn.0100c9db
mov edi, eax
test edi, edi
je 0x101a5da
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a64e
test byte [eax + 0x1c], 4
je 0x101a64e
cmp byte [eax + 0x19], 2
jb 0x101a64e
push edi
push ebx
push 0x1cb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x101a64e
cmp dword [ebp - 4], 0
jne 0x101a60b
push 1
push dword [ebp + 0x10]
call fcn.010497e5
test eax, eax
jne 0x101a64e
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a649
test byte [eax + 0x1c], 4
je 0x101a649
cmp byte [eax + 0x19], 2
jb 0x101a649
push ebx
push 0x1cc
jmp 0x101a63e
mov eax, dword [ebp + 0x10]
test dword [ebp - 0x10], eax
jne 0x101a64e
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x101a64e
mov eax, dword [0x1075004]
cmp eax, esi
je 0x101a649
test byte [eax + 0x1c], 4
je 0x101a649
cmp byte [eax + 0x19], 2
jb 0x101a649
push ebx
push 0x1cd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov edi, 0x1b61
push dword [ebp - 0x14]
call fcn.0105c21c
cmp dword [ebp - 4], 0
je 0x101a665
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14