Function at 0x14008bd10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov esi, r8d
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x14008bfd2
cmp word [rcx], 0
je 0x14008bfd2
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x28], r14
call fcn.14008efe0
mov r14d, eax
test eax, eax
je 0x14008bd5d
mov rcx, rdi
call sub.msvcrt.dll__wcsdup
mov rdi, rax
mov qword [rsp + 0x60], rax
movzx eax, word [rdi]
mov qword [rsp + 0x38], r12
xor ebp, ebp
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], r15
cmp ebx, 1
jne 0x14008be85
mov ecx, ebp
mov r8, rdi
test ax, ax
je 0x14008bdc2
movzx edx, ax
sub edx, 0x22
je 0x14008bdb0
sub edx, 4
je 0x14008bdaa
dec edx
je 0x14008bdb0
sub edx, 0x15
je 0x14008bda4
cmp edx, 2
je 0x14008bda4
inc rcx
jmp 0x14008bdb4
add rcx, 4
jmp 0x14008bdb4
add rcx, 5
jmp 0x14008bdb4
add rcx, 6
movzx eax, word [r8 + 2]
add r8, 2
test ax, ax
jne 0x14008bd84
mov edx, esi
call fcn.14008eae0
mov r8, rdi
mov rbx, rax
cmp word [rdi], bp
je 0x14008bfa1
mov esi, 0x3b
nop dword [rax]
movzx edx, word [r8]
mov ecx, edx
sub ecx, 0x22
je 0x14008be5a
sub ecx, 4
je 0x14008be43
dec ecx
je 0x14008be2d
sub ecx, 0x15
je 0x14008be1a
cmp ecx, 2
je 0x14008be07
mov word [rbx], dx
add rbx, 2
jmp 0x14008be72
mov dword [rbx], 0x670026
mov dword [rbx + 4], 0x3b0074
add rbx, 8
jmp 0x14008be72
mov dword [rbx], 0x6c0026
mov dword [rbx + 4], 0x3b0074
add rbx, 8
jmp 0x14008be72
mov dword [rbx], 0x610026
mov dword [rbx + 4], 0x6f0070
mov dword [rbx + 8], 0x3b0073
jmp 0x14008be6e
mov dword [rbx], 0x610026
mov dword [rbx + 4], 0x70006d
mov word [rbx + 8], si
add rbx, 0xa
jmp 0x14008be72
mov dword [rbx], 0x710026
mov dword [rbx + 4], 0x6f0075
mov dword [rbx + 8], 0x3b0074
add rbx, 0xc
add r8, 2
cmp word [r8], bp
jne 0x14008bde0
jmp 0x14008bf9c
mov r8, rbp
mov rdx, rdi
lea r15, [0x140000000]
test ax, ax
je 0x14008bed9
nop word [rax + rax]
movzx eax, ax
add eax, 0xfffffff9
cmp eax, 0x55
ja case.0x14008bec1.8
cdqe
movzx eax, byte [r15 + rax + 0x8bfec]
mov ecx, dword [r15 + rax*4 + 0x8bfe4]
add rcx, r15
jmp rcx
add r8, 2
jmp 0x14008becc
inc r8
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x14008bea0
mov edx, esi
mov ecx, r8d
call fcn.14008eae0
mov rdx, rdi
mov rbx, rax
cmp word [rdi], bp
je 0x14008bfa1
movzx r8d, word [rdx]
lea eax, [r8 - 7]
cmp eax, 0x55
ja case.0x14008bf19.16
cdqe
movzx eax, byte [r15 + rax + 0x8c06c]
mov ecx, dword [r15 + rax*4 + 0x8c044]
add rcx, r15
jmp rcx
mov dword [rbx], 0x61005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x62005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x66005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x6e005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x72005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x74005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x76005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x22005c
add rbx, 4
jmp 0x14008bf8f
mov dword [rbx], 0x5c005c
add rbx, 4
jmp 0x14008bf8f
mov word [rbx], r8w
add rbx, 2
add rdx, 2
cmp word [rdx], bp
jne 0x14008bef2
mov rdi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
test r14d, r14d
mov r14, qword [rsp + 0x28]
je 0x14008bfc2
mov rcx, rdi
call fcn.140045f23
mov word [rbx], bp
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov ecx, r8d
add rsp, 0x40
pop rdi
pop rsi
pop rbx
jmp fcn.14008ec20