Function at 0x100080fe0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, dword [r8 + 0x38]
mov r12, r8
mov r13, rdx
mov rsi, rcx
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100081031
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100081042
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x100081079
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100081072
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov ecx, dword [rax + 0x7c]
call fcn.10006be50
movzx ebx, word [rax + 2]
call fcn.10006add0
movzx edx, bx
mov rcx, rax
call fcn.100082130
xor ecx, ecx
lea r14, [r13 + 0xfff]
and r14, 0xfffffffffffff000
mov rbp, r13
mov qword [rsp + 0x98], rcx
shr r14, 0xc
shr rbp, 0xc
mov rbx, rax
lea edi, [rcx + 1]
dec r15d
je 0x10008133c
dec r15d
je 0x100081180
dec r15d
jne 0x100081342
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov rdx, r14
call fcn.1000843b0
xor r15d, r15d
mov r9d, 0x1000
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov r8, r13
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 4
call fcn.100086db0
test rax, rax
je 0x100081338
mov rax, rsi
test rbp, rbp
je 0x10008114e
nop word [rax + rax]
mov byte [rax], r15b
add rax, 0x1000
dec rbp
jne 0x100081140
mov dword [rsp + 0x30], 0x1000
lea rcx, [0x100255a30]
xor r9d, r9d
mov r8, r13
mov rdx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call fcn.10007e160
lock xadd qword [rbx + 0x58], r14
jmp 0x100081342
mov r14, rcx
test rbp, rbp
je 0x100081342
mov r13, qword [rsp + 0xa0]
nop word [rax + rax]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov rdx, rdi
call fcn.1000843b0
movzx eax, word [rbx + 0x80]
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x98]
lea rcx, [rbx + 0xe0]
xor r15d, r15d
mov r8, rdi
mov word [rsp + 0x20], ax
mov qword [rsp + 0x90], r15
call fcn.100083780
mov r15d, eax
test eax, eax
je 0x10008124d
mov rdi, qword [rsp + 0x90]
call fcn.1000683b0
lock xadd qword [rax], rdi
mov rcx, qword [rsp + 0x90]
lock xadd qword [rbx + 0x50], rcx
mov rdx, qword [rbx + 0x48]
add rdx, qword [rbx + 0x40]
add rdx, qword [rbx + 0x50]
cmp dword [0x100255a10], 1
jne 0x100081233
mov rax, qword [rbx + 0x68]
sub rax, qword [rbx + 0x60]
add rdx, rax
lea rax, [rdx + 1]
cqo
sub rax, rdx
sar rax, 1
cmp qword [rbx + 0x88], rax
jne 0x10008124d
call fcn.100084960
mov rdi, qword [rsp + 0x90]
test r15d, r15d
je 0x100081338
lea r8, [rsp + 0x98]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
test eax, eax
je 0x1000812cd
mov dword [rsp + 0x30], 0x1000
lea r9, [rsp + 0x98]
lea rcx, [0x100255a30]
mov r8d, 0x1000
mov rdx, rsi
mov qword [rsp + 0x28], r13
mov byte [rsi], 0
mov qword [rsp + 0x20], rdi
call fcn.10007e160
mov eax, 1
lock xadd qword [rbx + 0x58], rax
inc r14
add rsi, 0x1000
mov ecx, 0
cmp r14, rbp
jb 0x1000811a0
jmp 0x100081342
lea rdx, [rsp + 0x98]
lea rcx, [rbx + 0xe0]
mov r8, rdi
call fcn.1000839b0
test eax, eax
je 0x100081338
neg rdi
call fcn.1000683b0
mov rcx, rdi
lock xadd qword [rax], rcx
lock xadd qword [rbx + 0x50], rdi
mov rcx, qword [rbx + 0x48]
add rcx, qword [rbx + 0x40]
add rcx, qword [rbx + 0x50]
cmp dword [0x100255a10], 1
jne 0x10008131e
mov rax, qword [rbx + 0x68]
sub rax, qword [rbx + 0x60]
add rcx, rax
lea rax, [rcx + 1]
cqo
sub rax, rdx
sar rax, 1
cmp qword [rbx + 0x88], rax
jne 0x100081338
call fcn.100084960
xor eax, eax
jmp 0x100081347
lock xadd qword [rax + 0x58], r14
mov eax, 1
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret