Function at 0x100290c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079b39
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100f8008]
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, 0x101052d5
call fcn.1005cb05
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10029108
xor al, al
jmp 0x1002925a
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x10029119
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.1002b480
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x1c], 0
jbe 0x10029258
nop dword [eax]
nop word [eax + eax]
push 0xc
mov dword [ebp - 0x14], 0
call fcn.1005a97f
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.10047960
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
test esi, esi
je 0x1002919e
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 0x100291c2
mov dword [eax], esi
test esi, esi
je 0x100291bc
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
add dword [edi + 4], 4
jmp 0x100291ce
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.1002b1c0
mov edi, dword [esi + 8]
test edi, edi
je 0x10029222
mov dword [ebp - 0x18], 0
add edi, 0x20
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
je 0x100291f5
mov eax, dword [edi]
test eax, eax
je 0x100291f5
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 0x10029278
mov byte [ebp - 4], 4
test edi, edi
je 0x1002921e
mov eax, dword [edi]
test eax, eax
je 0x10029217
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 0x10029240
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 0x10029150
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.1005a96e
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 0x10047720
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 0x100292d8
push 0xffffffffffffffff
push ebx
call edi
sub eax, 1
jne 0x100292bf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.100478f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10026c70
jmp 0x10029228
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x100292f0
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 0x100292c7
jmp 0x100292ae