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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455eed
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x46f008]
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]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
push 0x2bc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 1
call fcn.0040d1f0
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 0x40f2aa
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 0x40f0b0
cmp dword [ebp - 0x90], 0
jmp 0x40f124
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f127
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 0x40f11d
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 0x40f2aa
mov eax, esi
sub eax, 1
je 0x40f26f
sub eax, 1
je 0x40f230
sub eax, 1
je 0x40f1b3
push esi
lea eax, [ebp - 0x30]
push str.Invalid_SetupAction:__i
push eax
call fcn.004123f0
add esp, 0xc
lea ecx, [ebp - 0x48]
push eax
call fcn.00403700
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40f1a9
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f19f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f500
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov ebx, 1
jmp 0x40f454
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
push 1
mov ecx, edi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov byte [ebp - 4], 1
call fcn.00411fe0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
push 0
push 1
push esi
mov ecx, edi
call fcn.00410790
lea ecx, [ebp - 0xa0]
call fcn.0040d230
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
push 0
mov ecx, edi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov byte [ebp - 4], 1
call fcn.00411fe0
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push esi
call fcn.0040ff20
mov ebx, eax
jmp 0x40f451
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
push 1
mov ecx, edi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov byte [ebp - 4], 1
call fcn.00411fe0
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.00410790
mov ebx, eax
jmp 0x40f454
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
push 0
mov ecx, edi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov byte [ebp - 4], 1
call fcn.00411fe0
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.0040ff20
mov ebx, eax
jmp 0x40f454
mov ebx, 2
mov dword [ebp - 0x78], 0
push 0x17
push str.Insufficient_privileges
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov byte [ebp - 4], 1
call fcn.00401940
mov dword [ebp - 0x60], 0
push 0x18
push str.setup_error.error_rights
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 3
call fcn.00401940
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x60]
mov ecx, esp
push eax
call fcn.00403b00
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x68]
call fcn.00403220
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403700
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40f36f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f365
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f505
push edx
push ecx
call fcn.0041fbbf
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 0x10
jb 0x40f3bb
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f505
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x40f3f3
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f505
push edx
push ecx
call fcn.0041fbbf
add esp, 8
lea eax, [ebp - 0x30]
push str._EAC_Setup__Error__insufficient_rights.
push eax
call fcn.004123f0
add esp, 8
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
jb 0x40f410
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40f451
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f50a
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov esi, dword [ebp - 0x80]
lea ecx, [ebp - 0xa0]
call fcn.0040d230
sub esp, 0x18
mov dword [edi + 0x40], ebx
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00403820
push 2
mov ecx, edi
call fcn.00411fe0
cmp byte [edi + 0x5c], 0
je 0x40f4ac
cmp esi, 1
jne 0x40f4ac
test ebx, ebx
jne 0x40f4ac
push 0x9c4
lea ecx, [ebp - 0xa0]
call fcn.0040d1f0
mov ecx, eax
call fcn.0040d230
push ebx
push ebx
push 0x10
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40f4e2
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f4d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f50f
push edx
push ecx
call fcn.0041fbbf
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.0041fb7c
mov esp, ebp
pop ebp
ret 8
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
int3