Function at 0x42d75a
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 sym.__fpreset
mov eax, dword [0x4e5900]
test eax, eax
je 0x42d94f
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x42d970
mov dword [eax + 0x30], 0x4d20e8
mov eax, 0x4d20e8
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 [0x4e5900]
test eax, eax
je 0x42db52
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x42d9b8
mov eax, dword [eax + 0x14]
cmp dword [eax], 1
je 0x42d9cd
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4e5900]
test eax, eax
je 0x42db29
mov edi, dword [eax + 0x18]
test edi, edi
je 0x42d9dd
mov eax, dword [eax + 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
call sym._GetCurrentThreadId_0
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp], eax
call sym.__setjmp
mov edx, eax
mov eax, dword [0x4e5900]
test edx, edx
jne 0x42d9f0
test eax, eax
je 0x42dacf
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x42dae6
mov eax, dword [eax + 0x30]
mov dword [esp], eax
mov ebx, pe_nt_image_headers32
call sym._pthread_mutex_unlock
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 8]
test eax, eax
je 0x42d861
mov edx, dword [ecx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov eax, dword [0x4e5900]
test eax, eax
je 0x42daa7
mov edi, dword [eax + 0x30]
test edi, edi
je 0x42dabe
mov eax, dword [eax + 0x30]
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 0x42d899
call sym.__pthread_cleanup_dest.part.0
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42d8be
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x18], 0
mov eax, dword [eax + 0x14]
test eax, eax
je 0x42da13
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov ebx, 0x4d20e8
jmp 0x42d932
mov edx, dword [eax + 0x30]
test edx, edx
setne dl
test dl, dl
je 0x42d978
test eax, eax
je 0x42d9a8
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call sym._pthread_mutex_unlock
test eax, eax
jne 0x42d98d
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov eax, dword [0x4e5900]
test eax, eax
jne 0x42d900
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
test eax, eax
mov eax, dword [0x4e5900]
setne dl
jmp 0x42d908
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e5900]
mov ebx, dword [edx + 0x30]
test ebx, ebx
je 0x42d786
test eax, eax
jne 0x42d970
call sym.___shmem3_winpthreads_tdm_init_local_region
nop
mov eax, dword [eax + 0x30]
jmp 0x42d792
mov dword [eax + 0x30], 0x4d20e8
mov eax, ebx
mov dword [esp], eax
call sym._pthread_mutex_unlock
test eax, eax
je 0x42d923
mov dword [esp], esi
call sym.__endthreadex
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d914
mov dword [eax + 0x14], 0x4e58dc
mov eax, 0x4e58dc
cmp dword [eax], 1
jne 0x42d7cc
mov eax, dword [0x4e5900]
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x42d7e9
mov dword [eax + 0x18], 0x4d20f0
mov eax, 0x4d20f0
jmp 0x42d7ec
test eax, eax
je 0x42da7f
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x42da96
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call sym._pthread_mutex_lock
jmp 0x42d899
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
test edi, edi
je 0x42da41
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0xb0]
test edi, edi
je 0x42db1f
mov eax, dword [0x4e5900]
test eax, eax
je 0x42daf7
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x42db17
mov dword [eax + 0x18], 0x4d20f0
mov eax, 0x4d20f0
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
jmp 0x42d8f4
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e5900]
mov edx, dword [edx + 0x30]
test edx, edx
jne 0x42dbab
mov dword [eax + 0x30], 0x4d20e8
mov eax, 0x4d20e8
jmp 0x42da06
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e5900]
mov esi, dword [edx + 0x30]
test esi, esi
jne 0x42db99
mov dword [eax + 0x30], 0x4d20e8
mov eax, 0x4d20e8
jmp 0x42d87c
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e5900]
mov edx, dword [edx + 0x30]
test edx, edx
jne 0x42db87
mov dword [eax + 0x30], 0x4d20e8
mov eax, 0x4d20e8
jmp 0x42d840
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e5900]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x42da59
test eax, eax
jne 0x42db17
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
jmp 0x42da65
call sym._push_pthread_mem.part.0
jmp 0x42da41
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e5900]
mov esi, dword [edx + 0x18]
test esi, esi
je 0x42d9dd
test eax, eax
jne 0x42d7e9
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d7e9
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e5900]
mov edx, dword [edx + 0x14]
test edx, edx
je 0x42d9b8
test eax, eax
jne 0x42d7c0
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x14]
cmp dword [eax], 1
jne 0x42d7cc
jmp 0x42d7d1
test eax, eax
jne 0x42d83d
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d83d
test eax, eax
jne 0x42d879
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d879
test eax, eax
jne 0x42da03
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42da03