Function at 0x42d0ca
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 [0x4e3900]
test eax, eax
je 0x42d2bf
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x42d2e0
mov dword [eax + 0x30], 0x4d00ec
mov eax, 0x4d00ec
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 [0x4e3900]
test eax, eax
je 0x42d4c2
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x42d328
mov eax, dword [eax + 0x14]
cmp dword [eax], 1
je 0x42d33d
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4e3900]
test eax, eax
je 0x42d499
mov edi, dword [eax + 0x18]
test edi, edi
je 0x42d34d
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 [0x4e3900]
test edx, edx
jne 0x42d360
test eax, eax
je 0x42d43f
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x42d456
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 0x42d1d1
mov edx, dword [ecx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov eax, dword [0x4e3900]
test eax, eax
je 0x42d417
mov edi, dword [eax + 0x30]
test edi, edi
je 0x42d42e
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 0x42d209
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 0x42d22e
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 0x42d383
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, 0x4d00ec
jmp 0x42d2a2
mov edx, dword [eax + 0x30]
test edx, edx
setne dl
test dl, dl
je 0x42d2e8
test eax, eax
je 0x42d318
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call sym._pthread_mutex_unlock
test eax, eax
jne 0x42d2fd
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov eax, dword [0x4e3900]
test eax, eax
jne 0x42d270
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x30]
test eax, eax
mov eax, dword [0x4e3900]
setne dl
jmp 0x42d278
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov ebx, dword [edx + 0x30]
test ebx, ebx
je 0x42d0f6
test eax, eax
jne 0x42d2e0
call sym.___shmem3_winpthreads_tdm_init_local_region
nop
mov eax, dword [eax + 0x30]
jmp 0x42d102
mov dword [eax + 0x30], 0x4d00ec
mov eax, ebx
mov dword [esp], eax
call sym._pthread_mutex_unlock
test eax, eax
je 0x42d293
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 0x42d284
mov dword [eax + 0x14], 0x4e38dc
mov eax, 0x4e38dc
cmp dword [eax], 1
jne 0x42d13c
mov eax, dword [0x4e3900]
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x42d159
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
jmp 0x42d15c
test eax, eax
je 0x42d3ef
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x42d406
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call sym._pthread_mutex_lock
jmp 0x42d209
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 0x42d3b1
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0xb0]
test edi, edi
je 0x42d48f
mov eax, dword [0x4e3900]
test eax, eax
je 0x42d467
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x42d487
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
jmp 0x42d264
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov edx, dword [edx + 0x30]
test edx, edx
jne 0x42d51b
mov dword [eax + 0x30], 0x4d00ec
mov eax, 0x4d00ec
jmp 0x42d376
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov esi, dword [edx + 0x30]
test esi, esi
jne 0x42d509
mov dword [eax + 0x30], 0x4d00ec
mov eax, 0x4d00ec
jmp 0x42d1ec
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov edx, dword [edx + 0x30]
test edx, edx
jne 0x42d4f7
mov dword [eax + 0x30], 0x4d00ec
mov eax, 0x4d00ec
jmp 0x42d1b0
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x42d3c9
test eax, eax
jne 0x42d487
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
jmp 0x42d3d5
call sym._push_pthread_mem.part.0
jmp 0x42d3b1
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov esi, dword [edx + 0x18]
test esi, esi
je 0x42d34d
test eax, eax
jne 0x42d159
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d159
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov edx, dword [edx + 0x14]
test edx, edx
je 0x42d328
test eax, eax
jne 0x42d130
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x14]
cmp dword [eax], 1
jne 0x42d13c
jmp 0x42d141
test eax, eax
jne 0x42d1ad
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d1ad
test eax, eax
jne 0x42d1e9
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d1e9
test eax, eax
jne 0x42d373
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x42d373