Function at 0x4124a9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
jne 0x4124be
mov eax, 0x80070057
jmp 0x412717
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 8], esi
je 0x4124fe
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4124f4
push str.Update_already_in_process
push 0xbb
push str.CoMcUpdateMgrCore::Install
push str.CoMcUpdateMgrCore.cpp
push 3
call fcn.00402c10
add esp, 0x14
mov eax, 0x80004005
jmp 0x412715
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00408f27
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.0041a111
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0040a044
push dword [ebp + 0x10]
lea ecx, [ebp + 8]
call fcn.00408f27
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], esi
push eax
push 0x4b8570
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 8]
call fcn.00417fae
jmp 0x41257d
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x10c]
call fcn.004135cc
lea eax, [ebp + 0x10]
push eax
push 0x4b8570
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 8]
call fcn.00417fae
push eax
lea ecx, [ebp - 4]
call fcn.0041329e
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0040a044
cmp dword [ebp + 0x10], 0xffffffff
jne 0x412545
cmp dword [edi + 0x110], esi
jne 0x4125bf
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4125b5
push str.Empty_App_id_list
push 0xcc
push str.CoMcUpdateMgrCore::Install
push str.CoMcUpdateMgrCore.cpp
push 4
call fcn.00402c10
add esp, 0x14
mov esi, 0x80070057
jmp 0x4126fc
mov ebx, 0x4f53b4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4f53cc], esi
jne 0x41269b
mov ecx, edi
call fcn.00415a99
test al, al
jne 0x41269b
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
mov ecx, 0x4f53d0
call fcn.00413554
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [edi + 0x38]
xor eax, eax
push ebx
push esi
push edi
push 0x418291
inc eax
push esi
push esi
mov dword [edi + 0x24], eax
mov dword [edi + 0x18], eax
mov dword [edi + 8], eax
call fcn.0044a8e6
add esp, 0x18
test eax, eax
jne 0x412657
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x41264d
push str.Failed_to_create_personalization_thread_
push 0xe8
push str.CoMcUpdateMgrCore::Install
push str.CoMcUpdateMgrCore.cpp
push 4
call fcn.00402c10
add esp, 0x14
mov esi, 0x80004005
jmp 0x4126fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x412693
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push ebx
push str.Started_personalization_thread__ID_u__for_features__s
push 0xed
push str.CoMcUpdateMgrCore::Install
push str.CoMcUpdateMgrCore.cpp
push 3
call fcn.00402c40
add esp, 0x1c
mov eax, dword [edi]
push edi
call dword [eax + 4]
jmp 0x4126fc
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4126e3
cmp dword [0x4f53cc], esi
mov ecx, str.update_in_process
mov eax, str.shutdown_in_process
cmove eax, ecx
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push str.Install_aborted_for_package__s:__s
push 0xd4
push str.CoMcUpdateMgrCore::Install
push str.CoMcUpdateMgrCore.cpp
push 3
call fcn.00402c40
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov eax, 0x80004005
inc esi
cmp dword [0x4f53cc], 0
cmovne esi, eax
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040a044
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040a044
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc