Function at 0x4145e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
test edi, edi
je 0x414614
mov eax, dword [edi]
push str.Inside_IsAdminToken_API
push str.ProcessUtils
push 0x49586c
push 0x1e
push edi
jmp 0x41465d
mov eax, dword [0x4b29c0]
test eax, eax
je 0x41463f
push str.Inside_IsAdminToken_API
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x414663
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x414663
mov eax, dword [ecx]
push str.Inside_IsAdminToken_API
push str.ProcessUtils
push 0x49586c
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor esi, esi
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
push 2
push ebx
mov dword [ebp - 0xc], esi
mov word [ebp - 8], 0x500
mov byte [ebp - 0x15], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41477a
call ebx
cmp eax, 0x7a
je 0x41477a
test edi, edi
je 0x414717
mov esi, dword [edi]
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
xor esi, esi
mov bl, byte [ebp - 0x15]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4146d8
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x4146e3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x414901
mov edx, dword [edi]
test bl, bl
mov eax, 0x49d700
mov ecx, 0x49a6f4
cmove ecx, eax
push ecx
push str.Inside_IsAdminToken_API__Return:__s
push str.ProcessUtils
push 0x49586c
push 0x1e
push edi
call dword [edx + 0x34]
jmp 0x41497f
cmp dword [0x4b29c0], esi
je 0x41474b
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
jmp 0x4146c7
mov edx, dword [0x4b29c4]
test edx, edx
je 0x4146c7
mov esi, dword [edx]
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x49586c
push 0x32
push dword [0x4b29c4]
jmp 0x4146bf
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push esi
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41480f
test edi, edi
je 0x4147ca
mov esi, dword [edi]
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
mov esi, dword [ebp - 0x1c]
add esp, 0x18
jmp 0x4146c7
cmp dword [0x4b29c0], 0
jne 0x41471f
mov edx, dword [0x4b29c4]
test edx, edx
je 0x4146c7
mov esi, dword [edx]
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x49586c
push 0x32
push dword [0x4b29c4]
call dword [esi + 0x34]
mov esi, dword [ebp - 0x1c]
add esp, 0x18
jmp 0x4146c7
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
setne al
test al, al
jne 0x4148bf
test edi, edi
je 0x414852
mov esi, dword [edi]
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_initialize_admin_SID_with_error__d
jmp 0x4147af
cmp dword [0x4b29c0], 0
je 0x414887
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_initialize_admin_SID_with_error__d
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
jmp 0x4146c7
mov edx, dword [0x4b29c4]
test edx, edx
je 0x4146c7
mov esi, dword [edx]
call ebx
push eax
push str.Inside_IsAdminToken_API__Unable_to_initialize_admin_SID_with_error__d
push str.ProcessUtils
push 0x49586c
push 0x32
push dword [0x4b29c4]
call dword [esi + 0x34]
mov esi, dword [ebp - 0x1c]
add esp, 0x18
jmp 0x4146c7
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4146ca
add esi, 8
nop dword [eax]
push dword [esi - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4148e5
test byte [esi], 4
jne 0x4148f7
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 8
cmp ebx, dword [eax]
jb 0x4148d0
mov esi, eax
jmp 0x4146c7
mov esi, dword [ebp - 0x1c]
mov bl, 1
jmp 0x4146ca
mov ecx, dword [0x4b29c0]
test ecx, ecx
je 0x41494e
mov edx, 0x49d700
test bl, bl
mov eax, 0x49a6f4
cmove eax, edx
push eax
push str.Inside_IsAdminToken_API__Return:__s
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call ecx
add esp, 0x1c
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4b29c4]
test edx, edx
je 0x414982
mov ecx, dword [edx]
test bl, bl
mov eax, 0x49a6f4
mov esi, 0x49d700
cmove eax, esi
push eax
push str.Inside_IsAdminToken_API__Return:__s
push str.ProcessUtils
push 0x49586c
push 0x1e
push edx
call dword [ecx + 0x34]
add esp, 0x18
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045922f
mov esp, ebp
pop ebp
ret