Function at 0x40f930
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x46b008]
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 edi, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push 0x2bc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], eax
call fcn.0040dea0
lea eax, [ebp - 0x88]
xor bl, bl
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40fbb3
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x8c]
push eax
push 0x14
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40f9d8
cmp dword [ebp - 0x8c], 0
jmp 0x40fa43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fa46
lea eax, [ebp - 0x80]
mov dword [ebp - 0x84], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40fa3c
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x80]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x84], 0
setne bl
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40fbb3
mov eax, esi
sub eax, 1
je 0x40fb7e
sub eax, 1
je 0x40fb44
sub eax, 1
je 0x40fad2
push esi
lea eax, [ebp - 0x60]
push str.Invalid_SetupAction:__i
push eax
call fcn.004123e0
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.00403310
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x40fac8
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fabe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd80
push edx
push ecx
call fcn.0041b677
add esp, 8
mov esi, 1
jmp 0x40fcd0
sub esp, 0x18
xor ecx, ecx
mov eax, esp
push 1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, edi
call fcn.00411c30
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push 0
push 1
push esi
mov ecx, edi
call fcn.00410aa0
lea ecx, [ebp - 0xa0]
call fcn.0040df30
sub esp, 0x18
xor ecx, ecx
mov eax, esp
push ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, edi
call fcn.00411c30
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push esi
call fcn.00410370
mov esi, eax
jmp 0x40fcd0
sub esp, 0x18
xor ecx, ecx
mov eax, esp
push 1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, edi
call fcn.00411c30
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.00410aa0
mov esi, eax
jmp 0x40fcd0
sub esp, 0x18
xor ecx, ecx
mov eax, esp
push ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, edi
call fcn.00411c30
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00410370
mov esi, eax
jmp 0x40fcd0
push 0x17
push str.Insufficient_privileges
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov esi, 2
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.004015a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
push 0x18
push str.setup_error.error_rights
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.004015a0
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.004035a0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x68]
call fcn.00402ff0
lea ecx, [ebp - 0x30]
call fcn.004012a0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 0x10
jb 0x40fc98
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd85
push edx
push ecx
call fcn.0041b677
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x40fcd0
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fcc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd8a
push edx
push ecx
call fcn.0041b677
add esp, 8
lea ecx, [ebp - 0xa0]
call fcn.0040df30
sub esp, 0x18
mov dword [edi + 0x40], esi
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403380
push 2
mov ecx, edi
call fcn.00411c30
cmp byte [edi + 0x5c], 0
je 0x40fd2c
cmp dword [ebp - 0x90], 1
jne 0x40fd2c
test esi, esi
jne 0x40fd2c
push 0x9c4
lea ecx, [ebp - 0xa0]
call fcn.0040dea0
mov ecx, eax
call fcn.0040df30
push esi
push esi
push 0x10
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40fd62
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd8f
push edx
push ecx
call fcn.0041b677
add esp, 8
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.0041b636
mov esp, ebp
pop ebp
ret 8
call fcn.00436a99
call fcn.00436a99
call fcn.00436a99
call fcn.00436a99
int3