Function at 0x412a87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
lea edi, [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx + 0x428]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
push 0x2000012c
push 2
mov dword [ebp - 8], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], ecx
stosd dword es:[edi], eax
call fcn.0040206d
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
lea edi, [ebx + 0xb8]
push edi
call fcn.004099a7
mov esi, eax
test esi, esi
jns 0x412af7
push str.Engine_cannot_start_apply_because_it_is_busy_with_another_action.
push esi
call fcn.00437258
pop ecx
pop ecx
jmp 0x412e3c
lea eax, [ebx + 0x2c0]
push eax
push edi
call fcn.00426f66
xor edx, edx
cmp dword [ebx + 0x460], edx
push 1
pop esi
cmovne edx, esi
cmp dword [ebx + 0x470], 0
je 0x412b1c
inc edx
mov eax, dword [ebx + 0xc8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov eax, dword [ebx + 0xc8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
push eax
push esi
push edi
call fcn.00409b6a
mov esi, eax
test esi, esi
jns 0x412b5a
push esi
push 0x22c
push str.core.cpp
call fcn.00436473
push str.UX_aborted_apply_begin.
jmp 0x412aea
cmp dword [ebx + 0x30], 3
jne 0x412b86
xor eax, eax
mov dword [ebp + 8], 1
push eax
push 0x10
push eax
mov esi, 0x8007015e
push esi
push eax
push 5
push dword [ebx + 0xc8]
call fcn.00409d21
jmp 0x412e3c
lea eax, [ebp - 8]
push eax
push 0
call fcn.00426db6
mov esi, eax
test esi, esi
jns 0x412ba1
push str.Another_per_user_setup_is_already_executing.
jmp 0x412aea
call fcn.00426daa
mov eax, dword [ebp + 0xc]
lea edi, [ebx + 0x88]
push edi
mov dword [ebx + 0xf0], eax
call fcn.00426f97
mov esi, eax
test esi, esi
jns 0x412bd3
push str.Failed_to_set_initial_apply_variables.
push esi
call fcn.00437258
pop ecx
pop ecx
jmp 0x412e36
xor ecx, ecx
cmp dword [ebx + 0x450], ecx
jne 0x412c03
cmp dword [ebx + 0x460], ecx
jne 0x412c03
cmp dword [ebx + 0x470], ecx
jne 0x412c03
cmp dword [ebx + 0x480], ecx
jne 0x412c03
push 0xa000017c
push 2
call fcn.0040206d
jmp 0x412bcc
lea eax, [ebx + 0x4a0]
cmp dword [eax], ecx
jne 0x412c39
push eax
lea eax, [ebx + 0x48]
push eax
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 0x148]
push dword [ebx + 0x110]
call fcn.004152de
mov esi, eax
test esi, esi
jns 0x412c37
push str.Failed_to_cache_engine_to_working_directory.
jmp 0x412bc6
xor ecx, ecx
cmp dword [ebx + 0x41c], ecx
je 0x412c98
push dword [ebx + 0xf0]
push ebx
call fcn.00413349
mov esi, eax
test esi, esi
jns 0x412c5d
push str.Failed_to_elevate.
jmp 0x412bc6
xor eax, eax
cmp dword [ebx + 0x3ec], eax
sete al
push eax
push dword [ebx + 0x494]
push dword [ebx + 0x410]
push edi
push dword [ebx + 0x4b4]
call fcn.004189af
mov esi, eax
test esi, esi
jns 0x412c91
push str.Another_per_machine_setup_is_already_executing.
jmp 0x412bc6
mov dword [ebp - 0x20], 1
cmp dword [ebx + 0x420], 0
je 0x412cc6
push ebx
call fcn.00426dbb
mov esi, eax
test esi, esi
jns 0x412cbf
push str.Failed_to_register_bundle.
push esi
call fcn.00437258
pop ecx
pop ecx
jmp 0x412e25
mov dword [ebp - 0x18], 1
cmp dword [ebx + 0x460], 0
je 0x412d6c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
push 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x41193c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x412d37
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x26e
push str.core.cpp
call fcn.00436473
push str.Failed_to_create_cache_thread.
jmp 0x412d51
cmp dword [ebx + 0x3f0], 0
jne 0x412d6f
push edi
call fcn.004129de
mov esi, eax
test esi, esi
jns 0x412d5e
push str.Failed_while_caching__aborting_execution.
push esi
call fcn.00437258
pop ecx
pop ecx
jmp 0x412dea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0xc], edi
jmp 0x412d6f
mov edi, dword [ebp - 0xc]
cmp dword [ebx + 0x470], 0
je 0x412da2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call fcn.00426c62
mov esi, eax
lea eax, [ebx + 0xb8]
push esi
push eax
call fcn.00409afb
test edi, edi
je 0x412db2
push edi
call fcn.004129de
test esi, esi
js 0x412dea
mov esi, eax
test esi, esi
js 0x412dea
cmp dword [ebp - 4], 0
jne 0x412dea
cmp dword [ebp - 0x10], 0
jne 0x412dea
cmp dword [ebp + 8], 2
je 0x412dea
cmp dword [ebx + 0x480], 0
je 0x412dea
push dword [ebx + 0x4b4]
lea eax, [ebx + 0x410]
push eax
lea eax, [ebx + 0xb8]
push eax
call fcn.00426c39
cmp dword [ebp - 0x18], 0
je 0x412e25
cmp dword [ebp - 0x1c], 0
jne 0x412e06
cmp dword [ebx + 0x42c], 0
jne 0x412e06
xor eax, eax
xor ecx, ecx
inc eax
jmp 0x412e0b
xor eax, eax
inc eax
mov ecx, eax
test esi, esi
js 0x412e17
cmp dword [ebp - 4], 0
jne 0x412e17
xor eax, eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push ecx
push eax
push ebx
call fcn.00426fd2
cmp dword [ebp - 0x20], 0
je 0x412e36
push dword [ebx + 0x4b4]
call fcn.00418a7c
lea edi, [ebx + 0xb8]
and dword [ebx + 0xf0], 0
call fcn.00426fc6
cmp dword [ebp - 8], 0
je 0x412e60
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x412e6c
push edi
call fcn.00409a4d
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412e7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xc8]
push dword [ebp + 8]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
cmp eax, 0x66
jne 0x412e99
mov dword [ebx + 0x18], 1
push dword [ebx + 0x18]
call fcn.0040ffa7
push eax
push dword [ebp + 8]
call fcn.0041053c
push eax
push esi
push 0x2000018f
push 2
call fcn.0040206d
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8