Function at 0x3f0117f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
push esi
lea esi, [ebx + 4]
test eax, eax
je 0x3f011842
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x3f011842
cmp dword [ebp - 0xc], 0x103
jne 0x3f011842
push str.Tried_to_create_a_thread_that_has_already_been_created_
push 0xeb1
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011838
int3
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x18], eax
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jne 0x3f01188d
call eax
push eax
push str.Failed_to_create_event__error_0x_x_
push 0x7b1
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_0_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0x10
test al, al
jne 0x3f01188d
int3
mov eax, dword [ebp + 8]
neg eax
mov dword [ebp - 8], 0
push edi
sbb edi, edi
push 0xc
and edi, 0x10000
call fcn.3f01a46b
add esp, 4
test eax, eax
je 0x3f0118c0
lea ecx, [ebp - 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ecx
lea ecx, [ebp - 1]
mov dword [eax + 8], ecx
jmp 0x3f0118c2
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push edi
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
test eax, eax
jne 0x3f011913
call dword [ebp - 0x10]
push eax
push str.Failed_to_create_thread__error_0x_x_
push 0xecc
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_0_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0x10
test al, al
jne 0x3f011a18
int3
cmp dword [ebp - 0x18], 0
jne 0x3f011935
push str.Thread_synchronization_object_is_unuseable
push 0x748
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011935
int3
push 0xea60
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x3f0119be
cmp eax, 0x80
je 0x3f0119be
push str.Probably_deadlock_or_failure_waiting_for_thread_to_initialize.
push 0x1079
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f01196a
int3
push str.Thread_failed_to_initialize_n
call sym.tier0_s.dll_Msg
add esp, 4
test esi, esi
jne 0x3f0119a3
push 0x3f0383cc
push 0x197
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f0119b2
int3
mov eax, dword [esi]
test eax, eax
je 0x3f0119b2
push eax
call edi
mov dword [esi], 0
push dword [ebp + 8]
call edi
xor bl, bl
jmp 0x3f011a51
cmp byte [ebp - 1], 0
jne 0x3f011a1c
push str.Thread_failed_to_initialize_n
call sym.tier0_s.dll_Msg
add esp, 4
test esi, esi
jne 0x3f0119fd
push 0x3f0383cc
push 0x197
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011a0c
int3
mov eax, dword [esi]
test eax, eax
je 0x3f011a0c
push eax
call edi
mov dword [esi], 0
push dword [ebp + 8]
call edi
mov dword [ebx + 8], 0
xor bl, bl
jmp 0x3f011a51
mov eax, dword [ebx + 8]
cmp eax, dword [ebp - 8]
je 0x3f011a40
push str.Mismatched_thread_id_during_thread_Start__
push 0xf24
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011a40
int3
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [esi], 0
setne bl
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x3f011a81
cmp byte [ebp - 0x14], 0
je 0x3f011a81
push eax
call edi
test eax, eax
jne 0x3f011a81
push 0x3f0367d4
push 0x722
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011a81
int3
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4