Function at 0x414e50
Capabilities:
Create process on windows
Resume thread
Terminate thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2cdb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8b8
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x81c], edx
mov esi, ecx
mov dword [ebp - 0x88c], esi
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x894], eax
mov eax, dword [ebx + 0x10]
push 0x44
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x878]
push 0
push eax
mov dword [ebp - 0x890], 0
mov dword [ebp - 0x824], 0
call fcn.004a7c50
add esp, 0xc
mov dword [ebp - 0x878], 0x44
mov eax, 0xa
xorps xmm0, xmm0
mov word [ebp - 0x848], ax
xor eax, eax
mov word [ebp - 0x818], ax
push 0x7fe
push eax
lea eax, [ebp - 0x816]
push eax
movups xmmword [ebp - 0x888], xmm0
call fcn.004a7c50
mov eax, dword [ebp - 0x81c]
add esp, 0xc
test eax, eax
je 0x414f3b
push eax
push esi
lea eax, [ebp - 0x818]
push str.__s___s
push eax
call fcn.00416d50
add esp, 0x10
jmp 0x414f50
push esi
lea eax, [ebp - 0x818]
push 0x501a80
push eax
call fcn.00416d50
add esp, 0xc
sub esp, 8
mov ecx, esi
mov edx, esp
lea eax, [ecx + 2]
mov dword [edx], esi
mov dword [ebp - 0x81c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414f62
sub ecx, dword [ebp - 0x81c]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x8ac]
call fcn.00487ce0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x414f8e
mov eax, dword [eax]
lea ecx, [ebp - 0x888]
push ecx
lea ecx, [ebp - 0x878]
push ecx
push eax
push dword [ebp - 0x828]
lea eax, [ebp - 0x818]
push 0x414
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x8ac]
mov esi, eax
call fcn.0040ab30
test esi, esi
je 0x415216
push dword [ebp - 0x880]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
xor esi, esi
test edi, edi
je 0x414ff3
push str.Global_aswSetupGuiShown_0x02fa47cc9a31afba
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test esi, esi
je 0x41509d
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x415045
nop word [eax + eax]
push 0
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x415045
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x415020
cmp dword [edi + 0x40], 0
je 0x415096
mov eax, dword [edi + 0x48]
test eax, eax
je 0x415066
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x48], 0
push 0x2710
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x415086
push 1
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4150f2
cmp dword [edi + 0x40], 0
je 0x4150f2
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4150c2
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x48], 0
push 0x2710
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4150e2
push 1
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], 0
push 0xffffffffffffffff
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x824]
push eax
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4151f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x522bb0]
mov esi, eax
movq xmm0, qword [str.sfxsh]
mov dword [ebp - 0x8a4], ecx
mov ecx, str.C:BUILDworke0dd96435fde7cb0projects_avastinstupStubs_srcSfxHlp.cpp
mov dword [ebp - 0x890], esi
movq qword [ebp - 0x8ac], xmm0
call fcn.0040b8a0
xorps xmm0, xmm0
mov dword [ebp - 0x8a0], eax
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x89c], edx
mov dword [ebp - 0x898], 0xba
movlpd qword [ebp - 0x82c], xmm0
call fcn.0040bd70
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x82c]
test ecx, ecx
je 0x4151a6
push esi
push dword [ebp - 0x88c]
lea eax, [ebp - 0x8ac]
push str.Cannot_get_exit_code_of_process__s__code_0x_x_
push eax
push 7
call fcn.00414620
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x4151f9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4151f9
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x4151f9
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x88c]
call esi
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4152f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [str.sfxsh]
mov esi, eax
mov eax, dword [0x522bb0]
mov ecx, str.C:BUILDworke0dd96435fde7cb0projects_avastinstupStubs_srcSfxHlp.cpp
mov dword [ebp - 0x890], esi
movq qword [ebp - 0x8c4], xmm0
mov dword [ebp - 0x8bc], eax
call fcn.0040b8a0
xorps xmm0, xmm0
mov dword [ebp - 0x8b8], eax
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x8b4], edx
mov dword [ebp - 0x8b0], 0xc6
movlpd qword [ebp - 0x820], xmm0
call fcn.0040bd70
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x820]
test ecx, ecx
je 0x4152a0
push esi
push dword [ebp - 0x88c]
lea eax, [ebp - 0x8c4]
push str.Error_creating_process__s__code_0x_x_
push eax
push 7
call fcn.00414620
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x4152f9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4152f9
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x4152f3
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x88c]
call esi
mov esi, dword [ebp - 0x890]
mov ecx, dword [ebp - 0x894]
test ecx, ecx
je 0x41530b
mov eax, dword [ebp - 0x824]
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret