Function at 0x40c3ae
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 + 0x420]
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.0040bbd1
mov edi, eax
cmp edi, ebx
jge 0x40c41e
push str.Engine_cannot_start_apply_because_it_is_busy_with_another_action.
push edi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x40c77e
lea eax, [esi + 0x2c0]
push eax
lea edi, [esi + 0xb8]
push edi
call fcn.00421815
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
push eax
push 1
push edi
call fcn.0040bca9
mov edi, eax
cmp edi, ebx
jge 0x40c463
push edi
push 0x21c
push str.core.cpp
call fcn.00432f68
push str.UX_aborted_apply_begin.
jmp 0x40c411
cmp dword [esi + 0x30], 3
jne 0x40c48d
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.0040b840
jmp 0x40c77e
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00421846
mov edi, eax
cmp edi, ebx
jge 0x40c4a7
push str.Another_per_user_setup_is_already_executing.
jmp 0x40c411
call fcn.004217ce
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xf0], eax
lea eax, [esi + 0x88]
push eax
call fcn.004217e6
mov edi, eax
cmp edi, ebx
jge 0x40c4d1
push str.Failed_to_set_initial_apply_variables.
jmp 0x40c411
cmp dword [esi + 0x448], ebx
jne 0x40c502
cmp dword [esi + 0x458], ebx
jne 0x40c502
cmp dword [esi + 0x468], ebx
jne 0x40c502
cmp dword [esi + 0x478], ebx
jne 0x40c502
push 0xa000017c
push 2
call fcn.00401566
jmp 0x40c417
lea eax, [esi + 0x498]
cmp dword [eax], ebx
jne 0x40c539
push eax
lea eax, [esi + 0x48]
push eax
lea eax, [esi + 0xbc]
push eax
push dword [esi + 0x140]
push dword [esi + 0x108]
call fcn.004189c7
mov edi, eax
cmp edi, ebx
jge 0x40c539
push str.Failed_to_cache_engine_to_working_directory.
jmp 0x40c411
cmp dword [esi + 0x414], ebx
je 0x40c59e
push dword [esi + 0xf0]
push esi
call fcn.0040bd5b
mov edi, eax
cmp edi, ebx
jge 0x40c55d
push str.Failed_to_elevate.
jmp 0x40c411
xor eax, eax
cmp dword [esi + 0x3e4], ebx
sete al
push eax
push dword [esi + 0x48c]
lea eax, [esi + 0x88]
push dword [esi + 0x408]
push eax
push dword [esi + 0x4ac]
call fcn.0040e228
mov edi, eax
cmp edi, ebx
jge 0x40c597
push str.Another_per_machine_setup_is_already_executing.
jmp 0x40c411
mov dword [ebp - 0x20], 1
cmp dword [esi + 0x418], ebx
je 0x40c5cb
push esi
call fcn.00421de0
mov edi, eax
cmp edi, ebx
jge 0x40c5c4
push str.Failed_to_register_bundle.
push edi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x40c76e
mov dword [ebp - 0x18], 1
cmp dword [esi + 0x488], 3
jne 0x40c61d
mov eax, dword [esi + 0x4c4]
cmp eax, 0xffffffff
je 0x40c61d
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 0x40c603
push str.Failed_to_send_completion_over_the_pipe.
jmp 0x40c6a2
push str.Posted_message_to_parent_process_to_signal_that_the_parent_process_can_stop_waiting
push 2
call fcn.0042fd12
pop ecx
pop ecx
lea eax, [esi + 0x4b4]
push eax
call fcn.0040287a
cmp dword [esi + 0x458], ebx
je 0x40c6bb
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 0x40c1ca
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 0x40c688
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40c666
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40c671
mov edi, 0x80004005
push edi
push 0x26a
push str.core.cpp
call fcn.00432f68
push str.Failed_to_create_cache_thread.
jmp 0x40c6a2
cmp dword [esi + 0x3e8], 1
je 0x40c6bb
push eax
call fcn.0040c253
mov edi, eax
cmp edi, ebx
jge 0x40c6af
push str.Failed_while_caching__aborting_execution.
push edi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x40c737
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp dword [esi + 0x468], ebx
je 0x40c6ef
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.00423d30
mov edi, eax
push edi
lea eax, [esi + 0xb8]
push eax
call fcn.0040b8c7
cmp dword [ebp - 4], ebx
je 0x40c702
push dword [ebp - 4]
call fcn.0040c253
cmp edi, ebx
jl 0x40c737
mov edi, eax
cmp edi, ebx
jl 0x40c737
cmp dword [ebp - 8], ebx
jne 0x40c737
cmp dword [ebp - 0x10], ebx
jne 0x40c737
cmp dword [ebp + 8], 2
je 0x40c737
cmp dword [esi + 0x478], ebx
je 0x40c737
push dword [esi + 0x4ac]
lea eax, [esi + 0x408]
push eax
lea eax, [esi + 0xb8]
push eax
call fcn.00422048
cmp dword [ebp - 0x18], ebx
je 0x40c76e
cmp dword [ebp - 0x1c], ebx
jne 0x40c74d
cmp dword [esi + 0x424], ebx
jne 0x40c74d
xor ecx, ecx
jmp 0x40c750
xor ecx, ecx
inc ecx
cmp edi, ebx
jl 0x40c75d
cmp dword [ebp - 8], ebx
jne 0x40c75d
xor eax, eax
jmp 0x40c760
xor eax, eax
inc eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push ecx
push eax
push esi
call fcn.00421f83
cmp dword [ebp - 0x20], ebx
je 0x40c77e
push dword [esi + 0x4ac]
call fcn.0040e2f3
mov dword [esi + 0xf0], ebx
call fcn.004217da
cmp dword [ebp - 0xc], ebx
je 0x40c7a0
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 0x40c7b1
lea eax, [esi + 0xb8]
push eax
call fcn.0040b89f
cmp dword [ebp - 4], ebx
je 0x40c7bf
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 0x40c7de
mov dword [esi + 0x18], 1
push dword [esi + 0x18]
call fcn.004118ef
push eax
push dword [ebp + 8]
call fcn.00411a9a
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