Function at 0x40c344
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.00401566
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
lea eax, [esi + 0xb8]
push ecx
push eax
call fcn.0040bb67
mov edi, eax
cmp edi, ebx
jge 0x40c3b4
push str.Engine_cannot_start_apply_because_it_is_busy_with_another_action.
push edi
call fcn.00430126
pop ecx
pop ecx
jmp 0x40c714
lea eax, [esi + 0x2b8]
push eax
lea edi, [esi + 0xb8]
push edi
call fcn.0042182f
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
push eax
push 1
push edi
call fcn.0040bc3f
mov edi, eax
cmp edi, ebx
jge 0x40c3f9
push edi
push 0x21c
push str.core.cpp
call fcn.00432f06
push str.UX_aborted_apply_begin.
jmp 0x40c3a7
cmp dword [esi + 0x30], 3
jne 0x40c423
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.0040b7d6
jmp 0x40c714
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00421860
mov edi, eax
cmp edi, ebx
jge 0x40c43d
push str.Another_per_user_setup_is_already_executing.
jmp 0x40c3a7
call fcn.004217e8
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xf0], eax
lea eax, [esi + 0x88]
push eax
call fcn.00421800
mov edi, eax
cmp edi, ebx
jge 0x40c467
push str.Failed_to_set_initial_apply_variables.
jmp 0x40c3a7
cmp dword [esi + 0x440], ebx
jne 0x40c498
cmp dword [esi + 0x450], ebx
jne 0x40c498
cmp dword [esi + 0x460], ebx
jne 0x40c498
cmp dword [esi + 0x470], ebx
jne 0x40c498
push 0xa000017c
push 2
call fcn.00401566
jmp 0x40c3ad
lea eax, [esi + 0x490]
cmp dword [eax], ebx
jne 0x40c4cf
push eax
lea eax, [esi + 0x48]
push eax
lea eax, [esi + 0xbc]
push eax
push dword [esi + 0x140]
push dword [esi + 0x108]
call fcn.00418bbe
mov edi, eax
cmp edi, ebx
jge 0x40c4cf
push str.Failed_to_cache_engine_to_working_directory.
jmp 0x40c3a7
cmp dword [esi + 0x40c], ebx
je 0x40c534
push dword [esi + 0xf0]
push esi
call fcn.0040bcf1
mov edi, eax
cmp edi, ebx
jge 0x40c4f3
push str.Failed_to_elevate.
jmp 0x40c3a7
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.0040e1be
mov edi, eax
cmp edi, ebx
jge 0x40c52d
push str.Another_per_machine_setup_is_already_executing.
jmp 0x40c3a7
mov dword [ebp - 0x20], 1
cmp dword [esi + 0x410], ebx
je 0x40c561
push esi
call fcn.00421dfa
mov edi, eax
cmp edi, ebx
jge 0x40c55a
push str.Failed_to_register_bundle.
push edi
call fcn.00430126
pop ecx
pop ecx
jmp 0x40c704
mov dword [ebp - 0x18], 1
cmp dword [esi + 0x480], 3
jne 0x40c5b3
mov eax, dword [esi + 0x4bc]
cmp eax, 0xffffffff
je 0x40c5b3
push 4
lea ecx, [ebp + 0xc]
push ecx
push 0xf0000002
push eax
mov dword [ebp + 0xc], ebx
call fcn.0040338a
mov edi, eax
cmp edi, ebx
jge 0x40c599
push str.Failed_to_send_completion_over_the_pipe.
jmp 0x40c638
push str.Posted_message_to_parent_process_to_signal_that_the_parent_process_can_stop_waiting
push 2
call fcn.0042fd42
pop ecx
pop ecx
lea eax, [esi + 0x4ac]
push eax
call fcn.0040287a
cmp dword [esi + 0x450], ebx
je 0x40c651
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 0x40c160
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 0x40c61e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40c5fc
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40c607
mov edi, 0x80004005
push edi
push 0x26a
push str.core.cpp
call fcn.00432f06
push str.Failed_to_create_cache_thread.
jmp 0x40c638
cmp dword [esi + 0x3e0], 1
je 0x40c651
push eax
call fcn.0040c1e9
mov edi, eax
cmp edi, ebx
jge 0x40c645
push str.Failed_while_caching__aborting_execution.
push edi
call fcn.00430126
pop ecx
pop ecx
jmp 0x40c6cd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp dword [esi + 0x460], ebx
je 0x40c685
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.00423d55
mov edi, eax
push edi
lea eax, [esi + 0xb8]
push eax
call fcn.0040b85d
cmp dword [ebp - 4], ebx
je 0x40c698
push dword [ebp - 4]
call fcn.0040c1e9
cmp edi, ebx
jl 0x40c6cd
mov edi, eax
cmp edi, ebx
jl 0x40c6cd
cmp dword [ebp - 8], ebx
jne 0x40c6cd
cmp dword [ebp - 0x10], ebx
jne 0x40c6cd
cmp dword [ebp + 8], 2
je 0x40c6cd
cmp dword [esi + 0x470], ebx
je 0x40c6cd
push dword [esi + 0x4a4]
lea eax, [esi + 0x400]
push eax
lea eax, [esi + 0xb8]
push eax
call fcn.00422062
cmp dword [ebp - 0x18], ebx
je 0x40c704
cmp dword [ebp - 0x1c], ebx
jne 0x40c6e3
cmp dword [esi + 0x41c], ebx
jne 0x40c6e3
xor ecx, ecx
jmp 0x40c6e6
xor ecx, ecx
inc ecx
cmp edi, ebx
jl 0x40c6f3
cmp dword [ebp - 8], ebx
jne 0x40c6f3
xor eax, eax
jmp 0x40c6f6
xor eax, eax
inc eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push ecx
push eax
push esi
call fcn.00421f9d
cmp dword [ebp - 0x20], ebx
je 0x40c714
push dword [esi + 0x4a4]
call fcn.0040e289
mov dword [esi + 0xf0], ebx
call fcn.004217f4
cmp dword [ebp - 0xc], ebx
je 0x40c736
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 0x40c747
lea eax, [esi + 0xb8]
push eax
call fcn.0040b835
cmp dword [ebp - 4], ebx
je 0x40c755
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 0x40c774
mov dword [esi + 0x18], 1
push dword [esi + 0x18]
call fcn.00411882
push eax
push dword [ebp + 8]
call fcn.00411a2d
push eax
push edi
push 0x2000018f
push 2
call fcn.00401566
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8