Function at 0x41d0d0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push r12
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x30], rcx
mov rcx, qword [0x004e8c78]
test rcx, rcx
je 0x41d286
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x30]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, qword [0x004e8cb0]
test rcx, rcx
je 0x41d2f8
cmp dword [rcx], 1
je 0x41d120
call sym._pthread_once_raw.part.0.constprop.0
mov rax, qword [0x004e8ca8]
test rax, rax
je 0x41d2d4
mov rdx, qword [rbp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [rbp + 0x30]
mov rcx, r12
mov dword [rbx + 0x70], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x30]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
jne 0x41d31b
mov rcx, qword [0x004e8c78]
test rcx, rcx
je 0x41d2ad
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x41d37c
mov rsi, qword [rbp + 0x30]
mov rcx, qword [rsi + 8]
call rax
mov r12, rax
nop
nop
mov rcx, qword [0x004e8c78]
test rcx, rcx
je 0x41d355
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], r12
test rcx, rcx
je 0x41d1cf
call sym._pthread_cleanup_dest.part.0
mov rax, qword [rbp + 0x30]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
je 0x41d1f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x30]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x41d387
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
lea rsi, str.mtx_pthr_locked_shmem
jmp 0x41d24f
xor ecx, ecx
call r12
mov rcx, qword [0x004e8c78]
test rcx, rcx
jne 0x41d275
mov rcx, rsi
mov r8, rdi
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e8c78], rax
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x41d24a
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e8c78], rax
mov rcx, rax
jmp 0x41d0f1
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e8c78], rax
mov rcx, rax
jmp 0x41d17c
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x004e8ca8], rax
jmp 0x41d130
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004e8cb0], rax
mov rcx, rax
jmp 0x41d116
mov rcx, qword [0x004e8c78]
test rcx, rcx
je 0x41d331
call sym.pthread_mutex_lock
jmp 0x41d1cf
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e8c78], rax
mov rcx, rax
jmp 0x41d327
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e8c78], rax
mov rcx, rax
jmp 0x41d1b1
mov r12d, pe_nt_image_headers64
jmp 0x41d19f
mov rax, qword [rbp + 0x30]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
cmp qword [rbp + 0x30], 0
je 0x41d3be
mov rax, qword [rbp + 0x30]
cmp qword [rax + 0x1d0], 0
jne 0x41d3be
mov rcx, rax
call sym.push_pthread_mem.part.0
mov rax, qword [0x004e8ca8]
test rax, rax
je 0x41d3d9
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x41d233
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x004e8ca8], rax
jmp 0x41d3ca