Function at 0x10d12e8
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 [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x10d132c
test byte [eax + 0x1c], 1
je 0x10d132c
cmp byte [eax + 0x19], 5
jb 0x10d132c
mov esi, 0x100fe68
push esi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
jmp 0x10d1331
mov esi, 0x100fe68
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
cmp eax, ebx
je 0x10d1361
test byte [eax + 0x1c], 1
je 0x10d1361
cmp byte [eax + 0x19], 5
jb 0x10d1361
push dword [ebp + 8]
push esi
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
cmp dword [ebp + 0xc], edi
jne 0x10d13a1
cmp dword [ebp + 0x10], edi
jne 0x10d13a1
mov dword [ebp - 4], 0x80070057
cmp eax, ebx
je 0x10d1482
test byte [eax + 0x1c], 1
je 0x10d1482
cmp byte [eax + 0x19], 2
jb 0x10d1482
push esi
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x10d1660
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 0x10d140e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d13d9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d1482
test byte [eax + 0x1c], 1
je 0x10d1482
cmp byte [eax + 0x19], 2
jb 0x10d1482
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x14
jmp 0x10d15ef
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x10d14e0
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 0x10d14d9
jle 0x10d1444
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d147d
test byte [eax + 0x1c], 1
je 0x10d147d
cmp byte [eax + 0x19], 2
jb 0x10d147d
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x100fe68
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010d2cd1
mov eax, dword [0x111124c]
mov esi, 0x100fe68
cmp dword [ebp - 0xc], 0
je 0x10d149a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xc], 0
mov eax, dword [0x111124c]
cmp dword [ebp - 8], 0xffffffff
je 0x10d14ae
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d14cf
test byte [eax + 0x1c], 1
je 0x10d14cf
cmp byte [eax + 0x19], 5
jb 0x10d14cf
push esi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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 0x10d166a
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 0x10d154e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d1519
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d1482
test byte [eax + 0x1c], 1
je 0x10d1482
cmp byte [eax + 0x19], 2
jb 0x10d1482
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x16
jmp 0x10d15ef
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10d166a
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], eax
je 0x10d1575
mov dword [ebp - 0x10], 0x80000005
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x18], 0xa0000
je 0x10d1589
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 0x10d15fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d15bf
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d1482
test byte [eax + 0x1c], 1
je 0x10d1482
cmp byte [eax + 0x19], 2
jb 0x10d1482
push dword [ebp - 4]
push dword [ebp + 8]
push esi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10d1660
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 0x10d166a
jle 0x10d1622
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d1482
test byte [eax + 0x1c], 1
je 0x10d1482
cmp byte [eax + 0x19], 2
jb 0x10d1482
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.010d2cd1
mov eax, dword [0x111124c]
jmp 0x10d1482
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d1482
test byte [eax + 0x1c], 1
je 0x10d1482
cmp byte [eax + 0x19], 5
jb 0x10d1482
push dword [ebp + 8]
push esi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x10d1660