Function at 0x40f260
Capabilities:
Get token membership
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x46f068]
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 - 0x80], 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.0040d500
lea eax, [ebp - 0x8c]
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 0x40f4e9
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x90]
push eax
push 0x14
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40f305
cmp dword [ebp - 0x90], 0
jmp 0x40f379
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f37c
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 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 0x40f372
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x84]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x88], 0
setne bl
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40f4e9
mov eax, esi
sub eax, 1
je 0x40f4b4
sub eax, 1
je 0x40f47a
sub eax, 1
je 0x40f408
push esi
lea eax, [ebp - 0x48]
push str.Invalid_SetupAction:__i
push eax
call fcn.004121b0
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.00403240
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40f3fe
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f712
push edx
push ecx
call fcn.00434e86
add esp, 8
mov ebx, 1
jmp 0x40f666
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.00411d40
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push 0
push 1
push esi
mov ecx, edi
call fcn.004107e0
lea ecx, [ebp - 0xa0]
call fcn.0040d540
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.00411d40
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push esi
call fcn.00410060
mov ebx, eax
jmp 0x40f663
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.00411d40
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.004107e0
mov ebx, eax
jmp 0x40f666
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.00411d40
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00410060
mov ebx, eax
jmp 0x40f666
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.00401590
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.00401590
sub esp, 0x18
mov byte [ebp - 4], bl
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.004035c0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x68]
call fcn.00402ea0
lea ecx, [ebp - 0x30]
call fcn.00401290
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
cmp edx, 0x10
jb 0x40f5cd
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f5c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f717
push edx
push ecx
call fcn.00434e86
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x40f605
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f5fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f71c
push edx
push ecx
call fcn.00434e86
add esp, 8
lea eax, [ebp - 0x48]
push str._EAC_Setup__Error__insufficient_rights.
push eax
call fcn.004121b0
add esp, 8
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
jb 0x40f622
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40f663
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f659
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f721
push edx
push ecx
call fcn.00434e86
add esp, 8
mov esi, dword [ebp - 0x80]
lea ecx, [ebp - 0xa0]
call fcn.0040d540
sub esp, 0x18
mov dword [edi + 0x40], ebx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.004032b0
push 2
mov ecx, edi
call fcn.00411d40
cmp byte [edi + 0x5c], 0
je 0x40f6be
cmp esi, 1
jne 0x40f6be
test ebx, ebx
jne 0x40f6be
push 0x9c4
lea ecx, [ebp - 0xa0]
call fcn.0040d500
mov ecx, eax
call fcn.0040d540
push ebx
push ebx
push 0x10
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40f6f4
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f726
push edx
push ecx
call fcn.00434e86
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.00434e45
mov esp, ebp
pop ebp
ret 8
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
int3