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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r13, rcx
mov r12, rdx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
xor r15d, r15d
mov rdi, rax
test rax, rax
jne 0x14000be69
mov ebx, dword [0x14003d17c]
lea rdx, [rbp - 0x10]
mov ecx, ebx
mov dword [rbp - 0x10], r15d
lea rdi, [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, rax
je 0x14000bed1
test byte [r10 + 0x1c], 1
je 0x14000bed1
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000bea9
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x14000beac
mov rcx, r15
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], r13
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036090]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.140004a7c
mov r10, qword [0x14003d048]
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r15
mov qword [rbp + 0x58], r15
test r13, r13
je 0x14000c091
test r12, r12
je 0x14000c091
xor edx, edx
mov dword [r12], r15d
lea rax, [rbp - 0x18]
lea r9, [0x140036070]
mov qword [rsp + 0x20], rax
lea rcx, [0x140036fb8]
lea r8d, [rdx + 4]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x14000c088
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
lea r8, [0x140036060]
lea rdx, [0x140035548]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14000c088
mov rcx, qword [rbp - 0x20]
lea r8, [rbp + 0x58]
mov rdx, r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14000c088
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14000c088
cmp r15d, dword [rbp + 0x40]
jae 0x14000c088
mov rcx, qword [rbp + 0x58]
lea r9, [rbp + 0x50]
and qword [rbp + 0x50], 0
lea r8, [0x140036050]
mov edx, r15d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14000bfe2
mov rcx, qword [rbp + 0x50]
mov rdx, r12
mov rax, qword [rcx]
mov rax, qword [rax + 0xa8]
call qword [0x140034e68]
cmp dword [r12], 0
mov esi, eax
jne 0x14000bfff
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14000bff8
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
inc r15d
test esi, esi
jmp 0x14000bf88
mov r10, qword [0x14003d048]
lea r15, [0x14003d048]
cmp r10, r15
je 0x14000c062
test byte [r10 + 0x1c], 4
je 0x14000c062
mov eax, dword [rdi]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000c032
mov eax, ecx
mov rcx, r14
sub rcx, rax
jmp 0x14000c034
xor ecx, ecx
lea r12, [0x140035650]
mov qword [rsp + 0x20], r13
lea r9, [rcx + r12]
mov edx, Ordinal_20
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036090]
call fcn.140004a7c
mov r10, qword [0x14003d048]
jmp 0x14000c069
lea r12, [0x140035650]
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14000c0a4
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov r10, qword [0x14003d048]
jmp 0x14000c0a4
mov r10, qword [0x14003d048]
jmp 0x14000c096
mov esi, 0x80004003
lea r15, [0x14003d048]
lea r12, [0x140035650]
cmp r10, r15
je 0x14000c0e4
test byte [r10 + 0x1c], 1
je 0x14000c0e4
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000c0c4
mov eax, ecx
sub r14, rax
jmp 0x14000c0c7
xor r14d, r14d
mov rcx, qword [r10 + 0x10]
lea r9, [r14 + r12]
mov edx, Ordinal_20
mov dword [rsp + 0x20], esi
lea r8, [0x140036090]
call fcn.140001304
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14000c0fa
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14000c110
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14000c126
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [rdi], eax
cmp ebx, eax
je 0x14000c146
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14000c146
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret