Function at 0x40bd24
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 + 0x3f0]
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.004015e7
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
lea eax, [esi + 0xb8]
push ecx
push eax
call fcn.0040b59c
mov edi, eax
cmp edi, ebx
jge 0x40bd94
push str.Engine_cannot_start_apply_because_it_is_busy_with_another_action.
push edi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x40c0a1
lea eax, [esi + 0x2a8]
push eax
lea edi, [esi + 0xb8]
push edi
call fcn.0041f2b1
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
push eax
push 1
push edi
call fcn.0040b674
mov edi, eax
cmp edi, ebx
jge 0x40bdd9
push edi
push 0x20c
push str.core.cpp
call fcn.0042fdc3
push str.UX_aborted_apply_begin.
jmp 0x40bd87
cmp dword [esi + 0x30], 3
jne 0x40be03
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.0040b20b
jmp 0x40c0a1
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0041f2e2
mov edi, eax
cmp edi, ebx
jge 0x40be1d
push str.Another_per_user_setup_is_already_executing.
jmp 0x40bd87
call fcn.0041f26a
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xf0], eax
lea eax, [esi + 0x88]
push eax
call fcn.0041f282
mov edi, eax
cmp edi, ebx
jge 0x40be47
push str.Failed_to_set_initial_apply_variables.
jmp 0x40bd87
cmp dword [esi + 0x418], ebx
jne 0x40be78
cmp dword [esi + 0x428], ebx
jne 0x40be78
cmp dword [esi + 0x438], ebx
jne 0x40be78
cmp dword [esi + 0x448], ebx
jne 0x40be78
push 0xa000017c
push 2
call fcn.004015e7
jmp 0x40bd8d
lea eax, [esi + 0x468]
cmp dword [eax], ebx
jne 0x40beaf
push eax
lea eax, [esi + 0x48]
push eax
lea eax, [esi + 0xbc]
push eax
push dword [esi + 0x140]
push dword [esi + 0x104]
call fcn.00417244
mov edi, eax
cmp edi, ebx
jge 0x40beaf
push str.Failed_to_cache_engine_to_working_directory.
jmp 0x40bd87
cmp dword [esi + 0x3e4], ebx
je 0x40bf14
push dword [esi + 0xf0]
push esi
call fcn.0040b726
mov edi, eax
cmp edi, ebx
jge 0x40bed3
push str.Failed_to_elevate.
jmp 0x40bd87
xor eax, eax
cmp dword [esi + 0x3b4], ebx
sete al
push eax
push dword [esi + 0x45c]
lea eax, [esi + 0x88]
push dword [esi + 0x3d8]
push eax
push dword [esi + 0x47c]
call fcn.0040d86c
mov edi, eax
cmp edi, ebx
jge 0x40bf0d
push str.Another_per_machine_setup_is_already_executing.
jmp 0x40bd87
mov dword [ebp - 0x20], 1
cmp dword [esi + 0x3e8], ebx
je 0x40bf41
push esi
call fcn.0041f87c
mov edi, eax
cmp edi, ebx
jge 0x40bf3a
push str.Failed_to_register_bundle.
push edi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x40c091
mov dword [ebp - 0x18], 1
cmp dword [esi + 0x428], ebx
je 0x40bfde
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 0x40bb40
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 0x40bfac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40bf8a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40bf95
mov edi, 0x80004005
push edi
push 0x24e
push str.core.cpp
call fcn.0042fdc3
push str.Failed_to_create_cache_thread.
jmp 0x40bfc5
cmp dword [esi + 0x3b8], ebx
jne 0x40bfde
push eax
call fcn.0040bbc9
mov edi, eax
cmp edi, ebx
jge 0x40bfd2
push str.Failed_while_caching__aborting_execution.
push edi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x40c05a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp dword [esi + 0x438], ebx
je 0x40c012
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.0042174e
mov edi, eax
push edi
lea eax, [esi + 0xb8]
push eax
call fcn.0040b292
cmp dword [ebp - 4], ebx
je 0x40c025
push dword [ebp - 4]
call fcn.0040bbc9
cmp edi, ebx
jl 0x40c05a
mov edi, eax
cmp edi, ebx
jl 0x40c05a
cmp dword [ebp - 8], ebx
jne 0x40c05a
cmp dword [ebp - 0x10], ebx
jne 0x40c05a
cmp dword [ebp + 8], 2
je 0x40c05a
cmp dword [esi + 0x448], ebx
je 0x40c05a
push dword [esi + 0x47c]
lea eax, [esi + 0x3d8]
push eax
lea eax, [esi + 0xb8]
push eax
call fcn.0041fad8
cmp dword [ebp - 0x18], ebx
je 0x40c091
cmp dword [ebp - 0x1c], ebx
jne 0x40c070
cmp dword [esi + 0x3f4], ebx
jne 0x40c070
xor ecx, ecx
jmp 0x40c073
xor ecx, ecx
inc ecx
cmp edi, ebx
jl 0x40c080
cmp dword [ebp - 8], ebx
jne 0x40c080
xor eax, eax
jmp 0x40c083
xor eax, eax
inc eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push ecx
push eax
push esi
call fcn.0041fa13
cmp dword [ebp - 0x20], ebx
je 0x40c0a1
push dword [esi + 0x47c]
call fcn.0040d937
mov dword [esi + 0xf0], ebx
call fcn.0041f276
cmp dword [ebp - 0xc], ebx
je 0x40c0c3
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 0x40c0d4
lea eax, [esi + 0xb8]
push eax
call fcn.0040b26a
cmp dword [ebp - 4], ebx
je 0x40c0e2
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 + 0xc8]
cmp eax, 0x66
jne 0x40c101
mov dword [esi + 0x18], 1
push dword [esi + 0x18]
call fcn.00410b70
push eax
push dword [ebp + 8]
call fcn.00410d1b
push eax
push edi
push 0x2000018f
push 2
call fcn.004015e7
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8