Function at 0x421cbe
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 0x421d33
push str.Apply_cannot_be_done_without_a_successful_Plan.
mov eax, 0x8007139f
push eax
push 0x100
push 5
push 0x27d
push str.d:_awixwix_src_burnenginecore.cpp
mov dword [ebp - 4], eax
call fcn.004012a1
add esp, 0x18
jmp 0x4221ba
cmp dword [esi + 0x4e0], edx
je 0x421d54
push str.Plans_cannot_be_applied_multiple_times.
mov eax, 0x8007139f
push eax
push 0x100
push 5
push 0x281
jmp 0x421d1e
push 0x2000012c
push 2
mov dword [ebp - 0x2c], ebx
call fcn.00409885
pop ecx
pop ecx
lea eax, [esi + 0x214]
push eax
lea edi, [esi + 0xb0]
push edi
call fcn.0044e3c9
xor eax, eax
cmp dword [esi + 0x694], eax
setne al
cmp dword [esi + 0x6a4], 0
je 0x421d8d
inc eax
push eax
push edi
call fcn.0042c416
mov dword [ebp - 4], eax
test eax, eax
jns 0x421dd1
push eax
push 0x295
mov edi, str.d:_awixwix_src_burnenginecore.cpp
push edi
call fcn.0040129e
push str.BA_aborted_apply_begin.
push dword [ebp - 4]
push 0x100
push 5
push 0x295
push edi
call fcn.004012a1
add esp, 0x18
mov edi, dword [ebp - 8]
jmp 0x4221ba
cmp dword [esi + 0x4ec], 0
je 0x421ded
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80070666
push eax
push edi
call fcn.0042c773
jmp 0x421dc9
mov eax, dword [esi + 0x4d0]
mov dword [esi + 0x4e0], eax
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0044e22c
mov dword [ebp - 4], eax
test eax, eax
jns 0x421e24
push str.Another_per_user_setup_is_already_executing.
push eax
push 0x100
push 5
push 0x2a2
push str.d:_awixwix_src_burnenginecore.cpp
jmp 0x421dc1
mov dword [esi + 0x4f0], ebx
mov dword [ebp - 0x28], ebx
call fcn.0044e220
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x114], eax
lea eax, [esi + 0x80]
push eax
call fcn.0044e419
mov dword [ebp - 4], eax
test eax, eax
jns 0x421e62
push str.Failed_to_set_initial_apply_variables.
push eax
push 0x100
push 5
push 0x2ad
jmp 0x421e1d
xor eax, eax
cmp dword [esi + 0x684], eax
jne 0x421e97
cmp dword [esi + 0x694], eax
jne 0x421e97
cmp dword [esi + 0x6a4], eax
jne 0x421e97
cmp dword [esi + 0x6bc], eax
jne 0x421e97
push 0xa000017c
push 2
call fcn.00409885
pop ecx
pop ecx
jmp 0x421dc9
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x718]
cmp dword [eax], 0
jne 0x421ef4
push eax
lea eax, [esi + 0x40]
push eax
push dword [esi + 0x164]
lea eax, [esi + 0x3c0]
push eax
push dword [esi + 0x7ac]
call fcn.0041d44e
mov dword [ebp - 4], eax
test eax, eax
jns 0x421ef4
push str.Failed_to_cache_engine_to_working_directory.
push eax
push 0x100
push 5
push 0x2bd
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x4221b8
cmp dword [esi + 0x4cc], 0
je 0x421f61
push dword [esi + 0x114]
push 0x9003
push esi
call fcn.00422b06
mov dword [ebp - 4], eax
test eax, eax
jns 0x421f29
push str.Failed_to_elevate.
push eax
push 0x100
push 5
push 0x2c4
jmp 0x421ee2
lea eax, [esi + 0x4b0]
push eax
lea eax, [esi + 0x80]
push eax
push edi
push dword [esi + 0x72c]
call fcn.00429445
mov dword [ebp - 4], eax
test eax, eax
jns 0x421f5e
push str.Failed_to_initialize_apply_in_elevated_process.
push eax
push 0x100
push 5
push 0x2c7
jmp 0x421ee2
mov dword [ebp - 0x24], ebx
cmp dword [esi + 0x4d0], 0
je 0x421f9e
push esi
mov dword [ebp - 0x20], ebx
call fcn.0044e23b
mov dword [ebp - 4], eax
test eax, eax
jns 0x421f9e
push str.Failed_to_register_bundle.
push eax
push 0x100
push 5
push 0x2d1
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x422192
cmp dword [esi + 0x694], 0
je 0x42209b
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 0x420c50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x422026
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x421fe4
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
js 0x421ff3
mov eax, 0x80004005
mov dword [ebp - 4], eax
push eax
push 0x2dc
mov edi, str.d:_awixwix_src_burnenginecore.cpp
push edi
call fcn.0040129e
push str.Failed_to_create_cache_thread.
push dword [ebp - 4]
push 0x100
push 5
push 0x2dc
push edi
call fcn.004012a1
add esp, 0x18
jmp 0x42218c
cmp dword [esi + 0x480], 0
mov dword [ebp - 0x1c], ebx
jne 0x42209b
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x40]
call fcn.00470d4d
mov dword [ebp - 4], eax
test eax, eax
jns 0x42206b
push str.Failed_to_wait_for_cache_thread_before_execute.
push eax
push 0x100
push 5
push 0x2e4
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x42216c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
test eax, eax
jns 0x422089
push str.Failed_while_caching__aborting_execution.
push eax
push 0x100
push 5
push 0x2e7
jmp 0x422059
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x42209b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x40], 0
cmp dword [esi + 0x6a4], 0
je 0x4220c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0044dfd5
push eax
push edi
mov dword [ebp - 4], eax
call fcn.0041469d
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x422104
lea ecx, [ebp - 0x10]
push ecx
push 0xffffffffffffffff
push eax
call fcn.00470d4d
test eax, eax
jns 0x4220f8
push str.Failed_to_wait_for_cache_thread_after_execute.
push eax
push 0x100
push 5
push 0x2f8
push str.d:_awixwix_src_burnenginecore.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x422165
cmp dword [ebp - 4], 0
jl 0x422104
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
lea edi, [esi + 0x4b0]
cmp dword [edi], 3
jne 0x422125
and dword [ebp - 0x14], 0
and dword [ebp - 0xc], 0
push 0x20000177
push 2
call fcn.00409885
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
jne 0x422155
cmp dword [ebp - 0xc], 2
je 0x422155
cmp dword [ebp - 4], 0
jl 0x42215f
cmp dword [esi + 0x6bc], 0
je 0x42218c
push dword [esi + 0x72c]
lea eax, [esi + 0xb0]
push edi
push eax
call fcn.0044df68
jmp 0x42218c
xor eax, eax
lea edi, [esi + 0xb0]
jmp 0x422168
lea edi, [esi + 0xb0]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42218c
cmp dword [esi + 0x4dc], 0
jne 0x42218c
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x730]
lea eax, [esi + 0x4b0]
push eax
push edi
call fcn.0044df4d
cmp dword [ebp - 0x20], 0
je 0x4221a7
push dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
push dword [ebp - 0x14]
setl al
push eax
push esi
call fcn.0044e468
cmp dword [ebp - 0x24], 0
je 0x4221b8
push dword [esi + 0x72c]
call fcn.0042959e
mov edi, ebx
and dword [esi + 0x114], 0
cmp dword [ebp - 0x28], 0
je 0x4221cc
call fcn.0044e45c
and dword [esi + 0x4f0], 0
cmp dword [ebp - 0x18], 0
je 0x4221eb
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 0x4221fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x40], 0
test edi, edi
je 0x42220b
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [ebp - 0x2c], 0
je 0x422256
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
lea eax, [esi + 0xb0]
push dword [ebp - 4]
push eax
call fcn.0042c580
cmp dword [ebp - 0x30], ebx
jne 0x422231
mov dword [esi + 0xc], ebx
jmp 0x422234
mov ebx, dword [esi + 0xc]
push ebx
call fcn.004196cb
push eax
push dword [ebp - 0xc]
call fcn.0041a368
push eax
push dword [ebp - 4]
push 0x2000018f
push 2
call fcn.00409885
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8