Function at 0x10d12c5
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x10d1309
test byte [eax + 0x1c], 1
je 0x10d1309
cmp byte [eax + 0x19], 5
jb 0x10d1309
mov esi, 0x100fe68
push esi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
jmp 0x10d130e
mov esi, 0x100fe68
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
cmp eax, ebx
je 0x10d133e
test byte [eax + 0x1c], 1
je 0x10d133e
cmp byte [eax + 0x19], 5
jb 0x10d133e
push dword [ebp + 8]
push esi
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
cmp dword [ebp + 0xc], edi
jne 0x10d137e
cmp dword [ebp + 0x10], edi
jne 0x10d137e
mov dword [ebp - 4], 0x80070057
cmp eax, ebx
je 0x10d145f
test byte [eax + 0x1c], 1
je 0x10d145f
cmp byte [eax + 0x19], 2
jb 0x10d145f
push esi
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x10d163d
push edi
mov ebx, 0x2200000
push ebx
push 3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
push 0x60000
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10d13eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d13b6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d145f
test byte [eax + 0x1c], 1
je 0x10d145f
cmp byte [eax + 0x19], 2
jb 0x10d145f
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x14
jmp 0x10d15cc
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x10d14bd
push eax
push dword [ebp + 0x10]
mov esi, 0x80000004
push eax
push eax
push esi
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x10d14b6
jle 0x10d1421
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d145a
test byte [eax + 0x1c], 1
je 0x10d145a
cmp byte [eax + 0x19], 2
jb 0x10d145a
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x100fe68
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010d100f
mov eax, dword [0x111024c]
mov esi, 0x100fe68
cmp dword [ebp - 0xc], 0
je 0x10d1477
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xc], 0
mov eax, dword [0x111024c]
cmp dword [ebp - 8], 0xffffffff
je 0x10d148b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d14ac
test byte [eax + 0x1c], 1
je 0x10d14ac
cmp byte [eax + 0x19], 5
jb 0x10d14ac
push esi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0x100fe68
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x10d1647
lea ecx, [ebp - 0xc]
push ecx
push eax
push eax
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x10d152b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d14f6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d145f
test byte [eax + 0x1c], 1
je 0x10d145f
cmp byte [eax + 0x19], 2
jb 0x10d145f
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x16
jmp 0x10d15cc
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10d1647
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], eax
je 0x10d1552
mov dword [ebp - 0x10], 0x80000005
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x18], 0xa0000
je 0x10d1566
mov dword [ebp - 0x18], 0xe0000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
push 3
push 0
push 3
push dword [ebp - 0x18]
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10d15d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d159c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d145f
test byte [eax + 0x1c], 1
je 0x10d145f
cmp byte [eax + 0x19], 2
jb 0x10d145f
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10d163d
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x10d1647
jle 0x10d15ff
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d145f
test byte [eax + 0x1c], 1
je 0x10d145f
cmp byte [eax + 0x19], 2
jb 0x10d145f
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010d100f
mov eax, dword [0x111024c]
jmp 0x10d145f
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d145f
test byte [eax + 0x1c], 1
je 0x10d145f
cmp byte [eax + 0x19], 5
jb 0x10d145f
push dword [ebp + 8]
push esi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x10d163d