Function at 0x41173a
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 [0x4dd1e0]
test eax, eax
je 0x411946
cmp dword [eax + 0x30], 0
jne 0x411965
mov eax, dword [0x4dd1e0]
mov dword [eax + 0x30], 0x4d0028
mov eax, 0x4d0028
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 [0x4dd1e0]
test eax, eax
je 0x41198c
cmp dword [eax + 0x14], 0
jne 0x41196d
mov eax, dword [0x4dd1e0]
mov dword [eax + 0x14], 0x4dd1bc
mov eax, 0x4dd1bc
cmp dword [eax], 1
je 0x411982
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4dd1e0]
test eax, eax
je 0x4119bc
cmp dword [eax + 0x18], 0
jne 0x411975
mov eax, dword [0x4dd1e0]
mov dword [eax + 0x18], 0x4d0030
mov eax, 0x4d0030
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 [0x4dd1e0]
test eax, eax
jne 0x4119dd
test edx, edx
je 0x411a58
cmp dword [edx + 0x30], 0
jne 0x411a05
mov dword [edx + 0x30], 0x4d0028
mov eax, 0x4d0028
mov dword [esp], eax
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x411a7e
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov eax, dword [0x4dd1e0]
test eax, eax
je 0x411a31
cmp dword [eax + 0x30], 0
jne 0x411a50
mov dword [eax + 0x30], 0x4d0028
mov eax, 0x4d0028
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 0x4118ae
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 0x4118d2
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 0x411ac3
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, 0x4d0028
mov eax, dword [0x4dd1e0]
test eax, eax
je 0x411a9f
cmp dword [eax + 0x30], 0
je 0x411a91
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call sym._pthread_mutex_unlock
test eax, eax
jne 0x411a88
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
jmp 0x41190c
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4dd1e0]
cmp dword [edx + 0x30], 0
je 0x411765
test eax, eax
jne 0x411965
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x411776
mov eax, dword [eax + 0x14]
jmp 0x4117b4
mov eax, dword [0x4dd1e0]
mov eax, dword [eax + 0x18]
jmp 0x4117ea
mov eax, dword [0x4dd1e0]
jmp 0x4117cf
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4dd1e0]
cmp dword [edx + 0x14], 0
je 0x4117a3
test eax, eax
jne 0x41196d
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x14]
cmp dword [eax], 1
jne 0x4117bd
jmp 0x4117c2
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4dd1e0]
cmp dword [edx + 0x18], 0
je 0x4117d9
test eax, eax
jne 0x41197a
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x41197a
test edx, edx
je 0x411a12
cmp dword [edx + 0x30], 0
jne 0x411a0d
mov eax, dword [0x4dd1e0]
mov dword [eax + 0x30], 0x4d0028
mov eax, 0x4d0028
mov dword [esp], eax
call sym._pthread_mutex_lock
jmp 0x4118ae
mov eax, dword [edx + 0x30]
jmp 0x41184e
mov eax, dword [edx + 0x30]
jmp 0x4119f8
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, dword [0x4dd1e0]
cmp dword [eax + 0x30], 0
je 0x4119e7
test edx, edx
jne 0x411a0d
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x4119f8
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4dd1e0]
cmp dword [edx + 0x30], 0
je 0x411885
test eax, eax
jne 0x411a50
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x411891
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, dword [0x4dd1e0]
cmp dword [eax + 0x30], 0
je 0x411842
test edx, edx
jne 0x411a05
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
jmp 0x41184e
mov ebx, pe_nt_image_headers32
jmp 0x41186e
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__endthreadex]
mov dword [eax + 0x30], 0x4d0028
mov eax, esi
jmp 0x411926
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4dd1e0]
cmp dword [edx + 0x30], 0
je 0x411a91
test eax, eax
jne 0x411923
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x411923
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 [0x4dd1e0]
test eax, eax
je 0x411b18
cmp dword [eax + 0x18], 0
jne 0x411b33
mov dword [eax + 0x18], 0x4d0030
mov eax, 0x4d0030
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 0x411907
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4dd1e0]
cmp dword [edx + 0x18], 0
je 0x411af2
test eax, eax
jne 0x411b33
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
jmp 0x411afe