Function at 0x10007f370
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rdi
mov rax, qword [0x10022f440]
xor rax, rbp
mov qword [rbp + 0x30], rax
mov rbx, qword [rcx + 0x28]
mov r12, qword [rdx + 0x10]
mov rax, qword [0x100278968]
mov qword [rbp + 0x10], rax
movzx eax, word [rax + 0x80]
mov r9, rdx
mov word [rbp], ax
mov rax, qword [r9 + 0x18]
mov qword [rbp + 0x28], rdx
xor edx, edx
xor r15d, r15d
mov qword [rbp + 8], rcx
mov ecx, dword [0x100255a10]
div rbx
xor edx, edx
mov r8d, 1
mov qword [rbp + 0x20], rbx
mov dword [rbp + 4], ecx
imul rax, rbx
div rbx
mov r13d, r15d
mov edi, r15d
mov r14d, r15d
mov rsi, rax
mov qword [rbp + 0x18], rax
cmp ecx, r8d
jne 0x10007f453
call fcn.100068410
xor edx, edx
mov r11, rax
mov rax, rbx
div qword [r11]
mov rdi, rax
add rax, 0xf
cmp rax, rdi
ja 0x10007f42c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.10005f3c0
sub rsp, rax
lea r13, [rsp + 0x30]
call fcn.100068410
mov r8d, 1
mov r14, qword [rax]
shr r14, 0xc
imul r14, rdi
test rsi, rsi
je 0x10007f635
nop dword [rax]
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10007f48b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10007f49c
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x10007f4d3
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10007f4cc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov edx, dword [rax + 0x7c]
lea rcx, [0x100253900]
call fcn.10007e580
mov rbx, rax
test rax, rax
je 0x10007f622
mov esi, dword [rbp + 4]
mov r8, qword [rbp + 0x28]
xor r9d, r9d
mov rdx, r12
mov rcx, rax
mov dword [rsp + 0x20], esi
call fcn.100078d70
test eax, eax
je 0x10007f618
cmp esi, 1
je 0x10007f526
mov rcx, qword [rbp + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
jmp 0x10007f600
call fcn.10006ba20
test eax, eax
jne 0x10007f55e
mov rsi, qword [rbp + 8]
movzx eax, word [rbp]
mov rdx, rbx
movzx ecx, byte [rsi + 0x1c]
shl eax, cl
mov ecx, eax
add rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov rcx, qword [rbp + 0x10]
mov rax, r14
lock xadd qword [rcx + 0x58], rax
jmp 0x10007f600
call fcn.100068410
mov rdx, qword [rbp + 0x20]
mov r9, rdi
mov r8, qword [rax]
mov rcx, r12
mov qword [rsp + 0x20], r13
call fcn.10007c610
test eax, eax
je 0x10007f600
cmp rdi, 1
jbe 0x10007f5a6
mov rdx, r13
lea rax, [r13 + 1]
neg rdx
movzx ecx, byte [rax]
cmp byte [rax - 1], cl
jne 0x10007f600
inc rax
lea rcx, [rdx + rax]
cmp rcx, rdi
jb 0x10007f592
mov rdx, qword [rbp + 8]
movzx eax, byte [r13]
movzx ecx, byte [rdx + 0x1c]
shl eax, cl
mov ecx, eax
add rcx, qword [rdx + 0x10]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
call fcn.10006add0
movzx edx, byte [r13]
mov rcx, rax
call fcn.100082130
mov rcx, r14
lock xadd qword [rax + 0x58], rcx
movzx edx, byte [r13]
cmp word [rbp], dx
je 0x10007f600
mov rcx, r14
lock xadd qword [rax + 0x68], rcx
mov rax, r14
mov rcx, qword [rbp + 0x10]
lock xadd qword [rcx + 0x60], rax
add r12, qword [rbp + 0x20]
inc r15
cmp r15, qword [rbp + 0x18]
jb 0x10007f460
mov eax, 1
jmp 0x10007f638
xor edx, edx
mov rcx, rbx
call fcn.100078e90
cmp r15, qword [rbp + 0x18]
mov eax, 1
mov ecx, 0
cmovb eax, ecx
jmp 0x10007f638
mov eax, r8d
mov rcx, qword [rbp + 0x30]
xor rcx, rbp
call fcn.10005f420
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
lea rsp, [rbp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret