Function at 0x412d6f
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.00413577
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.004023da
lea ecx, [esp + 0x5c]
lea esi, [esp + 0x94]
call fcn.0042817f
push eax
lea ecx, [esp + 0x20]
call fcn.00429297
pop ecx
push ebx
push 1
mov ecx, esi
call fcn.00403da4
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.0040241d
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.0040ed85
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.00413447
push 0x535370
mov ecx, eax
call fcn.00411c9c
neg eax
sbb al, al
push ebx
inc al
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b], al
call fcn.00403da4
mov eax, 0x535374
cmp byte [esp + 0x13], bl
jne 0x412e71
mov eax, str.wsWAE.log
push eax
lea ecx, [esp + 0x98]
call fcn.0040edaa
lea esi, [esp + 0x94]
call fcn.004125cc
push ebx
push 1
mov ecx, esi
call fcn.00403da4
cmp dword [0x5500d4], ebx
je 0x412ebc
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.00427581
add esp, 0xc
push 0x4127b2
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 0x412f31
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 0x412f95
cmp dword [0x5500d4], ebx
je 0x412f58
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.00427581
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x412f71
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.00413519
or eax, 0xffffffff
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d574b
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [esp + 0x13]
mov byte [0x550971], al
call fcn.00416864
test al, al
jne 0x412fdc
cmp dword [0x5500d4], ebx
je 0x412fc8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___LoadLocalXml_failed_
call fcn.00427581
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x412f71
push 0x10
push 0x5354d4
push str.Load_product_xml_error.
jmp 0x412f6a
call fcn.00418a57
cmp byte [esp + 0x13], bl
je 0x4130fd
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.0040ed85
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.00413447
mov edi, eax
call fcn.004196b9
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00403da4
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.0040ed85
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.00413447
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x550974
call fcn.004036aa
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00403da4
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.0040ed85
lea eax, [esp + 0x5c]
push eax
call fcn.00413447
push eax
lea esi, [esp + 0x98]
call fcn.004125a9
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00403da4
cmp dword [esp + 0xa4], ebx
je 0x4130ee
mov eax, esi
push eax
call fcn.00413aeb
pop ecx
mov esi, eax
cmp dword [0x5500d4], ebx
je 0x4130e8
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.00427581
add esp, 0xc
mov dword [0x550990], esi
push ebx
push 1
lea ecx, [esp + 0x9c]
call fcn.00403da4
lea eax, [esp + 0x30]
push eax
call fcn.004025c4
cmp dword [0x55023c], 8
mov eax, dword [0x550228]
jae 0x41311a
mov eax, 0x550228
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
push ecx
call fcn.00403b0d
lea eax, [esp + 0x34]
push eax
call fcn.00402934
test eax, eax
jne 0x413195
cmp dword [0x5500d4], ebx
je 0x413157
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___loadLangXML_failed_
call fcn.00427581
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x413170
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.00403e7d
lea eax, [esp + 0x40]
push eax
call fcn.004030a3
lea eax, [esp + 0x30]
push eax
call fcn.004030a3
jmp 0x412f71
push 0x550244
lea esi, [esp + 0x7c]
call fcn.004125a9
lea eax, [esp + 0xb0]
push str._wae
push eax
mov ebx, esi
call fcn.00411a98
xor ebx, ebx
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
je 0x4131d2
push str._fork
lea ecx, [esp + 0xb4]
call fcn.004116a2
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x4131ea
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 0x413265
cmp dword [0x5500d4], ebx
je 0x41322b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._WARN___d___Already_exist_PreInstance.
call fcn.00427581
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x41323a
lea eax, [esp + 0x78]
call fcn.0042b4b3
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea ecx, [esp + 0xb8]
call fcn.00403da4
push ebx
push edi
lea ecx, [esp + 0x80]
call fcn.00403da4
jmp 0x413170
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x413297
cmp dword [0x5500d4], ebx
je 0x41323a
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.00427581
add esp, 0xc
jmp 0x41323a
push dword [esp + 0x2c]
call fcn.0043b275
pop ecx
call fcn.00412b13
push 0xcc4
call fcn.004d5f1a
pop ecx
cmp eax, ebx
je 0x4132c8
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x30]
push eax
call fcn.0041d512
mov edi, eax
jmp 0x4132ca
xor edi, edi
cmp edi, ebx
jne 0x41334b
cmp dword [0x5500d4], ebx
je 0x4132ef
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___create_WaeWnd_failed_
call fcn.00427581
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.00403da4
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00403da4
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.00403e7d
lea eax, [esp + 0x40]
push eax
call fcn.004030a3
lea eax, [esp + 0x30]
push eax
call fcn.004030a3
lea eax, [esp + 0x1c]
push eax
call fcn.00413519
mov eax, esi
jmp 0x412f7e
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x41335d
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.00442d08
mov esi, eax
cmp dword [0x5500d4], ebx
je 0x41339e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___WaeWnd_handle__x_
call fcn.00427581
add esp, 0xc
push 0x65
mov ecx, edi
mov dword [0x55096c], esi
call fcn.00442867
mov ecx, edi
call fcn.00442727
cmp byte [esp + 0x13], bl
push 1
sete al
movzx eax, al
push eax
mov ecx, edi
call fcn.004426ec
cmp dword [0x5500d4], ebx
je 0x4133e9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___MessageLoop
call fcn.00427581
pop ecx
pop ecx
call fcn.00441df5
cmp dword [0x5500d4], ebx
je 0x41340f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___MessageLoop_end
call fcn.00427581
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 0x413440
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___exit_
call fcn.00427581
pop ecx
pop ecx
xor esi, esi
jmp 0x4132fc