Function at 0x40c1a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x418]
push edi
mov dword [ebp - 0x1c], eax
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x2000012c
push 2
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], ebx
stosd dword es:[edi], eax
call fcn.00401607
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
lea eax, [esi + 0xb8]
push ecx
push eax
call fcn.0040b9d2
mov edi, eax
cmp edi, ebx
jge 0x40c214
push str.Engine_cannot_start_apply_because_it_is_busy_with_another_action.
push edi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x40c522
lea eax, [esi + 0x2b8]
push eax
lea edi, [esi + 0xb8]
push edi
call fcn.004207ae
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
push eax
push 1
push edi
call fcn.0040baaa
mov edi, eax
cmp edi, ebx
jge 0x40c259
push edi
push 0x21c
push str.core.cpp
call fcn.0043166e
push str.UX_aborted_apply_begin.
jmp 0x40c207
cmp dword [esi + 0x30], 3
jne 0x40c283
push ebx
push 0x10
push ebx
mov edi, 0x8007015e
push edi
push ebx
push 5
push dword [esi + 0xc8]
mov dword [ebp + 8], 1
call fcn.0040b641
jmp 0x40c522
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.004207df
mov edi, eax
cmp edi, ebx
jge 0x40c29d
push str.Another_per_user_setup_is_already_executing.
jmp 0x40c207
call fcn.00420767
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xf0], eax
lea eax, [esi + 0x88]
push eax
call fcn.0042077f
mov edi, eax
cmp edi, ebx
jge 0x40c2c7
push str.Failed_to_set_initial_apply_variables.
jmp 0x40c207
cmp dword [esi + 0x440], ebx
jne 0x40c2f8
cmp dword [esi + 0x450], ebx
jne 0x40c2f8
cmp dword [esi + 0x460], ebx
jne 0x40c2f8
cmp dword [esi + 0x470], ebx
jne 0x40c2f8
push 0xa000017c
push 2
call fcn.00401607
jmp 0x40c20d
lea eax, [esi + 0x490]
cmp dword [eax], ebx
jne 0x40c32f
push eax
lea eax, [esi + 0x48]
push eax
lea eax, [esi + 0xbc]
push eax
push dword [esi + 0x140]
push dword [esi + 0x104]
call fcn.00417f24
mov edi, eax
cmp edi, ebx
jge 0x40c32f
push str.Failed_to_cache_engine_to_working_directory.
jmp 0x40c207
cmp dword [esi + 0x40c], ebx
je 0x40c394
push dword [esi + 0xf0]
push esi
call fcn.0040bb5c
mov edi, eax
cmp edi, ebx
jge 0x40c353
push str.Failed_to_elevate.
jmp 0x40c207
xor eax, eax
cmp dword [esi + 0x3dc], ebx
sete al
push eax
push dword [esi + 0x484]
lea eax, [esi + 0x88]
push dword [esi + 0x400]
push eax
push dword [esi + 0x4a4]
call fcn.0040df4e
mov edi, eax
cmp edi, ebx
jge 0x40c38d
push str.Another_per_machine_setup_is_already_executing.
jmp 0x40c207
mov dword [ebp - 0x20], 1
cmp dword [esi + 0x410], ebx
je 0x40c3c1
push esi
call fcn.00420d79
mov edi, eax
cmp edi, ebx
jge 0x40c3ba
push str.Failed_to_register_bundle.
push edi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x40c512
mov dword [ebp - 0x18], 1
cmp dword [esi + 0x450], ebx
je 0x40c45f
lea eax, [ebp - 0x14]
push ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x40bfc0
push ebx
push ebx
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x40c42c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40c40a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40c415
mov edi, 0x80004005
push edi
push 0x25e
push str.core.cpp
call fcn.0043166e
push str.Failed_to_create_cache_thread.
jmp 0x40c446
cmp dword [esi + 0x3e0], 1
je 0x40c45f
push eax
call fcn.0040c049
mov edi, eax
cmp edi, ebx
jge 0x40c453
push str.Failed_while_caching__aborting_execution.
push edi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x40c4db
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp dword [esi + 0x460], ebx
je 0x40c493
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
call fcn.00422cb2
mov edi, eax
push edi
lea eax, [esi + 0xb8]
push eax
call fcn.0040b6c8
cmp dword [ebp - 4], ebx
je 0x40c4a6
push dword [ebp - 4]
call fcn.0040c049
cmp edi, ebx
jl 0x40c4db
mov edi, eax
cmp edi, ebx
jl 0x40c4db
cmp dword [ebp - 8], ebx
jne 0x40c4db
cmp dword [ebp - 0x10], ebx
jne 0x40c4db
cmp dword [ebp + 8], 2
je 0x40c4db
cmp dword [esi + 0x470], ebx
je 0x40c4db
push dword [esi + 0x4a4]
lea eax, [esi + 0x400]
push eax
lea eax, [esi + 0xb8]
push eax
call fcn.00420fd5
cmp dword [ebp - 0x18], ebx
je 0x40c512
cmp dword [ebp - 0x1c], ebx
jne 0x40c4f1
cmp dword [esi + 0x41c], ebx
jne 0x40c4f1
xor ecx, ecx
jmp 0x40c4f4
xor ecx, ecx
inc ecx
cmp edi, ebx
jl 0x40c501
cmp dword [ebp - 8], ebx
jne 0x40c501
xor eax, eax
jmp 0x40c504
xor eax, eax
inc eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push ecx
push eax
push esi
call fcn.00420f10
cmp dword [ebp - 0x20], ebx
je 0x40c522
push dword [esi + 0x4a4]
call fcn.0040e019
mov dword [esi + 0xf0], ebx
call fcn.00420773
cmp dword [ebp - 0xc], ebx
je 0x40c544
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], ebx
je 0x40c555
lea eax, [esi + 0xb8]
push eax
call fcn.0040b6a0
cmp dword [ebp - 4], ebx
je 0x40c563
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xd0]
cmp eax, 0x66
jne 0x40c582
mov dword [esi + 0x18], 1
push dword [esi + 0x18]
call fcn.00411485
push eax
push dword [ebp + 8]
call fcn.00411630
push eax
push edi
push 0x2000018f
push 2
call fcn.00401607
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8