Function at 0x14012f3f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
xor r13d, r13d
lea rbx, [rcx + 0x2e0]
mov qword [rbp - 9], rbx
mov byte [rbp - 1], r13b
mov rcx, rbx
call fcn.14025a74c
test eax, eax
jne 0x14012f88b
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x14012f896
mov byte [rbp - 1], 1
lea rbx, [rdi + 0x340]
mov qword [rbp - 0x19], rbx
mov byte [rbp - 0x11], r13b
mov rcx, rbx
call fcn.14025a74c
test eax, eax
jne 0x14012f8a6
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x14012f8b1
mov byte [rbp - 0x11], 1
lea rax, [fcn.140063630]
cmp dword [rsi], r13d
cmove rax, r13
lea rbx, [rdi + 0x330]
mov r10, qword [rbx]
test r10, r10
je 0x14012f4ca
test rax, rax
je 0x14012f4fe
mov rax, qword [r10]
mov qword [rbx], rax
test rax, rax
jne 0x14012f4b0
mov qword [rbx + 8], r13
mov qword [r10], r13
xor r9d, r9d
mov r8, rsi
xor edx, edx
mov rcx, r10
call qword [r10 + reloc.WS2_32.dll_htonl]
mov r10, qword [rbx]
test r10, r10
jne 0x14012f4a1
mov rcx, qword [rbp - 0x19]
call fcn.14025a770
nop
mov rcx, qword [rbp - 9]
call fcn.14025a770
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r8, qword [rdi + 0x3b0]
test r8, r8
je 0x14012f4ca
mov rdx, qword [rdi + 0x3a8]
mov rcx, qword [rdi + 0x3a0]
dec rcx
mov rax, rdx
shr rax, 2
and rcx, rax
and edx, 3
mov rax, qword [rdi + 0x398]
mov rcx, qword [rax + rcx*8]
mov r9d, dword [rcx + rdx*4]
lea rax, [r8 - 1]
mov qword [rdi + 0x3b0], rax
mov r14, r10
test rax, rax
jne 0x14012f553
mov qword [rdi + 0x3a8], r13
jmp 0x14012f55a
inc qword [rdi + 0x3a8]
mov rax, qword [r10]
mov qword [rbx], rax
test rax, rax
jne 0x14012f569
mov qword [rbx + 8], r13
mov qword [r10], r13
mov rax, qword [r14 + 0x20]
mov dword [rax], r9d
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x14012f580
lock inc dword [rax + 8]
mov r15, qword [r14 + 0x10]
mov qword [rbp - 0x29], r15
mov r12, qword [r14 + 0x18]
mov qword [rbp - 0x21], r12
lea rbx, [r15 + 0x20]
mov qword [rbp + 7], rbx
mov byte [rbp + 0xf], 0
mov rcx, rbx
call fcn.14025a74c
test eax, eax
jne 0x14012f8c1
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x14012f8cc
mov byte [rbp + 0xf], 1
lea rcx, [r15 + 0x70]
call fcn.14025a74c
test eax, eax
jne 0x14012f8dc
mov eax, dword [r15 + 0xbc]
cmp eax, 0x7fffffff
je 0x14012f871
mov word [r15 + 0xc0], 0x100
lea rcx, [r15 + 0x70]
call fcn.14025a770
nop
mov rcx, rbx
call fcn.14025a770
nop
mov esi, 0xffffffff
test r12, r12
je 0x14012f638
mov eax, esi
lock xadd dword [r12 + 8], eax
cmp eax, 1
jne 0x14012f638
mov rbx, qword [rbp - 0x21]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14012f638
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x14012f64d
lock inc dword [rax + 8]
mov rax, qword [r14 + 0x10]
mov qword [rbp - 0x39], rax
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x31], rax
mov r8, r14
lea rdx, [rbp - 0x39]
mov rcx, qword [rdi + 0x18]
call fcn.1400f1e60
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x14012f885
mov eax, dword [rdx + 8]
test eax, eax
je 0x14012f885
nop dword [rax]
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x14012f6a4
test eax, eax
je 0x14012f885
jmp 0x14012f690
mov r8, qword [rdi]
mov qword [rbp - 0x69], r8
mov rdx, qword [rdi + 8]
mov rbx, rdx
mov qword [rbp - 0x61], rdx
mov qword [rbp + 0x17], rdi
test rdx, rdx
je 0x14012f6cb
lock inc dword [rdx + 8]
mov rbx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x69]
mov qword [rbp + 0x1f], r8
mov qword [rbp + 0x27], rbx
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x28]
mov qword [rbp - 0x59], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
test rdx, rdx
je 0x14012f6fb
lock inc dword [rdx + 8]
mov rbx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x69]
mov qword [rbp - 0x51], r8
mov qword [rbp - 0x49], rbx
mov rdi, qword [rax + 0x10]
mov ecx, dword [0x1403e78ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14012f732
nop dword [rax + rax]
cmp qword [rax], rdi
je 0x14012f80b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14012f720
lea rdx, [rbp - 0x59]
mov ecx, 0x50
call fcn.140062870
mov rdx, rax
mov qword [rax + 0x20], r13
lea rax, [0x14013b940]
mov qword [rdx + 0x28], rax
mov qword [rdx], r13
mov qword [rdx + 8], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov dword [rdx + 0x30], r13d
mov rcx, qword [rbp - 0x59]
mov qword [rdx + 0x38], rcx
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], r13
mov rax, qword [rbp - 0x51]
mov qword [rdx + 0x40], rax
mov rax, qword [rbp - 0x49]
mov qword [rdx + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
lock inc dword [rdi + 0x30]
mov rcx, rdi
call fcn.140064ee0
mov rbx, qword [rbp - 0x61]
mov rdi, qword [rbp - 0x49]
test rdi, rdi
je 0x14012f7d3
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14012f7cf
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14012f7cf
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x14012f82f
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14012f82b
mov rbx, qword [rbp - 0x61]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14012f82b
mov rbx, qword [rbp - 0x61]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14012f82f
cmp qword [rax + 8], 0
je 0x14012f732
nop
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x59]
call fcn.14009ac20
nop
nop
jmp 0x14012f79d
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x14012f4ca
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14012f4ca
mov rbx, qword [rbp - 0x61]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14012f4ca
mov rcx, qword [rbp - 0x61]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14012f4ca
dec eax
mov dword [r15 + 0xbc], eax
mov ecx, 6
call fcn.14025a9e4
nop
call fcn.140091610
nop
mov ecx, 5
call fcn.14025a9e4
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.14025a9e4
nop
mov ecx, 5
call fcn.14025a9e4
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.14025a9e4
nop
mov ecx, 5
call fcn.14025a9e4
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.14025a9e4
nop
mov ecx, 5
call fcn.14025a9e4
int3