Function at 0x433610
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [0x4c81ac]
test eax, eax
je 0x43383c
mov dword [esp], eax
call sym._pthread_mutex_lock
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, dword [0x4c81c8]
test eax, eax
je 0x4338d8
cmp dword [eax], 1
je 0x433652
call sym.__pthread_once_raw.part.1.constprop.5
mov eax, dword [0x4c81c4]
test eax, eax
je 0x433862
mov ecx, dword [ebp + 8]
mov dword [esp + 4], ecx
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
call sym._GetCurrentThreadId_0
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov eax, dword [ebp + 8]
add eax, 0x6c
mov dword [esp], eax
call sym.__setjmp
test eax, eax
mov eax, dword [0x4c81ac]
jne 0x4337b2
test eax, eax
je 0x4337cd
mov dword [esp], eax
mov ebx, pe_nt_image_headers32
call sym._pthread_mutex_unlock
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x4336cd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov eax, dword [0x4c81ac]
test eax, eax
je 0x433816
mov dword [esp], eax
call sym._pthread_mutex_lock
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x4337c3
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1c]
mov dword [esp], esi
call sym._pthread_mutex_lock
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x43371c
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
mov eax, dword [eax + 0x14]
test eax, eax
je 0x433888
mov dword [esp], esi
call sym._pthread_mutex_unlock
mov dword [esp], esi
call sym._pthread_mutex_destroy
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], 1
jmp 0x43376b
mov dword [esp], eax
call sym._pthread_mutex_unlock
test eax, eax
jne 0x4337a1
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov eax, dword [0x4c81ac]
test eax, eax
jne 0x433750
mov dword [esp + 8], sym.___shmem_winpthreads_init_mtx_pthr_locked_shmem
mov dword [esp + 4], 4
mov dword [esp], str.mtx_pthr_locked_shmem
call sym.___shmem_winpthreads_grab
mov dword [esp], eax
mov dword [0x4c81ac], eax
call sym._pthread_mutex_unlock
test eax, eax
je 0x43375c
mov dword [esp], ebx
call sym.__endthreadex
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
test eax, eax
je 0x4337f3
mov dword [esp], eax
call sym._pthread_mutex_lock
jmp 0x4336f6
call sym.__pthread_cleanup_dest.part.3
jmp 0x4336f6
mov dword [esp + 8], sym.___shmem_winpthreads_init_mtx_pthr_locked_shmem
mov dword [esp + 4], 4
mov dword [esp], str.mtx_pthr_locked_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4c81ac], eax
jmp 0x4336a9
mov dword [esp + 8], sym.___shmem_winpthreads_init_mtx_pthr_locked_shmem
mov dword [esp + 4], 4
mov dword [esp], str.mtx_pthr_locked_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4c81ac], eax
jmp 0x4337b6
mov dword [esp + 8], sym.___shmem_winpthreads_init_mtx_pthr_locked_shmem
mov dword [esp + 4], 4
mov dword [esp], str.mtx_pthr_locked_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4c81ac], eax
jmp 0x4336da
mov dword [esp + 8], sym.___shmem_winpthreads_init_mtx_pthr_locked_shmem
mov dword [esp + 4], 4
mov dword [esp], str.mtx_pthr_locked_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4c81ac], eax
jmp 0x433625
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4c81c4], eax
jmp 0x43365f
mov eax, dword [ebp + 8]
mov dword [eax], 0xdeadbeef
mov dword [esp], esi
call sym._pthread_mutex_unlock
mov dword [esp], esi
call sym._pthread_mutex_destroy
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4338b5
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xac]
test edx, edx
je 0x433921
mov eax, dword [0x4c81c4]
test eax, eax
je 0x4338fe
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
jmp 0x43376b
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4c81c8], eax
jmp 0x433648
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4c81c4], eax
jmp 0x4338be
call sym._push_pthread_mem.part.0
jmp 0x4338b5