Function at 0x412d0a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x54b3f0]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
call fcn.004134fa
mov dword [esp + 0x20], eax
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x20]
mov byte [eax + 0x44], 1
mov eax, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x60]
mov byte [eax + 0x45], 1
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.00402447
lea ecx, [esp + 0x5c]
lea esi, [esp + 0x94]
call fcn.0042806b
push eax
lea ecx, [esp + 0x20]
call fcn.00429183
pop ecx
push ebx
push 1
mov ecx, esi
call fcn.00403de3
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.0040248a
xor eax, eax
push str.OnlyForkInstallDependent
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
call fcn.0040ed76
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.004133e2
push 0x535370
mov ecx, eax
call fcn.00411c2a
neg eax
sbb al, al
push ebx
inc al
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b], al
call fcn.00403de3
mov eax, 0x535374
cmp byte [esp + 0x13], bl
jne 0x412e0c
mov eax, str.wsWAE.log
push eax
lea ecx, [esp + 0x98]
call fcn.0040ed9b
lea esi, [esp + 0x94]
call fcn.0041255a
push ebx
push 1
mov ecx, esi
call fcn.00403de3
cmp dword [0x5500d4], ebx
je 0x412e57
movzx eax, byte [esp + 0x13]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___start__fork__d_.
call fcn.0042749e
add esp, 0xc
push 0x412740
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x80], ebx
mov word [esp + 0x84], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x412ecc
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 0x18]
test eax, eax
setne al
movzx eax, al
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0x14], ebx
jne 0x412f30
cmp dword [0x5500d4], ebx
je 0x412ef3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___You_must_be_logged_in_as_administrator_when_installing_this_program.
call fcn.0042749e
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x412f0c
push 0x10
push 0x5353c4
push str.You_must_be_logged_in_as_administrator_when_installing_this_program.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esp + 0x1c]
push eax
call fcn.004134b4
or eax, 0xffffffff
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d57db
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [esp + 0x13]
mov byte [0x550971], al
call fcn.004167ff
test al, al
jne 0x412f77
cmp dword [0x5500d4], ebx
je 0x412f63
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___LoadLocalXml_failed_
call fcn.0042749e
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x412f0c
push 0x10
push 0x5354d4
push str.Load_product_xml_error.
jmp 0x412f05
call fcn.004189f2
cmp byte [esp + 0x13], bl
je 0x413098
push 7
pop esi
xor eax, eax
push str.HostLang
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
call fcn.0040ed76
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.004133e2
mov edi, eax
call fcn.00419654
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00403de3
xor eax, eax
push str.HostVersion
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
call fcn.0040ed76
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.004133e2
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x550974
call fcn.004036e9
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00403de3
xor eax, eax
push str.HostHwnd
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
call fcn.0040ed76
lea eax, [esp + 0x5c]
push eax
call fcn.004133e2
push eax
lea esi, [esp + 0x98]
call fcn.00412537
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00403de3
cmp dword [esp + 0xa4], ebx
je 0x413089
mov eax, esi
push eax
call fcn.00413a86
pop ecx
mov esi, eax
cmp dword [0x5500d4], ebx
je 0x413083
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___set_host_hwnd__x_.
call fcn.0042749e
add esp, 0xc
mov dword [0x550990], esi
push ebx
push 1
lea ecx, [esp + 0x9c]
call fcn.00403de3
lea eax, [esp + 0x30]
push eax
call fcn.0040263b
cmp dword [0x55023c], 8
mov eax, dword [0x550228]
jae 0x4130b5
mov eax, 0x550228
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
push ecx
call fcn.00403b4c
lea eax, [esp + 0x34]
push eax
call fcn.004029ab
test eax, eax
jne 0x413130
cmp dword [0x5500d4], ebx
je 0x4130f2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___loadLangXML_failed_
call fcn.0042749e
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x41310b
push 0x10
push str.Error
push str.Load_lang_xml_error.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.00403eb2
lea eax, [esp + 0x40]
push eax
call fcn.0040311a
lea eax, [esp + 0x30]
push eax
call fcn.0040311a
jmp 0x412f0c
push 0x550244
lea esi, [esp + 0x7c]
call fcn.00412537
lea eax, [esp + 0xb0]
push str._wae
push eax
mov ebx, esi
call fcn.00411a26
xor ebx, ebx
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
je 0x41316d
push str._fork
lea ecx, [esp + 0xb4]
call fcn.00411668
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x413185
lea eax, [esp + 0xb0]
push eax
xor edi, edi
inc edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call esi
cmp eax, 0xb7
jne 0x413200
cmp dword [0x5500d4], ebx
je 0x4131c6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._WARN___d___Already_exist_PreInstance.
call fcn.0042749e
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x4131d5
lea eax, [esp + 0x78]
call fcn.0042b3e8
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea ecx, [esp + 0xb8]
call fcn.00403de3
push ebx
push edi
lea ecx, [esp + 0x80]
call fcn.00403de3
jmp 0x41310b
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x413232
cmp dword [0x5500d4], ebx
je 0x4131d5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___CoInitialize_failed__err__d_
call fcn.0042749e
add esp, 0xc
jmp 0x4131d5
push dword [esp + 0x2c]
call fcn.0043b2e3
pop ecx
call fcn.00412aa1
push 0xcc4
call fcn.004d5fab
pop ecx
cmp eax, ebx
je 0x413263
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x30]
push eax
call fcn.0041d56a
mov edi, eax
jmp 0x413265
xor edi, edi
cmp edi, ebx
jne 0x4132e6
cmp dword [0x5500d4], ebx
je 0x41328a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___create_WaeWnd_failed_
call fcn.0042749e
pop ecx
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
push ebx
push 1
lea ecx, [esp + 0xb8]
call fcn.00403de3
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00403de3
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.00403eb2
lea eax, [esp + 0x40]
push eax
call fcn.0040311a
lea eax, [esp + 0x30]
push eax
call fcn.0040311a
lea eax, [esp + 0x1c]
push eax
call fcn.004134b4
mov eax, esi
jmp 0x412f19
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x4132f8
lea eax, [esp + 0x78]
push ebx
push 0x190
push 0x1f4
push ebx
push ebx
push ebx
push 0x80b
push eax
push ebx
mov ecx, edi
call fcn.00442d76
mov esi, eax
cmp dword [0x5500d4], ebx
je 0x413339
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___WaeWnd_handle__x_
call fcn.0042749e
add esp, 0xc
push 0x65
mov ecx, edi
mov dword [0x55096c], esi
call fcn.004428d5
mov ecx, edi
call fcn.00442795
cmp byte [esp + 0x13], bl
push 1
sete al
movzx eax, al
push eax
mov ecx, edi
call fcn.0044275a
cmp dword [0x5500d4], ebx
je 0x413384
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___MessageLoop
call fcn.0042749e
pop ecx
pop ecx
call fcn.00441e63
cmp dword [0x5500d4], ebx
je 0x4133aa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___MessageLoop_end
call fcn.0042749e
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5500d4], ebx
je 0x4133db
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___exit_
call fcn.0042749e
pop ecx
pop ecx
xor esi, esi
jmp 0x413297