Function at 0x1002b2d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009de10
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100cc464]
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 esi, dword [ebp + 0x10]
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x1002b30e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], eax
test edi, edi
je 0x1002b337
lock inc dword [edi + 4]
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], edi
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], eax
push 0x38
mov byte [ebp - 4], 1
call fcn.10057dc5
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1002b3a3
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8TaskWindow__AEXABV__shared_ptr_UTaskConfig___2__ZPAV3_ABV42__std__X__V_std__.0
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x14], edi
xor edi, edi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x24], eax
jmp 0x1002b3a5
xor esi, esi
xorps xmm0, xmm0
lea eax, [esi + 0x10]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
test edi, edi
je 0x1002b3de
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002b3db
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002b3db
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [esi + 0x10]
test esi, esi
je 0x1002b3e6
lock inc dword [esi + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x28]
inc eax
mov byte [ebp - 4], 4
cmp ecx, eax
ja 0x1002b408
push 1
lea ecx, [ebx + 0x20]
call fcn.100235b0
mov ecx, dword [ebx + 0x28]
lea eax, [ecx - 1]
and dword [ebx + 0x2c], eax
mov ecx, dword [ebx + 0x30]
add ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ecx + eax], 0
jne 0x1002b445
push 0x28
call fcn.10057dc5
mov ecx, dword [ebx + 0x24]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_447d3a84f4b5039b694ffc8d5cc9a362___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [ebx + 0x30]
cmp dword [ebx + 0x18], 0
jne 0x1002b484
lea eax, [ebx + 0x1c]
push eax
push 0
push ebx
push 0x100227e0
push 0
push 0
call fcn.1007d064
add esp, 0x18
mov dword [ebx + 0x18], eax
mov byte [ebp - 0x19], 1
jmp 0x1002b488
mov byte [ebp - 0x19], 0
test esi, esi
je 0x1002b4ad
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1002b4ad
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1002b4ad
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
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.10058174
mov esp, ebp
pop ebp
ret 0xc