Function at 0x466571
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0045bf73
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], eax
call fcn.0044e9d1
lea edx, [esp + 0x28]
lea ecx, [esp + 0x40]
call fcn.0048071a
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.00481b53
xor esi, esi
lea ecx, [esp + 0x40]
push edi
inc esi
push esi
call fcn.004510a8
push edi
push esi
lea ecx, [esp + 0x30]
call fcn.0044ea00
push str.OnlyForkInstallDependent
lea ecx, [esp + 0x2c]
call fcn.00450d66
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00466b6d
mov edx, eax
mov ecx, 0x564124
call fcn.00466c7a
push edi
push esi
lea ecx, [esp + 0x30]
mov bl, al
call fcn.004510a8
mov eax, str.wsWAE.log
test bl, bl
mov ecx, 0x564128
cmove ecx, eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00450d66
lea ecx, [esp + 0x28]
call fcn.00465d43
push edi
push esi
lea ecx, [esp + 0x30]
call fcn.004510a8
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x59535c], edi
je 0x466672
movzx eax, bl
push eax
call esi
push eax
push str._INFO___d___start__fork__d_.
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x14
push 0x465f28
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
xor ecx, ecx
mov word [esp + 0x24], 0x500
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x48]
mov dword [esp + 0x38], ecx
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4666e2
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 0x10]
test eax, eax
setne al
xor ecx, ecx
test al, al
cmovne ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], edi
jne 0x46671a
cmp dword [0x59535c], edi
je 0x466708
call esi
push eax
push str._ERROR___d___You_must_be_logged_in_as_administrator_when_installing_this_program.
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
test bl, bl
jne 0x466761
push 0x10
push 0x5641cc
push str.You_must_be_logged_in_as_administrator_when_installing_this_program.
jmp 0x466759
mov byte [0x595bc9], bl
call fcn.0046a1a6
test al, al
jne 0x466769
cmp dword [0x59535c], edi
je 0x466749
call esi
push eax
push str._ERROR___d___LoadLocalXml_failed_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
test bl, bl
jne 0x466761
push 0x10
push 0x564288
push str.Load_product_xml_error.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or edi, 0xffffffff
jmp 0x466b4b
call fcn.0046c322
or edi, 0xffffffff
test bl, bl
je 0x466864
push str.HostLang
lea ecx, [esp + 0x44]
call fcn.00450d66
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.00466b6d
push eax
call fcn.0046d2bf
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.004510a8
push str.HostVersion
lea ecx, [esp + 0x44]
call fcn.00450d66
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.00466b6d
mov ecx, 0x595bcc
cmp eax, ecx
je 0x4667d6
push edi
push 0
push eax
call fcn.00450ff3
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.004510a8
push str.HostHwnd
lea ecx, [esp + 0x44]
call fcn.00450d66
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.00466b6d
push eax
lea ecx, [esp + 0x2c]
call fcn.0044f7a0
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.004510a8
cmp dword [esp + 0x38], 0
je 0x466857
push ecx
lea ecx, [esp + 0x2c]
call fcn.0046704a
cmp dword [0x59535c], 0
pop ecx
mov dword [esp + 0x10], eax
je 0x466852
push eax
call esi
push eax
push str._INFO___d___set_host_hwnd__x_.
push 3
push dword [0x59535c]
call fcn.0047fca4
mov eax, dword [esp + 0x24]
add esp, 0x14
mov dword [0x595be4], eax
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510a8
lea ecx, [esp + 0x88]
call fcn.0044ec1a
cmp dword [0x5954b0], 8
mov eax, 0x59549c
push ecx
cmovae eax, dword [0x59549c]
mov ecx, esp
push eax
call fcn.00450b9d
lea ecx, [esp + 0x8c]
call fcn.0044f2ba
test eax, eax
jne 0x4668dd
cmp dword [0x59535c], eax
je 0x4668bc
call esi
push eax
push str._ERROR___d___loadLangXML_failed_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
test bl, bl
jne 0x466b3f
push 0x10
push str.Error
push str.Load_lang_xml_error.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x466b3f
push 0x5954b4
lea ecx, [esp + 0x5c]
call fcn.0044f7a0
push str._wae
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x74]
call fcn.00453de4
pop ecx
test bl, bl
je 0x46691c
push str._fork
call fcn.00450d3f
pop ecx
push eax
push str._fork
lea ecx, [esp + 0x78]
call fcn.0045405e
cmp dword [esp + 0x84], 8
lea eax, [esp + 0x70]
cmovae eax, dword [esp + 0x70]
push eax
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x466982
cmp dword [0x59535c], 0
je 0x46696c
call esi
push eax
push str._WARN___d___Already_exist_PreInstance.
push 2
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
test bl, bl
jne 0x466a24
lea ecx, [esp + 0x58]
call fcn.004843e6
jmp 0x466a24
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4669bc
cmp dword [0x59535c], 0
je 0x466a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call esi
push eax
push str._ERROR___d___CoInitialize_failed__err__d_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x14
jmp 0x466a24
push dword [esp + 0x14]
call fcn.0049ecf7
pop ecx
call fcn.00466335
push 0x1440
call fcn.00502508
pop ecx
test eax, eax
je 0x4669f8
lea ecx, [esp + 0x88]
push ecx
push ecx
push dword [esp + 0x1c]
mov ecx, eax
call fcn.004727a8
mov ecx, eax
xor edx, edx
mov dword [esp + 0x14], ecx
jmp 0x466a00
xor edx, edx
mov ecx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
jne 0x466a33
cmp dword [0x59535c], ecx
je 0x466a24
call esi
push eax
push str._ERROR___d___create_WaeWnd_failed_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x466b25
cmp dword [esp + 0x6c], 8
lea eax, [esp + 0x58]
push edx
cmovae eax, dword [esp + 0x5c]
push 0x190
push 0x1f4
push edx
push edx
push edx
push 0x80b
push eax
push edx
call fcn.0049f83f
cmp dword [0x59535c], 0
mov edi, eax
je 0x466a7f
push edi
call esi
push eax
push str._INFO___d___WaeWnd_handle__x_
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x14
mov dword [0x595bc4], edi
mov edi, dword [esp + 0x14]
mov ecx, edi
push 0x65
call fcn.0049fd93
mov ecx, edi
call fcn.0049f6e9
test bl, bl
mov ecx, edi
push 1
sete al
movzx eax, al
push eax
call fcn.0049ff04
cmp dword [0x59535c], 0
je 0x466acc
call esi
push eax
push str._INFO___d___MessageLoop
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
call fcn.0049d0c1
cmp dword [0x59535c], 0
je 0x466af2
call esi
push eax
push str._INFO___d___MessageLoop_end
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x59535c], 0
je 0x466b23
call esi
push eax
push str._INFO___d___exit_
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
xor edi, edi
push 0
push 1
lea ecx, [esp + 0x78]
call fcn.004510a8
push 0
push 1
lea ecx, [esp + 0x60]
call fcn.004510a8
lea ecx, [esp + 0x88]
call fcn.0044f29a
lea ecx, [esp + 0x18]
call fcn.00466bc5
mov ecx, dword [esp + 0xb4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00501f3e
mov esp, ebp
pop ebp
ret 0x10