Function at 0x411e36
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
jne 0x411e4a
mov eax, 0x80070057
jmp 0x4120fb
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 8], esi
je 0x411e89
push 3
pop ebx
push ebx
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x411e7f
push str.Update_already_in_process
push 0x4b
push str.CoMcUpdateMgrCore::CheckUpdate
push str.CoMcUpdateMgrCore.cpp
push ebx
call fcn.00402c10
add esp, 0x14
mov eax, 0x80004005
jmp 0x4120f8
mov ax, word [ebp + 0xc]
lea ebx, [edi + 0x14]
mov word [ebx], ax
xor eax, eax
inc eax
push eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x411ebd
push ebx
push str.Update_type:__d
push 0x51
push str.CoMcUpdateMgrCore::CheckUpdate
push str.CoMcUpdateMgrCore.cpp
push 1
call fcn.0041291b
add esp, 0x18
movzx eax, word [ebx]
xor ecx, ecx
inc ecx
or edx, 0xffffffff
cmp ax, cx
je 0x411ed2
cmp ax, dx
mov eax, esi
jne 0x411ed4
mov eax, ecx
mov dword [edi + 0x18], eax
mov dword [edi + 8], ecx
push 3
pop ebx
test eax, eax
je 0x411f06
push ebx
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x411f06
push str.Manual_update_requested
push 0x57
push str.CoMcUpdateMgrCore::CheckUpdate
push str.CoMcUpdateMgrCore.cpp
push ebx
call fcn.00402c10
add esp, 0x14
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.00408f27
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], esi
push eax
push 0x4b8570
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00417fae
jmp 0x411f5f
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0041a111
lea eax, [ebp + 0x10]
push eax
push 0x4b8570
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 0xc]
call fcn.00417fae
push eax
lea ecx, [ebp + 8]
call fcn.0041329e
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040a044
cmp dword [ebp + 0x10], 0xffffffff
jne 0x411f2b
cmp dword [edi + 0xa4], esi
jne 0x411f9e
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x411f94
push 0x4b8574
push 0x65
push str.CoMcUpdateMgrCore::CheckUpdate
push str.CoMcUpdateMgrCore.cpp
push 4
call fcn.00402c10
add esp, 0x14
mov esi, 0x80070057
jmp 0x4120e0
push 0x4f53b4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4f53cc], esi
jne 0x41207c
mov ecx, edi
call fcn.00415a99
test al, al
jne 0x41207c
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
mov ecx, 0x4f53d0
call fcn.00413554
push 0x4f53b4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea eax, [edi + 0x38]
push eax
push esi
push edi
push 0x418291
push esi
push esi
call fcn.0044a8e6
add esp, 0x18
test eax, eax
jne 0x412039
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x412029
push str.Failed_to_create_update_thread_
push 0x80
push str.CoMcUpdateMgrCore::CheckUpdate
push str.CoMcUpdateMgrCore.cpp
push 4
call fcn.00402c10
add esp, 0x14
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov esi, 0x80004005
jmp 0x4120e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4120e0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [edi + 0x38]
push eax
push str.Started_update_thread__ID_u__for_package__s
push 0x86
push str.CoMcUpdateMgrCore::CheckUpdate
push str.CoMcUpdateMgrCore.cpp
push ebx
call fcn.00402c40
add esp, 0x1c
jmp 0x4120e0
push ebx
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4120c5
cmp dword [0x4f53cc], esi
mov ecx, str.update_in_process
mov eax, str.shutdown_in_process
cmove eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push str.Update_aborted_for_package__s:__s
push 0x6d
push str.CoMcUpdateMgrCore::CheckUpdate
push str.CoMcUpdateMgrCore.cpp
push ebx
call fcn.00402c40
add esp, 0x1c
push 0x4f53b4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4f53cc]
neg esi
sbb esi, esi
and esi, 0x80004005
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040a044
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040a044
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc