Function at 0x42ada0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528566
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x57a0ec]
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 dword [ebp - 0x444], ecx
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42adff
xor al, al
jmp 0x42b097
push dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea ecx, [ebp - 0x430]
push dword [ebp - 0x43c]
movq qword [ebp - 0x430], xmm0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
call fcn.00435f40
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push 0
push 0
push 2
push dword [ebp - 0x43c]
mov dword [ebp - 0x438], 0
call esi
or edi, 0xffffffff
test eax, eax
jne 0x42ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42ae87
push dword [ebp - 0x438]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x42ae8e
xor bl, bl
jmp 0x42b06d
push dword [sym.imp.KERNEL32.dll_GlobalFree]
xorps xmm0, xmm0
lea ecx, [ebp - 0x428]
movq qword [ebp - 0x428], xmm0
push ebx
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
call fcn.00436020
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x438]
push ebx
push 2
push dword [ebp - 0x43c]
call esi
test eax, eax
je 0x42b042
lea eax, [ebp - 0x440]
mov dword [ebp - 0x418], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x418]
mov word [ebp - 0x414], 0x500
push eax
mov dword [ebp - 0x440], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42b042
push dword [sym.imp.ADVAPI32.dll_FreeSid]
xorps xmm0, xmm0
lea ecx, [ebp - 0x420]
push dword [ebp - 0x440]
movq qword [ebp - 0x420], xmm0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
call fcn.00436100
xor edi, edi
cmp dword [ebx], edi
jbe 0x42affe
lea esi, [ebx + 4]
nop dword [eax]
nop dword [eax + eax]
push dword [esi]
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x42aff6
push 0x200
lea eax, [ebp - 0x410]
mov dword [ebp - 0x438], 0x100
push 0
push eax
call fcn.004f7830
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004f7830
add esp, 0x18
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x42b037
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x42af80
mov eax, dword [ebp - 0x444]
mov byte [eax], 0
mov esi, dword [ebp - 0x41c]
or edi, 0xffffffff
mov bl, 1
test esi, esi
je 0x42b044
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42b044
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x42b044
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x42b044
mov eax, dword [ebp - 0x444]
mov byte [eax], 1
jmp 0x42b007
xor bl, bl
mov esi, dword [ebp - 0x424]
test esi, esi
je 0x42b06d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42b06d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x42b06d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x42c]
test esi, esi
je 0x42b095
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42b095
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x42b095
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, bl
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.004927a4
mov esp, ebp
pop ebp
ret