Function at 0x42c1e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467e60
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x47c5a8]
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
xor esi, esi
push 0xe
push str.IsCurUserAdmin
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x54], 0
call fcn.00407d70
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x78]
push eax
push 8
push edi
mov dword [ebp - 0x84], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42c281
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x42c26e
lea eax, [ebp - 0x54]
push str.Cannot_open_process_token
push eax
call fcn.0042bd60
add esp, 8
jmp 0x42c3df
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push edx
call esi
mov eax, dword [ebp - 0x74]
push eax
call fcn.004423ec
mov edx, dword [ebp - 0x74]
add esp, 4
lea ecx, [ebp - 0x74]
push ecx
push edx
mov ebx, eax
mov eax, dword [ebp - 0x78]
push ebx
push 2
push eax
call esi
test eax, eax
jne 0x42c2d7
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x42c2c4
lea eax, [ebp - 0x54]
push str.GetTokenInformation_error
push eax
call fcn.0042bd60
add esp, 8
jmp 0x42c3d2
test ebx, ebx
jne 0x42c2fa
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x42c2e7
lea eax, [ebp - 0x54]
push str.GetTokenInformation_error_with_NULL_
push eax
call fcn.0042bd60
add esp, 8
jmp 0x42c3df
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42c395
push str.Cannot_create_SID_for_Administrators_with_Err:
lea ecx, [ebp - 0x70]
call fcn.00407810
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push 0x46cd20
push eax
call fcn.00440eaa
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c350
sub eax, edx
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00413820
mov ecx, dword [ebp - 0x70]
mov eax, 0x10
cmp dword [ebp - 0x5c], eax
jae 0x42c376
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
jae 0x42c381
lea eax, [ebp - 0x54]
push ecx
push eax
call fcn.0042bd60
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00407890
jmp 0x42c3d2
xor esi, esi
cmp dword [ebx], esi
jbe 0x42c3c8
lea edi, [ebx + 4]
mov edi, edi
mov edx, dword [edi]
mov eax, dword [ebp - 0x80]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42c3bb
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x42c3a0
jmp 0x42c3c2
mov dword [ebp - 0x7c], 1
mov edi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x42c3df
push ebx
call fcn.004423e1
add esp, 4
mov eax, dword [ebp - 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x42c3f0
push eax
call esi
cmp edi, 0xffffffff
je 0x42c3f8
push edi
call esi
cmp dword [ebp - 0x40], 0x10
jb 0x42c40a
mov edx, dword [ebp - 0x54]
push edx
call fcn.004401d7
add esp, 4
mov eax, dword [ebp - 0x7c]
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.0043fe5a
mov esp, ebp
pop ebp
ret