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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.140030fc0
sub rsp, rax
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov qword [rsp + 0x68], rcx
mov r13, r8
mov ecx, dword [0x14003d17c]
mov r12, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002f8f4
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x60]
and dword [rsp + 0x60], eax
lea r14, [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rax
je 0x14002f951
test byte [r10 + 0x1c], 1
je 0x14002f951
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002f936
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002f938
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, ntohl
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037220]
call fcn.1400012b0
mov rax, qword [r13]
lea rdx, [rsp + 0x58]
xor edi, edi
mov rcx, r13
and qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14002fb61
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14002fb61
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x48]
mov r9d, 0x40000
mov dword [rsp + 0x48], 0x824
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_url_l1_1_0.dll_UrlUnescapeW]
mov esi, eax
test eax, eax
js 0x14002f9e5
lea r8, [rsp + 0x50]
mov rcx, r12
lea rdx, [rsp + 0x70]
call fcn.14002f57c
mov rdi, qword [rsp + 0x50]
mov esi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor r12d, r12d
test esi, esi
js 0x14002fb64
mov ecx, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rcx
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14002fa68
test byte [r10 + 0x1c], 4
je 0x14002fa68
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002fa3c
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x14002fa3f
mov rcx, r12
lea r9, [0x140035650]
mov qword [rsp + 0x20], rdi
add r9, rcx
lea r8, [0x140037220]
mov rcx, qword [r10 + 0x10]
mov edx, reloc.WS2_32.dll_ntohl
call fcn.140004a7c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002fa7f
mov qword [rsp + 0x40], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x20], 0x80
mov rax, qword [rcx]
lea r8d, [r9 + 2]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14002fb1b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002facf
mov qword [rsp + 0x48], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rax, qword [r13]
lea rdx, [rsp + 0x48]
mov rcx, r13
mov rax, qword [rax + 0x20]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14002fb1b
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
or dword [rsp + 0x50], 0xffffffff
or dword [rsp + 0x54], 0xffffffff
mov r8, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov rax, qword [rax + 0x38]
call qword [0x140034e68]
mov esi, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002fb37
mov qword [rsp + 0x48], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002fb53
mov qword [rsp + 0x40], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
test esi, esi
js 0x14002fb64
mov rcx, rdi
call fcn.140011b50
jmp 0x14002fb64
xor r12d, r12d
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14002fbb8
test byte [rcx + 0x1c], 1
je 0x14002fbb8
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002fb92
mov eax, edx
sub r15, rax
jmp 0x14002fb95
mov r15, r12
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], esi
mov edx, reloc.WS2_32.dll_ntohs
lea r8, [0x140037220]
call fcn.140001304
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002fbd4
mov qword [rsp + 0x58], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
dec dword [r14]
cmp ebx, 0xffffffff
je 0x14002fbfc
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002fbfc
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.1400304d0
mov rbx, qword [rsp + 0x1128]
add rsp, 0x10d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret