Function at 0x41fcd0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c63f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x4c5008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 4
lea ecx, [ebp - 0x1c]
call fcn.00408cd0
lea eax, [edi + 0xc]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41fd31
mov eax, dword [eax]
test eax, eax
je 0x41fd31
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 8]
cmp eax, ecx
je 0x41fd5f
nop word [eax + eax]
cmp edx, dword [eax]
je 0x41ff86
add eax, 0x18
cmp eax, ecx
jne 0x41fd50
xorps xmm0, xmm0
mov dword [ebp - 0x40], edx
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
cmp dword [edi + 8], ecx
je 0x41fd8d
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ecx + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x41fd99
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, edi
call fcn.00422600
mov esi, dword [edi + 0x10]
test esi, esi
je 0x41fdee
push 0
mov ecx, esi
call fcn.004792f0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x41fdbe
cmp byte [eax + 8], 0
je 0x41fdbe
mov esi, dword [edi + 0x10]
jmp 0x41fde6
mov esi, dword [edi + 0x10]
test esi, esi
je 0x41fdee
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x41fddd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 0x10], 0
xor esi, esi
test esi, esi
jne 0x41ff80
mov eax, dword [edi + 0x38]
mov ecx, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x41fe04
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41fe0e
push eax
call ecx
push 0xc
call fcn.004973d4
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push edi
push ecx
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.00479070
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
mov esi, dword [edi + 0x10]
cmp esi, eax
je 0x41fe79
test eax, eax
je 0x41fe57
push 1
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x41fe73
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x41fe73
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
mov dword [edi + 0x10], esi
cmp dword [esi + 8], 0
je 0x41ff80
push 4
lea ecx, [ebp - 0x18]
call fcn.00408cd0
mov eax, dword [esi + 8]
add eax, 0x20
mov dword [ebp - 0x18], eax
je 0x41fea5
mov eax, dword [eax]
test eax, eax
je 0x41fea5
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
jne 0x41fedc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41ff80
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x41fed0
push eax
call esi
mov dword [ebp - 0x18], 0
jmp 0x41ff86
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [esi + 4]
push 1
push eax
call edi
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x478e70
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x41ff36
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call edi
sub eax, 1
jne 0x41ff29
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00479030
jmp 0x41feb2
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41ff4e
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x41feb2
push eax
lea eax, [esi + 4]
push eax
call edi
sub eax, 1
jne 0x41ff73
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00479030
jmp 0x41feb2
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41ffa4
mov eax, dword [eax]
test eax, eax
je 0x41ff9d
push eax
call esi
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004973c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4