Function at 0x413f80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d20
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x401800]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x68]
xor esi, esi
push eax
mov dword [ebp - 4], esi
push 8
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x68], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4141a2
xor ecx, ecx
call fcn.0040c4f0
mov edi, eax
test edi, edi
je 0x41403f
cmp dword [edi], 1
ja 0x41403f
lea eax, [ebp - 0x40]
push eax
call fcn.0041d99f
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x64]
push eax
push 0x40954c
lea eax, [ebp - 0x28]
push 0x14
push eax
call fcn.0041d982
movzx eax, word [ebp - 0x38]
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x409edc
push eax
lea eax, [ebp - 0x28]
push eax
push 0x40953c
call ebx
push eax
push 0x409eec
push edi
call fcn.0040c600
add esp, 0x1c
jmp 0x414045
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push 4
lea eax, [ebp - 0x74]
push eax
push 0x12
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4141a2
xor ecx, ecx
call fcn.0040c4f0
mov edi, eax
test edi, edi
je 0x4140cf
cmp dword [edi], 1
ja 0x4140cf
lea eax, [ebp - 0x40]
push eax
call fcn.0041d99f
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x64]
push eax
push 0x40954c
lea eax, [ebp - 0x28]
push 0x14
push eax
call fcn.0041d982
movzx eax, word [ebp - 0x38]
add esp, 0x1c
push dword [ebp - 0x74]
push 0x409edc
push eax
lea eax, [ebp - 0x28]
push eax
push 0x40953c
call ebx
push eax
push 0x409f1c
push edi
call fcn.0040c600
add esp, 0x20
cmp dword [ebp - 0x74], 3
mov dword [ebp - 0x70], 0
jne 0x4141ce
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x30], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x30]
mov word [ebp - 0x2c], 0x500
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x414194
xor ecx, ecx
call fcn.0040c4f0
mov edi, eax
test edi, edi
je 0x41417e
cmp dword [edi], 1
ja 0x41417e
lea eax, [ebp - 0x40]
push eax
call fcn.0041d99f
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x64]
push eax
push 0x40954c
lea eax, [ebp - 0x28]
push 0x14
push eax
call fcn.0041d982
movzx eax, word [ebp - 0x38]
add esp, 0x1c
push 0x409edc
push eax
lea eax, [ebp - 0x28]
push eax
push 0x40953c
call ebx
push eax
push 0x409f4c
push edi
call fcn.0040c600
add esp, 0x1c
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
cmovne esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4141a2
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4141b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041c3ed
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
jmp 0x4141a2