Function at 0x414770
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 0x4e190b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8b8
mov eax, dword [0x521104]
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.004a6890
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.004a6890
mov eax, dword [ebp - 0x81c]
add esp, 0xc
test eax, eax
je 0x41485b
push eax
push esi
lea eax, [ebp - 0x818]
push str.__s___s
push eax
call fcn.004165f0
add esp, 0x10
jmp 0x414870
push esi
lea eax, [ebp - 0x818]
push 0x500d80
push eax
call fcn.004165f0
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 0x414882
sub ecx, dword [ebp - 0x81c]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x8ac]
call fcn.004868d0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4148ae
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.0040a450
test esi, esi
je 0x414b36
push dword [ebp - 0x880]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
xor esi, esi
test edi, edi
je 0x414913
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 0x4149bd
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414965
nop word [eax + eax]
push 0
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414965
push 0x14d
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x414940
cmp dword [edi + 0x40], 0
je 0x4149b6
mov eax, dword [edi + 0x48]
test eax, eax
je 0x414986
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 0x4149a6
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 0x414a12
cmp dword [edi + 0x40], 0
je 0x414a12
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4149e2
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 0x414a02
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 0x414b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x521bb0]
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.0040b1c0
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.0040b690
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x82c]
test ecx, ecx
je 0x414ac6
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.00413f40
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x414b19
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x414b19
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ed33c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x414b19
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ed33c]
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 0x414c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [str.sfxsh]
mov esi, eax
mov eax, dword [0x521bb0]
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.0040b1c0
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.0040b690
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x820]
test ecx, ecx
je 0x414bc0
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.00413f40
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x88c], ecx
test ecx, ecx
je 0x414c19
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x414c19
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ed33c]
mov ecx, dword [ebp - 0x88c]
call esi
mov eax, dword [ebp - 0x88c]
lock xadd dword [eax + 8], edi
dec edi
jne 0x414c13
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ed33c]
mov ecx, dword [ebp - 0x88c]
call esi
mov esi, dword [ebp - 0x890]
mov ecx, dword [ebp - 0x894]
test ecx, ecx
je 0x414c2b
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.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret