Function at 0x40ff30
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c478
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x47b008]
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 - 0x8c], 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.0040e480
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 0x410181
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x90]
push eax
push 0x14
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40ffd8
cmp dword [ebp - 0x90], 0
jmp 0x410043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410046
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 0x41003c
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 0x410181
mov eax, esi
sub eax, 1
je 0x41014c
sub eax, 1
je 0x410112
sub eax, 1
je 0x4100a0
push esi
lea eax, [ebp - 0x48]
push str.Invalid_SetupAction:__i
push eax
call fcn.00411e60
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.00403810
lea ecx, [ebp - 0x48]
call fcn.00401520
mov ebx, 1
jmp 0x41024a
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.00411870
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push 0
push 1
push esi
mov ecx, edi
call fcn.00410b80
lea ecx, [ebp - 0xa0]
call fcn.0040e4c0
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.00411870
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push esi
call fcn.004107c0
mov ebx, eax
jmp 0x410244
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.00411870
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.00410b80
mov ebx, eax
jmp 0x41024a
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.00411870
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.004107c0
mov ebx, eax
jmp 0x41024a
push 0x17
push str.Insufficient_privileges
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov ebx, 2
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.004016e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
push 0x18
push str.setup_error.error_rights
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.004016e0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040fa00
mov esi, eax
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x410228
mov ecx, eax
call fcn.00401520
mov ecx, dword [esi]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x78]
call fcn.00401520
lea ecx, [ebp - 0x60]
call fcn.00401680
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401680
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0xa0]
call fcn.0040e4c0
sub esp, 0x18
mov dword [edi + 0x40], ebx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040a660
push 2
mov ecx, edi
call fcn.00411870
cmp byte [edi + 0x5c], 0
je 0x4102a2
cmp esi, 1
jne 0x4102a2
test ebx, ebx
jne 0x4102a2
push 0x9c4
lea ecx, [ebp - 0xa0]
call fcn.0040e480
mov ecx, eax
call fcn.0040e4c0
push ebx
push ebx
push 0x10
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x30]
call fcn.00401520
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.0042207c
mov esp, ebp
pop ebp
ret 8