Function at 0x1003f150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10188214
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x101d90a8]
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 - 0x114], ebx
test ebx, ebx
je 0x1003f194
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 4], 0
test eax, eax
jne 0x1003f1cc
lea eax, [ebx + 0x1c]
push eax
push 0
push ebx
push 0x10019c90
push 0
push 0
call fcn.1016b55f
add esp, 0x18
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x1003f1cc
mov byte [ebp - 0xf9], al
jmp 0x1003f3ea
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
mov dword [ebp - 0xf8], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf4], eax
call fcn.1003fb60
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x38
mov byte [ebp - 4], 1
call fcn.1013725d
mov edi, eax
add esp, 4
mov dword [ebp - 0x100], edi
or esi, 0xffffffff
mov byte [ebp - 4], 2
test edi, edi
je 0x1003f2d4
mov dword [edi + 4], 1
lea esi, [edi + 0x10]
mov dword [edi + 8], 1
lea ecx, [ebp - 0x1f4]
mov dword [edi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0xf0]
push eax
mov dword [ebp - 0x10c], esi
call fcn.1003fab0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x11c], eax
mov dword [esi + 0x24], 0
lea eax, [ebp - 0x1fc]
mov byte [ebp - 4], 4
push eax
call fcn.1003fa00
add esp, 4
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call fcn.10013660
mov edx, dword [ebp - 0x1e0]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f2b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1e8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f2d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003f2d6
xor edi, edi
lea eax, [edi + 0x10]
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.10013660
mov edx, dword [ebp - 0xdc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f311
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f32e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1003f336
lock inc dword [edi + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x28]
inc eax
mov byte [ebp - 4], 7
cmp ecx, eax
ja 0x1003f361
push 1
lea ecx, [ebx + 0x20]
call fcn.1001da80
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 - 0x100], eax
cmp dword [ecx + eax], 0
jne 0x1003f3a6
push 0x28
call fcn.1013725d
mov edx, dword [ebp - 0x100]
mov ecx, eax
mov eax, dword [ebx + 0x24]
add esp, 4
mov dword [edx + eax], ecx
mov eax, edx
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [edi + 0x10]
mov byte [ebp - 0xf9], 1
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_142d5429352ef4752f752772b2f732c8___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0x24], eax
inc dword [ebx + 0x30]
test edi, edi
je 0x1003f3ea
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003f3ea
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1003f3ea
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0xf9]
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.1013724c
mov esp, ebp
pop ebp
ret 0xc