Function at 0x101225dd
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015620e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x44
xor eax, eax
pop edi
push edi
mov esi, eax
mov dword [ebp - 0x58], eax
push eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x5c], esi
call fcn.10035153
add esp, 0xc
mov dword [ebp - 0x68], edi
test ebx, ebx
jne 0x10122655
mov ecx, 0x15b3c8
call fcn.1006fff3
cmp dword [ebp - 0x58], esi
je 0x1012264e
mov dword [ebp - 4], 1
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x101227c1
cmp dword [0x10206f28], esi
je 0x1012266c
mov eax, dword [0x101ff0ac]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x101227c1
xor edi, edi
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x58]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10122699
mov ecx, 0x15b3c9
call fcn.1006fff3
jmp 0x10122790
lea eax, [ebp - 0x64]
push eax
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push dword [ebp - 0x58]
call edi
test eax, eax
je 0x101226c1
mov ecx, 0x15b3ca
call fcn.1006fff3
xor edi, edi
jmp 0x10122790
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101226d3
mov ecx, 0x15b3cb
jmp 0x101226b5
push dword [ebp - 0x64]
lea ecx, [ebp - 0x5c]
call fcn.10071b1b
test al, al
jne 0x101226f6
mov ecx, 0x15b3cc
call fcn.1006fff3
mov esi, dword [ebp - 0x5c]
xor edi, edi
jmp 0x10122790
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
push esi
push 2
push dword [ebp - 0x58]
call edi
test eax, eax
jne 0x10122713
mov ecx, 0x15b3cd
jmp 0x101226b5
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x10122730
mov ecx, 0x15b3ce
jmp 0x101226b5
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x5c]
call fcn.1007481e
mov ecx, dword [ebp - 0x60]
xor edi, edi
inc edi
cmp ecx, dword [eax]
jae 0x10122783
lea ecx, [ebp - 0x5c]
call fcn.1007481e
mov ecx, dword [ebp - 0x60]
push dword [eax + ecx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1012277c
lea ecx, [ebp - 0x5c]
call fcn.1007481e
mov ecx, dword [ebp - 0x60]
push dword [eax + ecx*8 + 4]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10122781
inc dword [ebp - 0x60]
jmp 0x10122734
mov dword [ebx], edi
mov eax, dword [ebx]
mov dword [0x10206f28], edi
mov dword [0x101ff0ac], eax
test esi, esi
je 0x101227a6
push esi
mov dword [ebp - 4], 4
call fcn.1003bf94
or dword [ebp - 4], 0xffffffff
pop ecx
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x101227bf
and dword [ebp - 0x58], 0
push eax
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
leave
ret