Function at 0x415e50
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
test ebx, ebx
je 0x415e81
mov esi, dword [ebx]
push str.Inside_IsAdminToken_API
push str.ProcessUtils
push 0x4aea60
push 0x1e
push ebx
jmp 0x415ed2
mov esi, dword [0x4c8c94]
test esi, esi
je 0x415eb5
push str.Inside_IsAdminToken_API
push 0x4aea60
push 0x4aea60
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x18
jmp 0x415ee2
mov eax, dword [0x4c8c98]
test eax, eax
je 0x415ee2
mov esi, dword [eax]
push str.Inside_IsAdminToken_API
push str.ProcessUtils
push 0x4aea60
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x49e2d4]
call esi
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 edi
mov dword [ebp - 0xc], esi
mov word [ebp - 8], 0x500
mov byte [ebp - 0x15], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x415fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x415fcb
test ebx, ebx
je 0x415f42
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x4aea60
push 0x32
push ebx
jmp 0x415fb4
cmp dword [0x4c8c94], esi
je 0x415f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x4c8c94]
mov ecx, esi
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push 0x4aea60
push 0x4aea60
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x49e2d4]
call esi
add esp, 0x1c
xor esi, esi
jmp 0x4161a9
mov ecx, dword [0x4c8c98]
test ecx, ecx
je 0x4161a9
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x4aea60
push 0x32
push dword [0x4c8c98]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x18
xor esi, esi
jmp 0x4161a9
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 edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41609e
test ebx, ebx
je 0x416028
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x4aea60
push 0x32
push ebx
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x18
jmp 0x4161a6
cmp dword [0x4c8c94], 0
je 0x41606b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x4c8c94]
mov ecx, esi
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push 0x4aea60
push 0x4aea60
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x49e2d4]
call esi
add esp, 0x1c
jmp 0x4161a6
mov ecx, dword [0x4c8c98]
test ecx, ecx
je 0x4161a9
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Inside_IsAdminToken_API__Unable_to_fetch_token_information_with_error__d
push str.ProcessUtils
push 0x4aea60
push 0x32
push dword [0x4c8c98]
jmp 0x416013
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 byte [ebp - 0x1d]
test eax, eax
jne 0x41616d
test ebx, ebx
je 0x4160f0
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Inside_IsAdminToken_API__Unable_to_initialize_admin_SID_with_error__d
push str.ProcessUtils
push 0x4aea60
push 0x32
push ebx
jmp 0x41615a
cmp dword [0x4c8c94], 0
je 0x416130
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x4c8c94]
mov ecx, esi
push eax
push str.Inside_IsAdminToken_API__Unable_to_initialize_admin_SID_with_error__d
push 0x4aea60
push 0x4aea60
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x49e2d4]
call esi
add esp, 0x1c
jmp 0x41616a
mov ecx, dword [0x4c8c98]
test ecx, ecx
je 0x41616d
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Inside_IsAdminToken_API__Unable_to_initialize_admin_SID_with_error__d
push str.ProcessUtils
push 0x4aea60
push 0x32
push dword [0x4c8c98]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x18
mov esi, dword [ebp - 0x1c]
cmp byte [ebp - 0x1d], 0
je 0x4161a9
xor edi, edi
cmp dword [esi], edi
jbe 0x4161a9
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 0x416195
test byte [esi], 4
jne 0x4161a2
mov eax, dword [ebp - 0x1c]
inc edi
add esi, 8
cmp edi, dword [eax]
jb 0x416180
jmp 0x4161a6
mov byte [ebp - 0x15], 1
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4161b7
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x4161c2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x416210
cmp byte [ebp - 0x15], 0
mov ecx, 0x4b2fb8
mov esi, dword [ebx]
mov eax, 0x4b0824
cmove eax, ecx
push eax
push str.Inside_IsAdminToken_API__Return:__s
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.ProcessUtils
push 0x4aea60
push 0x1e
push ebx
call dword [0x49e2d4]
call esi
add esp, 0x18
mov al, byte [ebp - 0x15]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4c8c94]
test esi, esi
je 0x416268
mov bl, byte [ebp - 0x15]
mov ecx, 0x4b2fb8
test bl, bl
mov eax, 0x4b0824
cmove eax, ecx
mov ecx, esi
push eax
push str.Inside_IsAdminToken_API__Return:__s
push 0x4aea60
push 0x4aea60
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call dword [0x49e2d4]
call esi
add esp, 0x1c
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4c8c98]
test ecx, ecx
je 0x4161fc
mov bl, byte [ebp - 0x15]
mov edx, 0x4b2fb8
mov esi, dword [ecx]
test bl, bl
mov eax, 0x4b0824
cmove eax, edx
push eax
mov esi, dword [esi + 0x34]
push str.Inside_IsAdminToken_API__Return:__s
push str.ProcessUtils
push 0x4aea60
push 0x1e
push ecx
mov ecx, esi
call dword [0x49e2d4]
call esi
mov ecx, dword [ebp - 4]
add esp, 0x18
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046999a
mov esp, ebp
pop ebp
ret