Function at 0x14010a6a0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rbx, r8
mov qword [rsp + 0x38], rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rdx + 0x6a8]
mov qword [rsp + 0x40], rax
mov rdi, qword [rdx + 0x18]
mov qword [rsp + 0x80], r9
mov rax, qword [r9 + 8]
mov rcx, qword [rax + 0x17]
xor esi, esi
cmp rcx, 2
setge sil
mov rax, qword [rax + 0x17]
mov qword [rsp + 0x50], rax
mov rax, qword [0x1403a1a10]
mov qword [rsp + 0x58], rax
mov rcx, rdi
call fcn.1400e36d0
mov r15, rax
mov rcx, rdi
call fcn.1400e71f0
mov r12, rax
mov rcx, rdi
call fcn.1400e6e40
mov r13, rax
mov rax, qword [rbx + 8]
mov rdx, qword [rax + rsi*8 + 0x17]
mov rcx, r15
call fcn.1400e36f0
mov rax, qword [r15 + 8]
cmp rax, qword [0x14039ab20]
jne 0x14010a77a
mov rsi, qword [rsp + 0x38]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140258ea0
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1403a44f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 8]
mov qword [rsp + 0x48], rax
nop dword [rax]
mov rcx, r15
mov rdx, r12
call fcn.1401526c0
test al, al
je 0x14010a808
mov rcx, r12
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.14013abe0
cmp qword [rsp + 0x50], 2
jl 0x14010a800
test al, al
je 0x14010a800
mov rcx, qword [r12 + 8]
mov edx, dword [rcx + 0x47]
and edx, 0x1f
dec edx
cmp edx, 1
ja 0x14010a800
mov rax, qword [r15 + 8]
mov rax, qword [rax + 0x17]
mov rdx, qword [0x14039ff68]
cmp rax, qword [rdx + 8]
jne 0x14010a808
jmp 0x14010aa3e
test al, al
jne 0x14010aa39
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x1a0]
test al, al
jne 0x14010a9e6
mov rax, qword [r15 + 8]
test al, 1
jne 0x14010a840
lea rcx, [rsp + 0x78]
call fcn.140157f00
mov rax, qword [rsp + 0x78]
jmp 0x14010a867
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x6a8]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax - 1]
mov rcx, qword [rcx + 0x30]
shr eax, 0xc
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x78], rax
mov qword [r13 + 8], rax
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x70]
mov rdx, rdi
mov r8, r13
mov r9, qword [rsp + 0x58]
call fcn.140193a90
mov rax, qword [rsp + 0x70]
mov qword [r12 + 8], rax
cmp rax, qword [0x14039ab20]
je 0x14010a74b
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010a8c0
cmp byte [rax + 8], 0
jne 0x14010a8c5
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x14010a8c5
call fcn.140176500
mov rbp, qword [rax + 0x50]
mov r14, rax
call fcn.140176390
add rbp, qword [r14 + 0x48]
cmp rax, rbp
jbe 0x14010a9f2
mov edx, 0x59
mov r8d, 1
lea rcx, [rsp + 0x68]
xor r9d, r9d
call fcn.14015ccb0
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
call fcn.1400e2f40
mov rbp, rax
mov rdx, qword [rax + 8]
lea rcx, [rdx - 1]
mov r8, qword [r15 + 8]
add rdx, 0x17
call fcn.1400e1280
mov rax, qword [rbp + 8]
mov r8, qword [rax + 0xf]
sar r8, 1
cmp r8, 0x1f
jg 0x14010a940
lea rax, [0x14039f690]
lea r14, [rax + r8*8]
jmp 0x14010a962
mov dword [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
lea r14, [rsp + 0x88]
mov rcx, r14
xor edx, edx
mov r9, r8
call fcn.14010b690
mov rcx, qword [r14]
call fcn.1400e1410
lea rcx, [rsp + 0x60]
mov rdx, r12
mov r8, rbp
mov r9, rax
call fcn.14010a4f0
mov rdx, qword [rsp + 0x60]
mov r8d, 4
mov rcx, rdi
call fcn.1400e0c10
mov rbp, rax
mov rax, qword [rax]
mov rcx, rbp
call qword [rax + pe_nt_image_headers64]
test al, al
jne 0x14010aa30
mov rcx, qword [rbx + 8]
mov r8, qword [rbp + 8]
lea rdx, [rcx + rsi*8]
add rdx, 0x17
dec rcx
call fcn.1400e1280
mov rax, qword [rbx + 8]
mov rdx, qword [rax + rsi*8 + 0x17]
mov rcx, r15
call fcn.1400e36f0
mov rax, qword [r15 + 8]
cmp rax, qword [0x14039ab20]
jne 0x14010a7a0
jmp 0x14010a74b
mov rax, qword [0x14039ab20]
jmp 0x14010a74b
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + 0x400]
mov rcx, rdi
call fcn.1400e37a0
mov rbx, rax
mov rcx, rdi
call fcn.1400eea20
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
mov rdx, rbx
mov r8, rax
xor r9d, r9d
call fcn.14014f760
jmp 0x14010a753
mov rax, qword [rbp + 8]
jmp 0x14010a74b
mov rcx, qword [r12 + 8]
mov rsi, qword [rsp + 0x38]
mov qword [rsi], rcx
jmp 0x14010a753