Function at 0x422cde
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
xor edx, edx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 9
pop ecx
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x18], edx
rep stosd dword es:[edi], eax
mov edi, edx
mov dword [ebp - 0x2c], edx
inc ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], edx
cmp dword [esi + 4], edx
jne 0x422d53
push str.Apply_cannot_be_done_without_a_successful_Plan.
mov eax, 0x8007139f
push eax
push 0x100
push 5
push 0x28e
push str.d:_awixwix_src_burnenginecore.cpp
mov dword [ebp - 4], eax
call fcn.00401228
add esp, 0x18
jmp 0x4231d4
cmp dword [esi + 0x4b0], edx
je 0x422d74
push str.Plans_cannot_be_applied_multiple_times.
mov eax, 0x8007139f
push eax
push 0x100
push 5
push 0x292
jmp 0x422d3e
push 0x2000012c
push 2
mov dword [ebp - 0x2c], ebx
call fcn.00408119
pop ecx
pop ecx
lea eax, [esi + 0x1ec]
push eax
lea edi, [esi + 0xb0]
push edi
call fcn.00443749
xor eax, eax
cmp dword [esi + 0x664], eax
setne al
cmp dword [esi + 0x674], 0
je 0x422dad
inc eax
push eax
push edi
call fcn.00412d6e
mov dword [ebp - 4], eax
test eax, eax
jns 0x422df1
push eax
push 0x2a6
mov edi, str.d:_awixwix_src_burnenginecore.cpp
push edi
call fcn.00401225
push str.BA_aborted_apply_begin.
push dword [ebp - 4]
push 0x100
push 5
push 0x2a6
push edi
call fcn.00401228
add esp, 0x18
mov edi, dword [ebp - 8]
jmp 0x4231d4
cmp dword [esi + 0x4bc], 0
je 0x422e0d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80070666
push eax
push edi
call fcn.00412e5b
jmp 0x422de9
mov eax, dword [esi + 0x4a0]
mov dword [esi + 0x4b0], eax
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.004435ac
mov dword [ebp - 4], eax
test eax, eax
jns 0x422e44
push str.Another_per_user_setup_is_already_executing.
push eax
push 0x100
push 5
push 0x2b3
push str.d:_awixwix_src_burnenginecore.cpp
jmp 0x422de1
mov dword [esi + 0x4c0], ebx
mov dword [ebp - 0x28], ebx
call fcn.004435a0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xec], eax
lea eax, [esi + 0x80]
push eax
call fcn.00443799
mov dword [ebp - 4], eax
test eax, eax
jns 0x422e82
push str.Failed_to_set_initial_apply_variables.
push eax
push 0x100
push 5
push 0x2be
jmp 0x422e3d
xor eax, eax
cmp dword [esi + 0x654], eax
jne 0x422eb7
cmp dword [esi + 0x664], eax
jne 0x422eb7
cmp dword [esi + 0x674], eax
jne 0x422eb7
cmp dword [esi + 0x68c], eax
jne 0x422eb7
push 0xa000017c
push 2
call fcn.00408119
pop ecx
pop ecx
jmp 0x422de9
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x6e8]
cmp dword [eax], 0
jne 0x422f0e
push eax
lea eax, [esi + 0x40]
push eax
push dword [esi + 0x13c]
lea eax, [esi + 0x390]
push eax
call fcn.0041e530
mov dword [ebp - 4], eax
test eax, eax
jns 0x422f0e
push str.Failed_to_cache_engine_to_working_directory.
push eax
push 0x100
push 5
push 0x2ce
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.00401228
add esp, 0x18
jmp 0x4231d2
cmp dword [esi + 0x49c], 0
je 0x422f7b
push dword [esi + 0xec]
push 0x9003
push esi
call fcn.00423e92
mov dword [ebp - 4], eax
test eax, eax
jns 0x422f43
push str.Failed_to_elevate.
push eax
push 0x100
push 5
push 0x2d5
jmp 0x422efc
lea eax, [esi + 0x480]
push eax
lea eax, [esi + 0x80]
push eax
push edi
push dword [esi + 0x6fc]
call fcn.0042a9c5
mov dword [ebp - 4], eax
test eax, eax
jns 0x422f78
push str.Failed_to_initialize_apply_in_elevated_process.
push eax
push 0x100
push 5
push 0x2d8
jmp 0x422efc
mov dword [ebp - 0x24], ebx
cmp dword [esi + 0x4a0], 0
je 0x422fb8
push esi
mov dword [ebp - 0x20], ebx
call fcn.004435bb
mov dword [ebp - 4], eax
test eax, eax
jns 0x422fb8
push str.Failed_to_register_bundle.
push eax
push 0x100
push 5
push 0x2e2
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.00401228
add esp, 0x18
jmp 0x4231ac
cmp dword [esi + 0x664], 0
je 0x4230b5
push 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x38], esi
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0x421d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x423040
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x422ffe
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
js 0x42300d
mov eax, 0x80004005
mov dword [ebp - 4], eax
push eax
push 0x2ed
mov edi, str.d:_awixwix_src_burnenginecore.cpp
push edi
call fcn.00401225
push str.Failed_to_create_cache_thread.
push dword [ebp - 4]
push 0x100
push 5
push 0x2ed
push edi
call fcn.00401228
add esp, 0x18
jmp 0x4231a6
cmp dword [esi + 0x450], 0
mov dword [ebp - 0x1c], ebx
jne 0x4230b5
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x40]
call fcn.0046691e
mov dword [ebp - 4], eax
test eax, eax
jns 0x423085
push str.Failed_to_wait_for_cache_thread_before_execute.
push eax
push 0x100
push 5
push 0x2f5
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.00401228
add esp, 0x18
jmp 0x423186
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
test eax, eax
jns 0x4230a3
push str.Failed_while_caching__aborting_execution.
push eax
push 0x100
push 5
push 0x2f8
jmp 0x423073
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4230b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x40], 0
cmp dword [esi + 0x674], 0
je 0x4230da
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.00443355
push eax
push edi
mov dword [ebp - 4], eax
call fcn.00412bbb
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x42311e
lea ecx, [ebp - 0x10]
push ecx
push 0xffffffffffffffff
push eax
call fcn.0046691e
test eax, eax
jns 0x423112
push str.Failed_to_wait_for_cache_thread_after_execute.
push eax
push 0x100
push 5
push 0x309
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.00401228
add esp, 0x18
jmp 0x42317f
cmp dword [ebp - 4], 0
jl 0x42311e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
lea edi, [esi + 0x480]
cmp dword [edi], 3
jne 0x42313f
and dword [ebp - 0x14], 0
and dword [ebp - 0xc], 0
push 0x20000177
push 2
call fcn.00408119
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
jne 0x42316f
cmp dword [ebp - 0xc], 2
je 0x42316f
cmp dword [ebp - 4], 0
jl 0x423179
cmp dword [esi + 0x68c], 0
je 0x4231a6
push dword [esi + 0x6fc]
lea eax, [esi + 0xb0]
push edi
push eax
call fcn.004432e8
jmp 0x4231a6
xor eax, eax
lea edi, [esi + 0xb0]
jmp 0x423182
lea edi, [esi + 0xb0]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4231a6
cmp dword [esi + 0x4ac], 0
jne 0x4231a6
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x700]
lea eax, [esi + 0x480]
push eax
push edi
call fcn.004432cd
cmp dword [ebp - 0x20], 0
je 0x4231c1
push dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
push dword [ebp - 0x14]
setl al
push eax
push esi
call fcn.004437e8
cmp dword [ebp - 0x24], 0
je 0x4231d2
push dword [esi + 0x6fc]
call fcn.0042ab1e
mov edi, ebx
and dword [esi + 0xec], 0
cmp dword [ebp - 0x28], 0
je 0x4231e6
call fcn.004437dc
and dword [esi + 0x4c0], 0
cmp dword [ebp - 0x18], 0
je 0x423205
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x423217
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x40], 0
test edi, edi
je 0x423225
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [ebp - 0x2c], 0
je 0x423270
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
lea eax, [esi + 0xb0]
push dword [ebp - 4]
push eax
call fcn.00412dd3
cmp dword [ebp - 0x30], ebx
jne 0x42324b
mov dword [esi + 0xc], ebx
jmp 0x42324e
mov ebx, dword [esi + 0xc]
push ebx
call fcn.0041a209
push eax
push dword [ebp - 0xc]
call fcn.0041aeba
push eax
push dword [ebp - 4]
push 0x2000018f
push 2
call fcn.00408119
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8