Function at 0x416970
Capabilities:
Create thread
Resume thread
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
mov eax, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
call sym.__fpreset
mov dword [esp], 0x435080
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call sym._pthread_mutex_lock
mov dword [esp + 4], sym._pthread_tls_init
mov dword [esp], 0x4510f8
call sym.__pthread_once_raw
mov eax, dword [0x435078]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call sym._pthread_mutex_unlock
mov eax, dword [ebp - 0xc]
add eax, 0x70
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
test eax, eax
jne 0x416a69
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [esp], 0x435080
call sym._pthread_mutex_unlock
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x416a41
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov dword [ebp - 0x10], eax
mov dword [esp], 0x435080
call sym._pthread_mutex_lock
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call sym.__pthread_cleanup_dest
jmp 0x416a75
mov dword [esp], 0x435080
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x416aa9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x416b0f
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call sym._pthread_mutex_unlock
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0xc], 0
mov eax, dword [0x435078]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x416b52
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call sym._pthread_mutex_unlock
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x68], 1
jmp 0x416b52
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp], 0x435080
call sym._pthread_mutex_unlock
test eax, eax
je 0x416b41
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call eax