Function at 0x10010c810
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x310
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x360], rbx
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov r13, qword [rcx + 0x380]
test r13, r13
je 0x10010cce3
mov rbx, qword [rcx + 0x340]
test rbx, rbx
je 0x10010cce3
mov r14d, 0x64
mov rax, rbx
mov edx, 0x200
and rax, 0xffffffffffffe000
je 0x10010c891
cmp word [rax + 4], dx
jne 0x10010c891
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rdi, qword [rax + 0x10]
dec rdi
not rdi
and rdi, rbx
je 0x10010c8ae
cmp word [rdi + 4], dx
jne 0x10010c8ae
mov rdi, qword [rdi + 0x28]
sub r13, 0x11
xor r15d, r15d
cmp rdi, r13
jae 0x10010c8cf
mov rax, qword [rdi + 0x30]
imul rax, qword [rdi + 0x10]
add rax, rdi
cmp rax, r13
lea eax, [r15 + 1]
ja 0x10010c8d2
mov eax, r15d
mov dword [rsp + 0x30], eax
mov r12d, eax
nop dword [rax]
test r12d, r12d
je 0x10010c8ff
cmp rbx, qword [rsi + 0x380]
jb 0x10010ccd4
cmp qword [rdi + 0x30], 1
jg 0x10010ccd4
jmp 0x10010c907
test eax, eax
jne 0x10010ccd4
test rbx, rbx
je 0x10010cd50
movzx edx, byte [rbx + 0x2a]
mov r8d, 0x10
lea rcx, [rsp + 0x2f0]
call sub.MSVCR100.dll_memset
lea rax, [rsp + 0x2f0]
mov rcx, qword [rbx + 0x40]
cmp rcx, qword [rax]
jne 0x10010c947
mov rcx, qword [rbx + 0x48]
cmp rcx, qword [rax + 8]
jne 0x10010c947
mov eax, r15d
jmp 0x10010c94c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10010c95d
lea rdx, [rbx + 0x50]
lea rcx, [rbx + 0x40]
call fcn.10010e2e0
mov rbp, qword [rbx + 0x18]
movzx eax, byte [rbx + 0x2a]
xor al, 0x55
movzx edx, al
mov r8d, 0x10
lea rcx, [rsp + 0x2e0]
call sub.MSVCR100.dll_memset
lea rax, [rsp + 0x2e0]
mov rcx, qword [rbp + rbx + 0x50]
cmp rcx, qword [rax]
jne 0x10010c99f
mov rcx, qword [rbp + rbx + 0x58]
cmp rcx, qword [rax + 8]
jne 0x10010c99f
mov eax, r15d
jmp 0x10010c9a4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10010c9b8
lea rdx, [rbx + 0x50]
lea rcx, [rbx + 0x50]
add rcx, rbp
call fcn.10010e2e0
call fcn.10006d810
test eax, eax
je 0x10010ca40
lea rcx, [rsp + 0x70]
call fcn.10006d7c0
lea rdx, [rbx + 0x50]
lea rcx, [rsp + 0x70]
call fcn.10006d830
mov rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x70]
call fcn.10006d840
movzx edx, byte [rbx + 0x2b]
shr dl, 2
lea rcx, [rsp + 0x70]
call fcn.10006d850
mov edx, dword [rbx + 0x10]
lea rcx, [rsp + 0x70]
call fcn.10006d860
mov rdx, qword [rsi + 0x3a0]
lea rcx, [rsp + 0x70]
call fcn.10006d870
mov r11, qword [rsi + 0x3a0]
test r11, r11
mov eax, r15d
je 0x10010ca29
mov eax, dword [r11 + 0x18]
movsxd rdx, eax
lea rcx, [rsp + 0x70]
call fcn.10006d880
lea rcx, [rsp + 0x70]
call fcn.10006d890
test byte [rbx + 0x2b], 2
je 0x10010ca81
lea r8, [0x10002c5a0]
mov rdx, rbx
mov rcx, rsi
call fcn.10010d520
dec dword [rsi + 0x398]
and byte [rbx + 0x2b], 0xfd
movsx r9d, word [rbx + 0x28]
lea rax, [0x10002c5f0]
mov qword [rsp + 0x20], rax
mov r8, qword [rbx + 0x20]
xor edx, edx
lea ecx, [rdx + 1]
call fcn.1001522c0
cmp rbx, qword [rsi + 0x388]
jne 0x10010ca95
mov rax, qword [rbx + 8]
mov qword [rsi + 0x388], rax
inc dword [rsi + 0x338]
mov rcx, qword [rbx + 0x30]
call fcn.10011b590
mov qword [rbx + 0x30], r15
mov rax, qword [rbx + 0x18]
add qword [rsi + 0x238], rax
mov rax, qword [rsi + 0x138]
sub rax, qword [rsi + 0x238]
jns 0x10010cae6
mov qword [rsp + 0x20], r15
mov r9d, 0x330
lea r8, [0x1004df5c0]
lea rdx, [0x1004df7e0]
mov ecx, 1
call fcn.1001522c0
movzx eax, byte [rbx + 0x2b]
test al, 0xfc
je 0x10010cb41
movzx eax, al
shr rax, 2
lea rcx, [rsi + rax*8]
mov rax, qword [rbx + 0x18]
add qword [rcx + 0x238], rax
movzx ecx, byte [rbx + 0x2b]
shr rcx, 2
mov rax, qword [rsi + rcx*8 + 0x138]
cmp rax, qword [rsi + rcx*8 + 0x238]
jns 0x10010cb41
mov qword [rsp + 0x20], r15
mov r9d, 0x339
lea r8, [0x1004df5c0]
lea rdx, [0x1004df830]
mov ecx, 1
call fcn.1001522c0
test dword [rsi + 0x350], 0x10000
je 0x10010cb98
call fcn.1000d0b90
mov rbp, rax
test rax, rax
je 0x10010cb98
mov rdx, r15
cmp dword [rax + 0x18], 1
jne 0x10010cb67
lea rdx, [rax + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1001151d0
nop
lea rcx, [rbp + 0x10]
lea rdx, [0x10002c590]
call fcn.1000d2680
nop
lea rcx, [rsp + 0x50]
call fcn.100115250
mov rdx, rbx
mov rcx, rbp
call fcn.10010ac20
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x10010cc04
mov rax, rbx
mov ecx, 0x200
and rax, 0xffffffffffffe000
je 0x10010cbbb
cmp word [rax + 4], cx
jne 0x10010cbbb
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rdi, qword [rax + 0x10]
dec rdi
not rdi
and rdi, rbx
je 0x10010cbd8
cmp word [rdi + 4], cx
jne 0x10010cbd8
mov rdi, qword [rdi + 0x28]
cmp rdi, r13
jae 0x10010cbf4
mov rax, qword [rdi + 0x30]
imul rax, qword [rdi + 0x10]
add rax, rdi
cmp rax, r13
mov r12d, 1
ja 0x10010cbf7
mov r12d, r15d
mov eax, dword [rsp + 0x30]
or eax, r12d
mov dword [rsp + 0x30], eax
jmp 0x10010cc08
mov eax, dword [rsp + 0x30]
dec r14
jne 0x10010c8e0
call fcn.100068a00
mov r14, rax
mov rbp, qword gs:[0x30]
add rbp, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10010cc3d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rbp, rbp
je 0x10010cc4e
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
jne 0x10010cc86
call fcn.100063d30
call fcn.100068a00
mov r14, rax
mov rbp, qword gs:[0x30]
add rbp, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10010cc7f
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov rcx, qword [rbp + 0xd8]
rdtsc
shl rdx, 0x20
or rax, rdx
mov r8, qword [rcx + 0x2f8]
cmp rax, r8
ja 0x10010ccc0
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x10010ccc5
movabs rax, 0x7fffffffffffffff
cmp r8, rax
je 0x10010ccc5
call fcn.1000655c0
mov r14d, 0x64
mov eax, dword [rsp + 0x30]
jmp 0x10010c8e0
mov r12, qword [rsp + 0x38]
test rbx, rbx
je 0x10010cd55
mov qword [rbx], r15
jmp 0x10010cd55
call fcn.10010d1c0
xor r15d, r15d
mov ebx, r15d
lea rdi, [rsi + 0x238]
lea ebp, [r15 + 0x20]
nop dword [rax]
mov rax, qword [rdi - 0x100]
cmp rax, qword [rdi]
jns 0x10010cd2f
mov qword [rsp + 0x20], r15
mov r9d, 0x637
lea r8, [0x1004df5c0]
lea rdx, [0x1004df9b0]
mov ecx, 1
call fcn.1001522c0
mov rax, qword [rdi - 0x100]
mov qword [rdi], rax
add rdi, 8
dec rbp
jne 0x10010cd00
mov eax, dword [rsi + 0x134]
mov dword [rsi + 0x338], eax
jmp 0x10010cd55
mov r12, qword [rsp + 0x38]
test dword [rsi + 0x350], 0x40000
je 0x10010ce43
call fcn.1000d0b90
mov rdi, rax
test rax, rax
je 0x10010ce43
mov rdx, r15
cmp dword [rax + 0x18], 1
jne 0x10010cd83
lea rdx, [rax + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1001151d0
nop
lea rdx, [0x10002c648]
lea rcx, [rdi + 0x10]
call fcn.1000d2680
nop
lea rcx, [rsp + 0x60]
call fcn.100115250
mov rdx, r15
cmp dword [rdi + 0x18], 1
jne 0x10010cdb6
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1001151d0
nop
mov rdx, r12
lea rcx, [rdi + 0x10]
call qword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x58]
call fcn.100115250
mov rdx, r15
cmp dword [rdi + 0x18], 1
jne 0x10010cde6
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1001151d0
nop
lea rdx, [0x10002c640]
lea rcx, [rdi + 0x10]
call fcn.1000d2680
nop
lea rcx, [rsp + 0x40]
call fcn.100115250
mov r14, qword [rsi + 0x380]
cmp dword [rdi + 0x18], 1
jne 0x10010ce1d
lea r15, [rdi + 0x20]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.1001151d0
nop
mov rdx, r14
lea rcx, [rdi + 0x10]
call qword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x48]
call fcn.100115250
mov qword [rsi + 0x340], rbx
mov qword [rsi + 0x380], r12
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.10005f420
mov rbx, qword [rsp + 0x360]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret