Function at 0x4136b9
Capabilities:
Get token membership
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x54b3f0]
xor eax, esp
mov dword [esp + 0xd8], 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.0040b8dd
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 + 0x3c]
mov byte [eax + 0x45], 1
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00402523
lea ecx, [esp + 0x38]
lea esi, [esp + 0x70]
call fcn.004289e4
push eax
lea ecx, [esp + 0x20]
call fcn.00429afc
pop ecx
push ebx
push 1
mov ecx, esi
call fcn.0040482f
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.00402566
xor eax, eax
push str.OnlyForkInstallDependent
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
call fcn.00404501
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x20]
call fcn.00413daa
push 0x5352c8
mov ecx, eax
call fcn.0041264a
neg eax
sbb al, al
push ebx
inc al
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b], al
call fcn.0040482f
mov eax, 0x5352cc
cmp byte [esp + 0x13], bl
jne 0x4137b8
mov eax, str.wsWAE.log
push eax
lea ecx, [esp + 0x74]
call fcn.00404526
lea esi, [esp + 0x70]
call fcn.00412f16
push ebx
push 1
mov ecx, esi
call fcn.0040482f
cmp dword [0x550334], ebx
je 0x4137fd
movzx eax, byte [esp + 0x13]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___start__fork__d_.
call fcn.00427e2f
add esp, 0xc
push 0x4130fc
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 + 0x58]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x60], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41386c
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 0x4138d0
cmp dword [0x550334], ebx
je 0x413893
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___You_must_be_logged_in_as_administrator_when_installing_this_program.
call fcn.00427e2f
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x4138ac
push 0x10
push 0x53531c
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.00413e7c
or eax, 0xffffffff
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5ddb
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [esp + 0x13]
mov byte [0x550bd1], al
call fcn.004170cc
test al, al
jne 0x413917
cmp dword [0x550334], ebx
je 0x413903
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___LoadLocalXml_failed_
call fcn.00427e2f
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x4138ac
push 0x10
push 0x53542c
push str.Load_product_xml_error.
jmp 0x4138a5
call fcn.004192ab
cmp byte [esp + 0x13], bl
je 0x413a32
push 7
pop esi
xor eax, eax
push str.HostLang
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
call fcn.00404501
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x20]
call fcn.00413daa
mov edi, eax
call fcn.00419f0b
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040482f
xor eax, eax
push str.HostVersion
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
call fcn.00404501
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x20]
call fcn.00413daa
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x550bd4
call fcn.00404764
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040482f
xor eax, eax
push str.HostHwnd
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
call fcn.00404501
lea eax, [esp + 0x38]
push eax
call fcn.00413daa
push eax
lea esi, [esp + 0x74]
call fcn.004047f4
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040482f
cmp dword [esp + 0x80], ebx
je 0x413a26
mov eax, esi
push eax
call fcn.00414353
pop ecx
mov esi, eax
cmp dword [0x550334], ebx
je 0x413a20
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___set_host_hwnd__x_.
call fcn.00427e2f
add esp, 0xc
mov dword [0x550bf0], esi
push ebx
push 1
lea ecx, [esp + 0x78]
call fcn.0040482f
lea ecx, [esp + 0xa8]
call fcn.0040276a
cmp dword [0x55049c], 8
mov eax, dword [0x550488]
jae 0x413a51
mov eax, 0x550488
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
push ecx
call fcn.00404371
lea eax, [esp + 0xac]
push eax
call fcn.00402da9
test eax, eax
jne 0x413ad7
cmp dword [0x550334], ebx
je 0x413a91
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___loadLangXML_failed_
call fcn.00427e2f
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x413aaa
push 0x10
push str.Error
push str.Load_lang_xml_error.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea edi, [esp + 0xd4]
call fcn.004035b5
lea eax, [esp + 0xc4]
push eax
call fcn.00403523
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.0040482f
jmp 0x4138ac
push 0x5504a4
lea esi, [esp + 0x58]
call fcn.004047f4
lea eax, [esp + 0x8c]
push str._wae
push eax
mov ebx, esi
call fcn.00412446
xor ebx, ebx
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
je 0x413b14
push str._fork
lea ecx, [esp + 0x90]
call fcn.0041208a
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x413b2c
lea eax, [esp + 0x8c]
push eax
xor esi, esi
inc esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call edi
cmp eax, 0xb7
jne 0x413bbf
cmp dword [0x550334], ebx
je 0x413b6d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._WARN___d___Already_exist_PreInstance.
call fcn.00427e2f
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x413b7c
lea eax, [esp + 0x54]
call fcn.0042bb26
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
lea ecx, [esp + 0x94]
call fcn.0040482f
push ebx
push esi
lea ecx, [esp + 0x5c]
call fcn.0040482f
lea edi, [esp + 0xd4]
call fcn.004035b5
lea eax, [esp + 0xc4]
push eax
call fcn.00403523
push ebx
push esi
jmp 0x413ac6
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x413bf1
cmp dword [0x550334], ebx
je 0x413b7c
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___CoInitialize_failed__err__d_
call fcn.00427e2f
add esp, 0xc
jmp 0x413b7c
push dword [esp + 0x2c]
call fcn.0043b8e9
pop ecx
call fcn.0041345d
push 0xcc4
call fcn.004d65aa
pop ecx
cmp eax, ebx
je 0x413c25
lea ecx, [esp + 0xa8]
push ecx
push dword [esp + 0x30]
push eax
call fcn.0041de22
mov esi, eax
jmp 0x413c27
xor esi, esi
cmp esi, ebx
jne 0x413cb1
cmp dword [0x550334], ebx
je 0x413c50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___create_WaeWnd_failed_
call fcn.00427e2f
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 + 0x94]
call fcn.0040482f
push ebx
push 1
lea ecx, [esp + 0x5c]
call fcn.0040482f
lea edi, [esp + 0xd4]
call fcn.004035b5
lea eax, [esp + 0xc4]
push eax
call fcn.00403523
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.0040482f
lea eax, [esp + 0x1c]
push eax
call fcn.00413e7c
mov eax, esi
jmp 0x4138b9
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x413cc0
lea eax, [esp + 0x54]
push ebx
push 0x190
push 0x1f4
push ebx
push ebx
push ebx
push 0x80b
push eax
push ebx
mov ecx, esi
call fcn.00443384
mov edi, eax
cmp dword [0x550334], ebx
je 0x413d01
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___WaeWnd_handle__x_
call fcn.00427e2f
add esp, 0xc
push 0x65
mov ecx, esi
mov dword [0x550bcc], edi
call fcn.00442ee3
mov ecx, esi
call fcn.00442da3
cmp byte [esp + 0x13], bl
push 1
sete al
movzx eax, al
push eax
mov ecx, esi
call fcn.00442d68
cmp dword [0x550334], ebx
je 0x413d4c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___MessageLoop
call fcn.00427e2f
pop ecx
pop ecx
call fcn.00442471
cmp dword [0x550334], ebx
je 0x413d72
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___MessageLoop_end
call fcn.00427e2f
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x550334], ebx
je 0x413da3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___exit_
call fcn.00427e2f
pop ecx
pop ecx
xor esi, esi
jmp 0x413c5d