Function at 0x414a30
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 0x4de66b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8b8
mov eax, dword [0x51c100]
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.004a3580
add esp, 0xc
mov dword [ebp - 0x878], 0x44
mov eax, 0xa
xorps xmm0, xmm0
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x818]
movups xmmword [ebp - 0x888], xmm0
push 0x800
push 0
push eax
call fcn.004a3580
mov eax, dword [ebp - 0x81c]
add esp, 0xc
test eax, eax
je 0x414b13
push eax
push esi
lea eax, [ebp - 0x818]
push str.__s___s
push eax
call fcn.004166d0
add esp, 0x10
jmp 0x414b28
push esi
lea eax, [ebp - 0x818]
push 0x4fcd70
push eax
call fcn.004166d0
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
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414b40
sub ecx, dword [ebp - 0x81c]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x8ac]
call fcn.00483950
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x414b6c
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.0040a590
test esi, esi
je 0x414df6
push dword [ebp - 0x880]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
xor esi, esi
test edi, edi
je 0x414bd1
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 0x414c7d
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414c25
nop dword [eax + eax]
push 0
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414c25
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x414c00
cmp dword [edi + 0x40], 0
je 0x414c76
mov eax, dword [edi + 0x48]
test eax, eax
je 0x414c46
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 0x414c66
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 0x414cd2
cmp dword [edi + 0x40], 0
je 0x414cd2
mov eax, dword [edi + 0x48]
test eax, eax
je 0x414ca2
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 0x414cc2
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 0x414dd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x522e60]
mov esi, eax
movq xmm0, qword [0x522e58]
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.0040b560
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.0040ba10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x82c]
test ecx, ecx
je 0x414d86
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.004141b0
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x414dd9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x414dd9
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e933c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x414dd9
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e933c]
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 0x414ed3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [0x522e58]
mov esi, eax
mov eax, dword [0x522e60]
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.0040b560
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.0040ba10
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x820]
test ecx, ecx
je 0x414e80
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.004141b0
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x414ed9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x414ed9
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e933c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x414ed3
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e933c]
mov ecx, dword [ebp - 0x88c]
call esi
mov esi, dword [ebp - 0x890]
mov ecx, dword [ebp - 0x894]
test ecx, ecx
je 0x414eeb
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.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret