Function at 0x5c7ba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fd5d5
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
push esi
lea esi, [ebx + 4]
test eax, eax
je 0x5c7c11
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x5c7c11
cmp dword [ebp - 0x18], 0x103
jne 0x5c7c11
push str.Tried_to_create_a_thread_that_has_already_been_created_
push 0xdbc
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb770
add esp, 0xc
test al, al
jne 0x5c7bfd
int3
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push edi
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], 0
call fcn.005c7500
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
neg eax
mov dword [ebp - 0x14], 0
push 0xc
sbb edi, edi
and edi, 0x10000
call fcn.005d13f5
add esp, 4
test eax, eax
je 0x5c7c59
lea ecx, [ebp - 0x20]
mov dword [eax], ebx
mov dword [eax + 4], ecx
lea ecx, [ebp - 0xd]
mov dword [eax + 8], ecx
jmp 0x5c7c5b
xor eax, eax
lea ecx, [ebp - 0x14]
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 0x5c7caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_thread__error_0x_x_
push 0xdd7
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb780
add esp, 0x10
test al, al
jne 0x5c7db4
int3
cmp dword [ebp - 0x20], 0
jne 0x5c7cd1
push str.Thread_synchronization_object_is_unuseable
push 0x653
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb770
add esp, 0xc
test al, al
jne 0x5c7cd1
int3
push 0xea60
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5c7d5a
cmp eax, 0x80
je 0x5c7d5a
push str.Probably_deadlock_or_failure_waiting_for_thread_to_initialize.
push 0xf84
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb770
add esp, 0xc
test al, al
jne 0x5c7d06
int3
push str.Thread_failed_to_initialize_n
call fcn.005bc120
add esp, 4
test esi, esi
jne 0x5c7d3f
push str.pThread
push 0x197
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb770
add esp, 0xc
test al, al
jne 0x5c7d4e
int3
mov eax, dword [esi]
test eax, eax
je 0x5c7d4e
push eax
call edi
mov dword [esi], 0
push dword [ebp + 8]
call edi
xor bl, bl
jmp 0x5c7ded
cmp byte [ebp - 0xd], 0
jne 0x5c7db8
push str.Thread_failed_to_initialize_n
call fcn.005bc120
add esp, 4
test esi, esi
jne 0x5c7d99
push str.pThread
push 0x197
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb770
add esp, 0xc
test al, al
jne 0x5c7da8
int3
mov eax, dword [esi]
test eax, eax
je 0x5c7da8
push eax
call edi
mov dword [esi], 0
push dword [ebp + 8]
call edi
mov dword [ebx + 8], 0
xor bl, bl
jmp 0x5c7ded
mov eax, dword [ebx + 8]
cmp eax, dword [ebp - 0x14]
je 0x5c7ddc
push str.Mismatched_thread_id_during_thread_Start__
push 0xe2f
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb770
add esp, 0xc
test al, al
jne 0x5c7ddc
int3
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5c7e24
cmp byte [ebp - 0x1c], 0
je 0x5c7e24
push eax
call edi
test eax, eax
jne 0x5c7e24
push 0x5ff5d8
push 0x62d
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call fcn.005bb770
add esp, 0xc
test al, al
jne 0x5c7e24
int3
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4