Function at 0x140128780
Capabilities:
Get thread local storage value

Disassembly:
mov r8d, edx
xor edx, edx
jmp 0x140128790
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 0x140128a52
cmp word [rcx], 0
je 0x140128a52
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x28], r14
call fcn.14012bfa0
mov r14d, eax
test eax, eax
je 0x1401287dd
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 0x140128905
mov ecx, ebp
mov r8, rdi
test ax, ax
je 0x140128842
movzx edx, ax
sub edx, 0x22
je 0x140128830
sub edx, 4
je 0x14012882a
dec edx
je 0x140128830
sub edx, 0x15
je 0x140128824
cmp edx, 2
je 0x140128824
inc rcx
jmp 0x140128834
add rcx, 4
jmp 0x140128834
add rcx, 5
jmp 0x140128834
add rcx, 6
movzx eax, word [r8 + 2]
add r8, 2
test ax, ax
jne 0x140128804
mov edx, esi
call fcn.14012bbd0
mov r8, rdi
mov rbx, rax
cmp word [rdi], bp
je 0x140128a21
mov esi, 0x3b
nop dword [rax]
movzx edx, word [r8]
mov ecx, edx
sub ecx, 0x22
je 0x1401288da
sub ecx, 4
je 0x1401288c3
dec ecx
je 0x1401288ad
sub ecx, 0x15
je 0x14012889a
cmp ecx, 2
je 0x140128887
mov word [rbx], dx
add rbx, 2
jmp 0x1401288f2
mov dword [rbx], 0x670026
mov dword [rbx + 4], 0x3b0074
add rbx, 8
jmp 0x1401288f2
mov dword [rbx], 0x6c0026
mov dword [rbx + 4], 0x3b0074
add rbx, 8
jmp 0x1401288f2
mov dword [rbx], 0x610026
mov dword [rbx + 4], 0x6f0070
mov dword [rbx + 8], 0x3b0073
jmp 0x1401288ee
mov dword [rbx], 0x610026
mov dword [rbx + 4], 0x70006d
mov word [rbx + 8], si
add rbx, 0xa
jmp 0x1401288f2
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 0x140128860
jmp 0x140128a1c
mov r8, rbp
mov rdx, rdi
lea r15, [0x140000000]
test ax, ax
je 0x140128959
nop word [rax + rax]
movzx eax, ax
add eax, 0xfffffff9
cmp eax, 0x55
ja case.0x140128941.8
cdqe
movzx eax, byte [r15 + rax + 0x128a6c]
mov ecx, dword [r15 + rax*4 + 0x128a64]
add rcx, r15
jmp rcx
add r8, 2
jmp 0x14012894c
inc r8
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x140128920
mov edx, esi
mov ecx, r8d
call fcn.14012bbd0
mov rdx, rdi
mov rbx, rax
cmp word [rdi], bp
je 0x140128a21
movzx r8d, word [rdx]
lea eax, [r8 - 7]
cmp eax, 0x55
ja case.0x140128999.16
cdqe
movzx eax, byte [r15 + rax + 0x128aec]
mov ecx, dword [r15 + rax*4 + 0x128ac4]
add rcx, r15
jmp rcx
mov dword [rbx], 0x61005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x62005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x66005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x6e005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x72005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x74005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x76005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x22005c
add rbx, 4
jmp 0x140128a0f
mov dword [rbx], 0x5c005c
add rbx, 4
jmp 0x140128a0f
mov word [rbx], r8w
add rbx, 2
add rdx, 2
cmp word [rdx], bp
jne 0x140128972
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 0x140128a42
mov rcx, rdi
call fcn.1400be5ee
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.14012bd50