Function at 0x62389d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x62389d48
mov esi, dword [esp + 0x28]
test esi, esi
je 0x62389d80
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x62389da0
cmp eax, 3
jne 0x62389d36
mov eax, dword [0x6245f920]
test eax, eax
je 0x6238a000
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x62389dd0
mov edx, dword [eax + 0x18]
cmp dword [edx], 0xffffffff
je 0x62389d36
mov edx, dword [eax + 0x18]
test edx, edx
je 0x62389de0
mov eax, dword [eax + 0x18]
jmp 0x62389dec
mov eax, dword [0x6245f910]
test eax, eax
je 0x62389d36
mov dword [esp], eax
call sym._RemoveVectoredExceptionHandler_4
mov dword [0x6245f910], 0
sub esp, 4
jmp 0x62389d36
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call sym._AddVectoredExceptionHandler_8
sub esp, 8
mov dword [0x6245f910], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov dword [eax + 0x18], 0x6244b0e4
mov edx, 0x6244b0e4
jmp 0x62389d69
mov dword [eax + 0x18], 0x6244b0e4
mov eax, 0x6244b0e4
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x62389d36
test byte [eax + 0x20], 0x30
je 0x62389ec0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x62389e1c
call sym.__pthread_cleanup_dest.part.0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x62389e4e
mov dword [esp], eax
call sym._CloseHandle_4
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x62389e40
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x6238a081
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
jne 0x62389e85
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x6245f920]
test eax, eax
je 0x62389fd1
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x62389fe8
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
jmp 0x62389d36
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x62389f90
test eax, eax
je 0x62389edd
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x62389efa
call sym.__pthread_cleanup_dest.part.0
lea esi, [ebx + 0x1c]
lea edi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x6238a068
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x62389f22
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call sym._pthread_mutex_destroy
mov dword [esp], edi
call sym._pthread_spin_destroy
cmp eax, 1
je 0x6238a081
mov esi, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test esi, esi
jne 0x62389f5a
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x6245f920]
test eax, eax
jne 0x62389e92
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ecx, dword [eax + 0x18]
mov eax, dword [0x6245f920]
test ecx, ecx
je 0x62389fe8
test eax, eax
jne 0x62389e9d
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x62389e9d
test eax, eax
je 0x62389f9f
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x6238a081
mov dword [ebx + 0x38], 0xffffffff
jmp 0x62389d36
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x6245f920]
mov edi, dword [edx + 0x18]
test edi, edi
jne 0x62389f78
lea esi, [esi]
mov dword [eax + 0x18], 0x6244b0e4
mov eax, 0x6244b0e4
jmp 0x62389ea0
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ecx, dword [eax + 0x18]
mov eax, dword [0x6245f920]
test ecx, ecx
je 0x62389dd0
test eax, eax
jne 0x62389d66
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
cmp dword [eax], 0xffffffff
je 0x62389d36
mov eax, dword [0x6245f920]
test eax, eax
jne 0x62389d6e
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x6245f920]
je 0x62389de0
test eax, eax
jne 0x62389d75
call sym.___shmem3_winpthreads_tdm_init_local_region
jmp 0x62389d75
mov dword [esp], esi
call sym._pthread_mutex_destroy
mov dword [esp], edi
call sym._pthread_spin_destroy
cmp eax, 1
jne 0x62389fc5
call sym._replace_spin_keys.part.0
lea esi, [esi]
lea esi, [esi]