Function at 0x1002ab50
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a8f9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov ecx, 0x100c3579
call fcn.10071035
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1002ab98
xor al, al
jmp 0x1002acea
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x1002aba9
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebx + 0x28]
lea edi, [ebx + 0x24]
push ecx
mov ecx, dword [edi]
mov dword [ebp - 0x24], edi
call fcn.1002cf10
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x1c], 0
jbe 0x1002ace8
nop dword [eax]
nop word [eax + eax]
push 0xc
mov dword [ebp - 0x14], 0
call fcn.1006efed
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push ebx
push ecx
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.1005dfe0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
test esi, esi
je 0x1002ac2e
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x1002ac52
mov dword [eax], esi
test esi, esi
je 0x1002ac4c
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
add dword [edi + 4], 4
jmp 0x1002ac5e
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.1002cc50
mov edi, dword [esi + 8]
test edi, edi
je 0x1002acb2
mov dword [ebp - 0x18], 0
add edi, 0x20
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
je 0x1002ac85
mov eax, dword [edi]
test eax, eax
je 0x1002ac85
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 3
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
jne 0x1002ad08
mov byte [ebp - 4], 4
test edi, edi
je 0x1002acae
mov eax, dword [edi]
test eax, eax
je 0x1002aca7
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
push ebx
call edi
sub eax, 1
jne 0x1002acd0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
inc ebx
mov dword [ebp - 0x1c], ebx
cmp ebx, dword [eax + 0x44]
mov ebx, eax
jb 0x1002abe0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 1
push ebx
call edi
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1005dd90
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 0x1002ad68
push 0xffffffffffffffff
push ebx
call edi
sub eax, 1
jne 0x1002ad4f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1005df60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10028740
jmp 0x1002acb8
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1002ad80
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 0x1002ad57
jmp 0x1002ad3e