Function at 0x14009aab0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rdi, rcx
cmp dword [rdx], 0
jne 0x14009abed
mov rsi, qword [rcx + 0x18]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14009aaf2
lock inc dword [rax + 8]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140143f10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x14009ab27
mov rdx, qword [rax + 8]
jmp 0x14009ab2a
mov rdx, rbx
mov r9d, 8
lea r8d, [r9 + 0x48]
movzx ecx, byte [rbp + 0x50]
call fcn.1400874a0
mov rdx, rax
mov qword [rax + 0x20], rbx
lea rax, [0x1400a8060]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], rbx
mov qword [rdx + 0x18], rbx
mov dword [rdx + 0x30], ebx
mov qword [rdx + 0x38], rbx
mov qword [rdx + 0x40], rbx
mov rcx, qword [rsp + 0x20]
mov qword [rdx + 0x38], rcx
mov rax, qword [rsp + 0x28]
mov qword [rdx + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsi + 0x10]
lock inc dword [rcx + 0x30]
call fcn.1400b6d40
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x30]
call fcn.1400b9bc0
nop
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x14009acd0
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009acd0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14009acd0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_htonl]
jmp 0x14009acd0
mov rax, qword [rcx]
movzx ecx, word [rcx + 0x20]
mov rax, qword [rax + 0x2c8]
lock dec dword [rax + rcx*4]
cmp dword [0x14013e580], 0
jg 0x14009acd0
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140091c10
xor ebx, ebx
mov dword [rbp + 0x30], ebx
mov r8d, dword [0x14013e580]
test r8d, r8d
jg 0x14009ac45
mov rdx, qword [rdi + 0x18]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov ebx, dword [rbp + 0x30]
mov r8d, dword [0x14013e580]
cmp ebx, r8d
jl 0x14009aca3
lea rdx, [0x14011022c]
lea rcx, [rsp + 0x48]
call fcn.14007acc0
mov ebx, dword [rbp + 0x30]
mov r8d, dword [0x14013e580]
cmp ebx, r8d
jl 0x14009aca3
movzx edx, word [rdi + 0x20]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
mov ebx, dword [rbp + 0x30]
mov r8d, dword [0x14013e580]
cmp ebx, r8d
jl 0x14009aca3
lea rdx, str._queue_length:
lea rcx, [rsp + 0x48]
call fcn.14007acc0
mov ebx, dword [rbp + 0x30]
mov r8d, dword [0x14013e580]
mov rax, qword [rdi]
movzx ecx, word [rdi + 0x20]
mov rax, qword [rax + 0x2c8]
cmp ebx, r8d
jl 0x14009acc6
mov edx, dword [rax + rcx*4]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
nop
lea rcx, [rsp + 0x48]
call fcn.140097dc0
mov rcx, qword [rdi]
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
jmp fcn.1400a7ca0