Function at 0x41b67a
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
call dbg._fpreset
mov eax, dword [0x4ec1e0]
test eax, eax
je 0x41b886
cmp dword [eax + 0x30], 0
jne 0x41b8a5
mov eax, dword [0x4ec1e0]
mov dword [eax + 0x30], 0x4dd0c4
mov eax, 0x4dd0c4
mov dword [esp], eax
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, dword [0x4ec1e0]
test eax, eax
je 0x41b8cc
cmp dword [eax + 0x14], 0
jne 0x41b8ad
mov eax, dword [0x4ec1e0]
mov dword [eax + 0x14], 0x4ec1bc
mov eax, 0x4ec1bc
cmp dword [eax], 1
je 0x41b8c2
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4ec1e0]
test eax, eax
je 0x41b8fc
cmp dword [eax + 0x18], 0
jne 0x41b8b5
mov eax, dword [0x4ec1e0]
mov dword [eax + 0x18], 0x4dd0cc
mov eax, 0x4dd0cc
mov esi, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
mov edx, dword [0x4ec1e0]
test eax, eax
jne 0x41b91d
test edx, edx
je 0x41b998
cmp dword [edx + 0x30], 0
jne 0x41b945
mov dword [edx + 0x30], 0x4dd0c4
mov eax, 0x4dd0c4
mov dword [esp], eax
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x41b9be
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov eax, dword [0x4ec1e0]
test eax, eax
je 0x41b971
cmp dword [eax + 0x30], 0
jne 0x41b990
mov dword [eax + 0x30], 0x4dd0c4
mov eax, 0x4dd0c4
mov dword [esp], eax
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41b7ee
call sym.__pthread_cleanup_dest.part.0
mov ebx, dword [ebp - 0x1c]
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call sym._pthread_mutex_lock
mov eax, ebx
mov ebx, dword [ebx + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41b812
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
je 0x41ba03
mov dword [esp], esi
call sym._pthread_mutex_unlock
mov dword [esp], esi
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov esi, 0x4dd0c4
mov eax, dword [0x4ec1e0]
test eax, eax
je 0x41b9df
cmp dword [eax + 0x30], 0
je 0x41b9d1
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call sym._pthread_mutex_unlock
test eax, eax
jne 0x41b9c8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
jmp 0x41b84c
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4ec1e0]
cmp dword [edx + 0x30], 0
je 0x41b6a5
test eax, eax
jne 0x41b8a5
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x41b6b6
mov eax, dword [eax + 0x14]
jmp 0x41b6f4
mov eax, dword [0x4ec1e0]
mov eax, dword [eax + 0x18]
jmp 0x41b72a
mov eax, dword [0x4ec1e0]
jmp 0x41b70f
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4ec1e0]
cmp dword [edx + 0x14], 0
je 0x41b6e3
test eax, eax
jne 0x41b8ad
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x14]
cmp dword [eax], 1
jne 0x41b6fd
jmp 0x41b702
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4ec1e0]
cmp dword [edx + 0x18], 0
je 0x41b719
test eax, eax
jne 0x41b8ba
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x41b8ba
test edx, edx
je 0x41b952
cmp dword [edx + 0x30], 0
jne 0x41b94d
mov eax, dword [0x4ec1e0]
mov dword [eax + 0x30], 0x4dd0c4
mov eax, 0x4dd0c4
mov dword [esp], eax
call sym._pthread_mutex_lock
jmp 0x41b7ee
mov eax, dword [edx + 0x30]
jmp 0x41b78e
mov eax, dword [edx + 0x30]
jmp 0x41b938
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, dword [0x4ec1e0]
cmp dword [eax + 0x30], 0
je 0x41b927
test edx, edx
jne 0x41b94d
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x41b938
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4ec1e0]
cmp dword [edx + 0x30], 0
je 0x41b7c5
test eax, eax
jne 0x41b990
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x41b7d1
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, dword [0x4ec1e0]
cmp dword [eax + 0x30], 0
je 0x41b782
test edx, edx
jne 0x41b945
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x41b78e
mov ebx, pe_nt_image_headers32
jmp 0x41b7ae
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__endthreadex]
mov dword [eax + 0x30], 0x4dd0c4
mov eax, esi
jmp 0x41b866
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4ec1e0]
cmp dword [edx + 0x30], 0
je 0x41b9d1
test eax, eax
jne 0x41b863
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x41b863
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], esi
call sym._pthread_mutex_unlock
mov dword [esp], esi
call sym._pthread_mutex_destroy
mov eax, edi
call sym._push_pthread_mem
mov eax, dword [0x4ec1e0]
test eax, eax
je 0x41ba58
cmp dword [eax + 0x18], 0
jne 0x41ba73
mov dword [eax + 0x18], 0x4dd0cc
mov eax, 0x4dd0cc
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41b847
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4ec1e0]
cmp dword [edx + 0x18], 0
je 0x41ba32
test eax, eax
jne 0x41ba73
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
jmp 0x41ba3e