Function at 0x4135fa
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.0040b7f5
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.00402433
lea ecx, [esp + 0x38]
lea esi, [esp + 0x70]
call fcn.00428971
push eax
lea ecx, [esp + 0x20]
call fcn.00429a89
pop ecx
push ebx
push 1
mov ecx, esi
call fcn.0040476f
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.00402476
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.00404441
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x20]
call fcn.00413ceb
push 0x5352a8
mov ecx, eax
call fcn.0041257e
neg eax
sbb al, al
push ebx
inc al
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b], al
call fcn.0040476f
mov eax, 0x5352ac
cmp byte [esp + 0x13], bl
jne 0x4136f9
mov eax, str.wsWAE.log
push eax
lea ecx, [esp + 0x74]
call fcn.00404466
lea esi, [esp + 0x70]
call fcn.00412e4a
push ebx
push 1
mov ecx, esi
call fcn.0040476f
cmp dword [0x550334], ebx
je 0x41373e
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.00427dfb
add esp, 0xc
push 0x413030
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 0x4137ad
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 0x413811
cmp dword [0x550334], ebx
je 0x4137d4
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.00427dfb
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x4137ed
push 0x10
push 0x5352fc
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.00413dbd
or eax, 0xffffffff
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5e0b
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [esp + 0x13]
mov byte [0x550bd1], al
call fcn.004170d0
test al, al
jne 0x413858
cmp dword [0x550334], ebx
je 0x413844
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___LoadLocalXml_failed_
call fcn.00427dfb
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x4137ed
push 0x10
push 0x53540c
push str.Load_product_xml_error.
jmp 0x4137e6
call fcn.004192af
cmp byte [esp + 0x13], bl
je 0x413973
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.00404441
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x20]
call fcn.00413ceb
mov edi, eax
call fcn.00419f0f
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040476f
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.00404441
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x20]
call fcn.00413ceb
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x550bd4
call fcn.004046a4
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040476f
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.00404441
lea eax, [esp + 0x38]
push eax
call fcn.00413ceb
push eax
lea esi, [esp + 0x74]
call fcn.00404734
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040476f
cmp dword [esp + 0x80], ebx
je 0x413967
mov eax, esi
push eax
call fcn.00414357
pop ecx
mov esi, eax
cmp dword [0x550334], ebx
je 0x413961
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.00427dfb
add esp, 0xc
mov dword [0x550bf0], esi
push ebx
push 1
lea ecx, [esp + 0x78]
call fcn.0040476f
lea ecx, [esp + 0xa8]
call fcn.00402670
cmp dword [0x55049c], 8
mov eax, dword [0x550488]
jae 0x413992
mov eax, 0x550488
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
push ecx
call fcn.004042b1
lea eax, [esp + 0xac]
push eax
call fcn.00402caf
test eax, eax
jne 0x413a18
cmp dword [0x550334], ebx
je 0x4139d2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___loadLangXML_failed_
call fcn.00427dfb
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x4139eb
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.004034bb
lea eax, [esp + 0xc4]
push eax
call fcn.00403429
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.0040476f
jmp 0x4137ed
push 0x5504a4
lea esi, [esp + 0x58]
call fcn.00404734
lea eax, [esp + 0x8c]
push str._wae
push eax
mov ebx, esi
call fcn.0041237a
xor ebx, ebx
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
je 0x413a55
push str._fork
lea ecx, [esp + 0x90]
call fcn.00411f0c
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x413a6d
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 0x413b00
cmp dword [0x550334], ebx
je 0x413aae
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._WARN___d___Already_exist_PreInstance.
call fcn.00427dfb
pop ecx
pop ecx
cmp byte [esp + 0x13], bl
jne 0x413abd
lea eax, [esp + 0x54]
call fcn.0042bb6f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
lea ecx, [esp + 0x94]
call fcn.0040476f
push ebx
push esi
lea ecx, [esp + 0x5c]
call fcn.0040476f
lea edi, [esp + 0xd4]
call fcn.004034bb
lea eax, [esp + 0xc4]
push eax
call fcn.00403429
push ebx
push esi
jmp 0x413a07
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x413b32
cmp dword [0x550334], ebx
je 0x413abd
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.00427dfb
add esp, 0xc
jmp 0x413abd
push dword [esp + 0x2c]
call fcn.0043b943
pop ecx
call fcn.00413391
push 0xcc4
call fcn.004d65da
pop ecx
cmp eax, ebx
je 0x413b66
lea ecx, [esp + 0xa8]
push ecx
push dword [esp + 0x30]
push eax
call fcn.0041ddf6
mov esi, eax
jmp 0x413b68
xor esi, esi
cmp esi, ebx
jne 0x413bf2
cmp dword [0x550334], ebx
je 0x413b91
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___create_WaeWnd_failed_
call fcn.00427dfb
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.0040476f
push ebx
push 1
lea ecx, [esp + 0x5c]
call fcn.0040476f
lea edi, [esp + 0xd4]
call fcn.004034bb
lea eax, [esp + 0xc4]
push eax
call fcn.00403429
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.0040476f
lea eax, [esp + 0x1c]
push eax
call fcn.00413dbd
mov eax, esi
jmp 0x4137fa
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x413c01
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.0044344f
mov edi, eax
cmp dword [0x550334], ebx
je 0x413c42
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___WaeWnd_handle__x_
call fcn.00427dfb
add esp, 0xc
push 0x65
mov ecx, esi
mov dword [0x550bcc], edi
call fcn.00442fae
mov ecx, esi
call fcn.00442e6e
cmp byte [esp + 0x13], bl
push 1
sete al
movzx eax, al
push eax
mov ecx, esi
call fcn.00442e33
cmp dword [0x550334], ebx
je 0x413c8d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___MessageLoop
call fcn.00427dfb
pop ecx
pop ecx
call fcn.0044253b
cmp dword [0x550334], ebx
je 0x413cb3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___MessageLoop_end
call fcn.00427dfb
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 0x413ce4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___exit_
call fcn.00427dfb
pop ecx
pop ecx
xor esi, esi
jmp 0x413b9e