Function at 0x140029494
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
xor edi, edi
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x31], rdi
xor edx, edx
mov dword [rbp - 0x3d], edi
lea rcx, [rbp - 0x19]
mov dword [rbp - 0x41], edi
lea r8d, [rdi + 0x40]
mov dword [rbp - 0x45], edi
mov r12d, edi
mov dword [rbp + 0x7f], edi
mov r13d, edi
call fcn.1400547d0
xor eax, eax
mov dword [rbp - 0x49], edi
mov r14d, edi
mov r15d, edi
mov dword [rbp - 0x39], edi
mov qword [rbp - 0x29], rax
lea edi, [rax + 1]
mov qword [rbp - 0x21], rax
cmp dword [rbx + 4], eax
jne 0x140029535
lea rcx, str.Apply_cannot_be_done_without_a_successful_Plan.
mov edx, 0x28e
mov qword [rsp + 0x28], rcx
mov eax, 0x8007139f
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
mov dword [rsp + 0x20], eax
mov r9d, 0x100
mov dword [rbp + 0x67], eax
mov r8d, 5
call fcn.1400012b4
jmp 0x140029a24
cmp dword [rbx + 0x764], eax
je 0x14002954b
lea rcx, str.Plans_cannot_be_applied_multiple_times.
mov edx, 0x292
jmp 0x140029507
mov edx, 0x2000012c
mov dword [rbp - 0x3d], edi
mov ecx, 2
call fcn.140009b38
lea r14, [rbx + 0xf8]
mov rcx, r14
lea rdx, [rbx + 0x330]
call fcn.14004ffac
xor eax, eax
mov rcx, r14
cmp dword [rbx + 0x9e8], eax
setne al
cmp dword [rbx + 0xa08], r12d
lea edx, [rax + 1]
cmove edx, eax
call fcn.140015ff8
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x1400295e5
mov esi, 0x2a6
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
mov edx, esi
mov r8d, eax
call fcn.1400012b0
lea rax, str.BA_aborted_apply_begin.
mov edx, esi
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x67]
mov r8d, 5
mov dword [rsp + 0x20], eax
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
call fcn.1400012b4
mov r14d, r12d
jmp 0x140029a24
cmp dword [rbx + 0x774], r12d
je 0x140029603
lea rdx, [rbp + 0x67]
mov dword [rbp + 0x67], 0x80070666
mov rcx, r14
call fcn.140016110
jmp 0x1400295dd
mov eax, dword [rbx + 0x754]
lea rdx, [rbp - 0x31]
xor ecx, ecx
mov dword [rbx + 0x764], eax
call fcn.14004fdc8
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x140029634
lea rcx, str.Another_per_user_setup_is_already_executing.
mov edx, 0x2b3
mov qword [rsp + 0x28], rcx
jmp 0x1400295c1
mov dword [rbx + 0x778], edi
mov dword [rbp - 0x41], edi
call fcn.14004fdbc
mov qword [rbx + 0x160], rsi
lea rsi, [rbx + 0xa8]
mov rcx, rsi
call fcn.14004fff8
xor ecx, ecx
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x140029677
lea rcx, str.Failed_to_set_initial_apply_variables.
mov edx, 0x2be
mov qword [rsp + 0x28], rcx
jmp 0x1400295c1
cmp dword [rbx + 0x9c8], ecx
jne 0x1400296ab
cmp dword [rbx + 0x9e8], ecx
jne 0x1400296ab
cmp dword [rbx + 0xa08], ecx
jne 0x1400296ab
cmp dword [rbx + 0xa38], ecx
jne 0x1400296ab
mov edx, 0xa000017c
mov ecx, 2
call fcn.140009b38
jmp 0x1400295dd
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r9, [rbx + 0xae8]
cmp qword [r9], r12
jne 0x140029711
mov rdx, qword [rbx + 0x1f0]
lea r8, [rbx + 0x58]
lea rcx, [rbx + 0x5c0]
call fcn.140023a80
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x140029711
lea rcx, str.Failed_to_cache_engine_to_working_directory.
mov edx, 0x2ce
mov qword [rsp + 0x28], rcx
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
mov dword [rsp + 0x20], eax
mov r8d, 5
call fcn.1400012b4
jmp 0x140029a21
cmp dword [rbx + 0x750], r12d
je 0x140029777
mov r8, qword [rbx + 0x160]
mov edx, 0x9003
mov rcx, rbx
call fcn.14002a934
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x140029743
lea rcx, str.Failed_to_elevate.
mov edx, 0x2d5
jmp 0x1400296eb
mov rcx, qword [rbx + 0xb10]
lea r9, [rbx + 0x718]
mov r8, rsi
mov rdx, r14
call fcn.140032590
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x140029774
lea rcx, str.Failed_to_initialize_apply_in_elevated_process.
mov edx, 0x2d8
jmp 0x1400296eb
mov r12d, edi
cmp dword [rbx + 0x754], r13d
je 0x1400297c4
mov rcx, rbx
mov r13d, edi
call fcn.14004fdd0
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x1400297c4
lea rcx, str.Failed_to_register_bundle.
mov edx, 0x2e2
mov qword [rsp + 0x28], rcx
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
mov dword [rsp + 0x20], eax
mov r8d, 5
call fcn.1400012b4
jmp 0x1400299f8
or esi, 0xffffffff
cmp dword [rbx + 0x9e8], r15d
je 0x1400298f7
and qword [rsp + 0x28], r15
lea rax, [rbp - 0x19]
and dword [rsp + 0x20], r15d
lea r9, [rbp - 0x29]
lea r8, [0x140027fb0]
mov qword [rbp - 0x21], rax
xor edx, edx
mov qword [rbp - 0x29], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x17], rax
test rax, rax
jne 0x140029874
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
mov esi, 0x2ed
or r8d, 0x80070000
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
test eax, eax
mov edx, esi
cmovle r8d, eax
mov eax, 0x80004005
test r8d, r8d
cmovns r8d, eax
mov dword [rbp + 0x67], r8d
call fcn.1400012b0
lea rax, str.Failed_to_create_cache_thread.
mov r9d, 0x100
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
mov eax, dword [rbp + 0x67]
mov r8d, 5
mov edx, esi
mov dword [rsp + 0x20], eax
call fcn.1400012b4
jmp 0x1400299f3
cmp dword [rbx + 0x6cc], 0
mov r15d, edi
jne 0x1400298f7
mov rcx, qword [rbp + 0x17]
lea r8, [rbp - 0x49]
mov edx, esi
call fcn.140076c4c
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x1400298c8
lea rcx, str.Failed_to_wait_for_cache_thread_before_execute.
mov edx, 0x2f5
mov qword [rsp + 0x28], rcx
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
mov dword [rsp + 0x20], eax
mov r8d, 5
call fcn.1400012b4
jmp 0x1400299d0
mov eax, dword [rbp - 0x49]
mov dword [rbp + 0x67], eax
test eax, eax
jns 0x1400298e0
lea rcx, str.Failed_while_caching__aborting_execution.
mov edx, 0x2f8
jmp 0x1400298a2
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x1400298f7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp + 0x17], 0
cmp dword [rbx + 0xa08], 0
je 0x140029921
lea r9, [rbp + 0x7f]
mov rcx, rbx
lea r8, [rbp - 0x45]
lea rdx, [rbp - 0x19]
call fcn.14004fb1c
mov edx, eax
mov dword [rbp + 0x67], eax
mov rcx, r14
call fcn.140015e04
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x140029977
lea r8, [rbp - 0x49]
mov edx, esi
mov rcx, rax
call fcn.140076c4c
test eax, eax
jns 0x14002996b
lea rcx, str.Failed_to_wait_for_cache_thread_after_execute.
mov edx, 0x309
mov qword [rsp + 0x28], rcx
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnenginecore.cpp
mov dword [rsp + 0x20], eax
mov r8d, 5
call fcn.1400012b4
jmp 0x1400299cb
mov eax, dword [rbp + 0x67]
test eax, eax
cmovns eax, dword [rbp - 0x49]
mov dword [rbp + 0x67], eax
lea rsi, [rbx + 0x718]
cmp dword [rsi], 3
jne 0x14002999a
and dword [rbp - 0x45], 0
mov edx, 0x20000177
and dword [rbp + 0x7f], 0
mov ecx, 2
call fcn.140009b38
xor eax, eax
cmp dword [rbp - 0x45], eax
jne 0x1400299c8
cmp dword [rbp + 0x7f], 2
je 0x1400299c8
cmp dword [rbp + 0x67], eax
jl 0x1400299cb
cmp dword [rbx + 0xa38], eax
je 0x1400299f3
mov r8, qword [rbx + 0xb10]
mov rdx, rsi
mov rcx, r14
call fcn.14004fa88
jmp 0x1400299f3
xor r15d, r15d
test r15d, r15d
je 0x1400299f3
cmp dword [rbx + 0x760], 0
jne 0x1400299f3
mov r8, qword [rbx + 0xb18]
lea rdx, [rbx + 0x718]
lea r9, [rbp - 0x19]
mov rcx, r14
call fcn.14004f9e0
test r13d, r13d
je 0x140029a10
mov r9d, dword [rbp + 0x7f]
xor edx, edx
cmp dword [rbp + 0x67], edx
mov rcx, rbx
mov r8d, dword [rbp - 0x45]
setl dl
call fcn.140050060
test r12d, r12d
je 0x140029a21
mov rcx, qword [rbx + 0xb10]
call fcn.140032724
mov r14d, edi
and qword [rbx + 0x160], 0
cmp dword [rbp - 0x41], 0
je 0x140029a37
call fcn.140050054
and dword [rbx + 0x778], 0
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140029a57
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x140029a6e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp + 0x17], 0
test r14d, r14d
je 0x140029a7d
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [rbp - 0x3d], 0
je 0x140029ad4
mov r8d, dword [rbp + 0x7f]
lea rcx, [rbx + 0xf8]
mov edx, dword [rbp + 0x67]
lea r9, [rbp - 0x39]
call fcn.140016070
cmp dword [rbp - 0x39], edi
jne 0x140029aa4
mov dword [rbx + 0xc], edi
jmp 0x140029aa7
mov edi, dword [rbx + 0xc]
mov ecx, edi
call fcn.14001e7f8
mov ecx, dword [rbp + 0x7f]
mov rbx, rax
call fcn.14001f664
mov r8d, dword [rbp + 0x67]
mov r9, rax
mov edx, 0x2000018f
mov qword [rsp + 0x20], rbx
mov ecx, 2
call fcn.140009b38
mov eax, dword [rbp + 0x67]
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret