Function at 0x412d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d591f
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x513624]
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 0x412dd3
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], 0
test eax, eax
jne 0x412e08
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x42f100
push 0
push 0
call fcn.004afe3d
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x412e08
mov byte [ebp - 0x19], al
jmp 0x41300c
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
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.00463d48
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
test edi, edi
je 0x412f08
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.00413f20
mov edx, dword [ebp - 0x68]
add esp, 4
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x412f03
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412ef9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413033
push edx
push ecx
call fcn.00463d78
add esp, 8
mov esi, dword [ebp - 0x24]
jmp 0x412f0a
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 0x412f56
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412f49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413038
push edx
push ecx
call fcn.00463d78
add esp, 8
lea eax, [edi + 0x10]
test edi, edi
je 0x412f5e
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 0x412f85
push 1
mov ecx, edx
call fcn.00430eb0
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 0x412fcb
push 0x28
call fcn.00463d48
lea edx, [esi + 0x20]
mov ecx, eax
mov eax, dword [edx + 4]
add esp, 4
mov esi, dword [ebp - 0x20]
mov dword [esi + eax], ecx
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 byte [ebp - 0x19], 1
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]
test edi, edi
je 0x41300c
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x41300c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x41300c
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.00464020
mov esp, ebp
pop ebp
ret 4
call fcn.004a52aa
call fcn.004a52aa
int3