Function at 0x1002d510
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039229
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10068010]
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 edi, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
push eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], str.m_Lock
mov dword [ebp - 0x30], str.D:coding_projectskBoomSDKhl2_src_tier0_threadtools.cpp
mov dword [ebp - 0x2c], 0x6a8
mov byte [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1002d5af
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1002d5af
cmp dword [ebp - 0x24], 0x103
jne 0x1002d5af
push str.Tried_to_create_a_thread_that_has_already_been_created_
call fcn.1002cf60
add esp, 4
mov byte [ebp - 0x39], 0
jmp 0x1002d709
push 0
push 0
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
push 0
movlpd qword [ebp - 0x1c], xmm0
push 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_event__error_0x_x_
call fcn.1002cf60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push 0xc
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 0
call fcn.10016f5c
movq xmm0, qword [ebp - 0x48]
lea ecx, [ebp - 0x11]
add esp, 0xc
movq qword [eax], xmm0
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x20]
push ecx
push 4
push eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
push eax
push edi
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, eax
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
test ecx, ecx
jne 0x1002d668
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_thread__error_0x_x_
call fcn.1002d050
add esp, 8
mov byte [ebp - 0x39], 0
jmp 0x1002d6f9
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x28]
lea edx, [esi + 0x44]
call fcn.1002dab0
push str.Thread_synchronization_object_is_unuseable
call fcn.1002cf60
add esp, 4
push 0xea60
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002d6b2
push str.Probably_deadlock_or_failure_waiting_for_thread_to_initialize.
call fcn.1002cf60
push str.Thread_failed_to_initialize_n
call fcn.1002ce20
add esp, 8
jmp 0x1002d6c5
cmp byte [ebp - 0x11], 0
jne 0x1002d6de
push str.Thread_failed_to_initialize_n
call fcn.1002ce20
add esp, 4
push dword [esi + 0x24]
call edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov byte [ebp - 0x39], 0
jmp 0x1002d6f9
cmp dword [esi + 0x24], 0
jne 0x1002d6f5
push str.Thread_exited_immediately_n
call fcn.1002ce20
add esp, 4
cmp dword [esi + 0x24], 0
setne byte [ebp - 0x39]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002d709
cmp byte [ebp - 0x18], 0
je 0x1002d709
push eax
call edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x39]
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.10016e69
mov esp, ebp
pop ebp
ret 4