Function at 0x42f0c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x47900c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
lea edx, [esp + 0x14]
push edi
xorps xmm0, xmm0
mov dword [esp + 0x14], esi
xor eax, eax
lea edi, [esi + esi*2]
mov dword [esp + 0xc], eax
shl edi, 4
push 0x20
movups xmmword [esp + 0x1c], xmm0
mov ecx, dword [edi + 0x47b80c]
movups xmmword [esp + 0x2c], xmm0
call fcn.0042f000
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42f352
lea eax, [esp + 0x18]
cmp dword [eax], 0x55aaa5ff
je 0x42f135
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
call fcn.0042ef40
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x1c]
cmp eax, 0x20
jbe 0x42f18d
lea ebx, [eax - 0x20]
push ebx
mov dword [esp + 0x10], ebx
call fcn.004443a0
mov ecx, dword [edi + 0x47b80c]
add esp, 4
mov edx, eax
mov dword [esp + 0x10], eax
push ebx
call fcn.0042f000
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x10]
test ebx, ebx
jne 0x42f18f
test eax, eax
mov ecx, 5
cmove ebx, ecx
jmp 0x42f18f
xor eax, eax
test esi, esi
je 0x42f343
mov dword [esi + 0xc], eax
test ebx, ebx
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, ebx
cmove eax, dword [esp + 0x30]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x28]
mov eax, ecx
or eax, dword [esp + 0x2c]
je 0x42f1c3
mov dword [esi + 0x10], ecx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0
je 0x42f1eb
mov eax, dword [esi + 4]
cmp eax, 0x106
je 0x42f1e1
cmp eax, 0x401
je 0x42f1e1
cmp eax, 0x201
jne 0x42f1eb
mov ecx, 1
mov dword [esi + 0x1c], ecx
jmp 0x42f1ed
xor ecx, ecx
mov eax, dword [esi]
test eax, eax
je 0x42f20e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x42f350
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push dword [edi + 0x47b814]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x20], 0
mov dword [esi + 0x1c], 1
jne 0x42f2a5
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0x47b818]
call fcn.00430330
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42f26e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42f285
push eax
call fcn.0043da60
add esp, 4
mov dword [esi + 0xc], 0
push esi
call fcn.0043da60
mov esi, dword [esp + 0x18]
xor eax, eax
add esp, 4
mov ecx, 1
cmp esi, 3
cmova eax, ecx
mov dword [esp + 0xc], eax
jmp 0x42f2a9
mov esi, dword [esp + 0x14]
push dword [edi + 0x47b814]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0xc], 0
je 0x42f350
push 0xffffffffffffffff
push dword [edi + 0x47b808]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0x47b824], 1
jne 0x42f316
push 0
push 0
push esi
push fcn.00403910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42f323
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x47b808]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x47b824]
dec eax
mov dword [edi + 0x47b824], eax
push dword [edi + 0x47b808]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x42f350
push eax
call fcn.0043da60
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret