Function at 0x468840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5c5244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x46887f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00428580
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], 1
push eax
call fcn.00469730
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, 1
mov dword [ebp - 0x10], eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2c]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x20]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468936
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test ebx, ebx
je 0x468952
lock inc dword [ebx + 4]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0x10
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
inc eax
cmp ecx, eax
ja 0x46897a
push 1
lea ecx, [esi + 0x20]
call fcn.0047d4f0
mov ecx, dword [esi + 0x28]
lea eax, [ecx - 1]
and dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
add ecx, dword [esi + 0x2c]
dec eax
mov edx, dword [esi + 0x24]
and eax, ecx
shl eax, 2
mov dword [ebp + 8], eax
cmp dword [edx + eax], 0
jne 0x4689b4
push 0x28
call fcn.004d9f7d
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, dword [esi + 0x24]
mov dword [edx + ecx], eax
mov edx, dword [esi + 0x24]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx]
lea eax, [ebp - 0x1c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0x12
mov dword [edx + 0x24], 0
mov byte [ebp - 4], 0x13
lea ecx, [edx + 4]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x1c]
mov dword [edx], vtable.std::_Func_impl_no_alloc_class__lambda_5a7b5c0bf2fec09f0909d758471e05f4___void___.0
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x14], edx
mov dword [ecx + 4], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0x13
mov dword [edx + 0x24], edx
mov byte [ebp - 4], 0x10
inc dword [esi + 0x30]
mov byte [ebp - 4], 9
cmp dword [esi + 0x18], 0
jne 0x468a55
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x47b6d0
push 0
push 0
call fcn.00510ce2
add esp, 0x18
mov dword [esi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x468a59
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x468a85
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x468a85
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x468a85
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10