Function at 0x4119a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf7bf
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x50b624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4119e3
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movups xmm0, xmmword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x5c], eax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 4], 0
movq xmm0, qword [edi + 0x14]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov eax, dword [edi + 0x1c]
movq qword [ebp - 0x30], xmm0
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], eax
push 0x38
mov byte [ebp - 4], 1
call fcn.0045e178
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
test edi, edi
je 0x411aea
movups xmm0, xmmword [ebp - 0x90]
mov eax, dword [ebp - 0x20]
lea esi, [edi + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x28]
movups xmmword [ebp - 0x7c], xmm0
mov dword [edi + 4], 1
movq xmm0, qword [ebp - 0x30]
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [ebp - 0x14], esi
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x64], eax
mov dword [esi + 0x24], 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 4
push eax
call fcn.00412b30
mov edx, dword [ebp - 0x68]
add esp, 4
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x411ae5
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411adb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411c3a
push edx
push ecx
call fcn.0045e1a8
add esp, 8
mov esi, dword [ebp - 0x24]
jmp 0x411aec
xor edi, edi
xorps xmm0, xmm0
lea eax, [edi + 0x10]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x411b38
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411b2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411c3f
push edx
push ecx
call fcn.0045e1a8
add esp, 8
lea eax, [edi + 0x10]
test edi, edi
je 0x411b40
lock inc dword [edi + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov eax, dword [esi + 0x30]
lea edx, [esi + 0x20]
mov ecx, dword [edx + 8]
inc eax
mov byte [ebp - 4], 7
cmp ecx, eax
ja 0x411b67
push 1
mov ecx, edx
call fcn.0042b420
mov ecx, dword [esi + 0x28]
lea edx, [esi + 0x20]
lea eax, [ecx - 1]
and dword [edx + 0xc], eax
mov ecx, dword [edx + 0x10]
add ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x20], eax
cmp dword [ecx + eax], 0
jne 0x411bab
push 0x28
call fcn.0045e178
mov ecx, dword [esi + 0x24]
lea edx, [esi + 0x20]
mov esi, dword [ebp - 0x20]
add esp, 4
mov dword [esi + ecx], eax
mov ecx, dword [edx + 4]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov eax, dword [ecx + eax]
lea ecx, [edi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_060c276917dda2180e98df297c282aed___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0x24], eax
inc dword [edx + 0x10]
cmp dword [esi + 0x18], 0
jne 0x411bea
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x429750
push 0
push 0
call fcn.004a9f2d
add esp, 0x18
mov dword [esi + 0x18], eax
mov byte [ebp - 0x19], 1
jmp 0x411bee
mov byte [ebp - 0x19], 0
test edi, edi
je 0x411c13
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x411c13
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x411c13
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push esi
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e450
mov esp, ebp
pop ebp
ret 4
call fcn.0049f39a
call fcn.0049f39a
int3