Function at 0x1801874d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x80
mov r9, qword [rsp + 0xd0]
xor r13d, r13d
mov r11, r8
mov r12, rdx
mov rbp, rcx
xor esi, esi
mov rax, r9
lea ebx, [r13 + 0xf]
lea r10d, [r13 + 0x20]
nop word [rax + rax]
mov qword [rax], 0xffffffffffffffff
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], 0xffffffffffffffff
add rax, 0x40
dec r10
mov qword [rax - 0x28], 0xffffffffffffffff
mov qword [rax - 0x20], 0xffffffffffffffff
mov qword [rax - 0x18], 0xffffffffffffffff
mov qword [rax - 0x10], 0xffffffffffffffff
mov qword [rax - 8], 0xffffffffffffffff
jne 0x180187520
mov eax, dword [r8 + 0x20]
cmp eax, 0x100
jbe 0x18018757e
mov r13d, 0x80004005
jmp 0x180187be5
mov qword [rsp + 0x78], rdi
xor edi, edi
test eax, eax
je 0x1801875bb
xor edx, edx
nop dword [rax + rax]
mov rax, qword [r8 + 0x28]
inc edi
add rdx, 8
mov rsi, qword [rdx + rax - 8]
mov eax, 1
mov qword [rdx + r9 - 8], rsi
mov ecx, dword [rsi + 0xcc]
shl eax, cl
not eax
and ebx, eax
cmp edi, dword [r8 + 0x20]
jb 0x180187590
movzx eax, byte [r12 + 0x1a]
cmp edi, eax
jae 0x180187650
nop dword [rax]
xor ecx, ecx
bt ebx, ecx
jb 0x1801875e9
inc ecx
cmp ecx, 4
jb 0x1801875d2
mov r13d, 0x80004005
jmp 0x180187be0
cmp ecx, 4
jae 0x1801875de
mov r8, qword [rbp + 0xd078]
mov eax, 1
lea rdx, [r9 + rdi*8]
mov r9d, dword [rsi + 0xc8]
shl eax, cl
mov dword [rsp + 0x28], 0x11
not eax
mov dword [rsp + 0x20], ecx
mov rcx, rbp
and ebx, eax
call fcn.18019f030
mov r13d, eax
test eax, eax
js 0x180187be0
movzx ecx, byte [r12 + 0x1a]
inc edi
cmp edi, ecx
jae 0x180187640
mov r9, qword [rsp + 0xd0]
jmp 0x1801875d0
mov r11, qword [rsp + 0xc0]
mov r9, qword [rsp + 0xd0]
xor edi, edi
mov ecx, edi
mov dword [rsp + 0x30], ecx
cmp byte [r12 + 0x19], cl
jbe 0x180187be0
mov rdx, rdi
mov qword [rsp + 0x70], r14
movabs r10, 0xfefefefefefefefe
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x68], r15
nop
mov rax, qword [r12 + 0x10]
mov r12, qword [rbp + 0xd078]
movzx r15d, word [rdx + rax + 8]
lea r14, [rdx + rax]
movzx edx, byte [rdx + rax + 0xc]
test edx, edx
je 0x1801876f2
mov eax, edx
sub eax, 1
je 0x1801876b8
cmp eax, 1
jne 0x180187bd0
mov r12, qword [rbp + 0xd0f8]
jmp 0x1801876bf
mov r12, qword [rbp + 0xd0a0]
mov rax, qword [r12 + 0x30]
mov r8d, edi
mov dword [rsp + 0x34], edi
test rax, rax
je 0x180187705
mov ecx, dword [rax + 0xc8]
cmp ecx, r8d
jb 0x1801876df
lea r8d, [rcx + 1]
mov rax, qword [rax]
test rax, rax
jne 0x1801876d0
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x34], r8d
jmp 0x180187705
mov r8d, dword [r12 + 0x18]
mov dword [rsp + 0x34], r8d
lea eax, [r8 + 1]
mov dword [r12 + 0x18], eax
movzx eax, byte [r14 + 0xd]
cmp al, 0xff
je 0x1801879ba
cmp al, 0x20
jae 0x180187bd0
mov r8, qword [rsp + 0xc8]
mov edx, dword [r11 + 0x20]
movzx eax, al
mov rcx, qword [r8 + rax*8]
cmp dword [rcx + 0x20], edx
jb 0x180187bd0
mov ebp, edi
mov rsi, rdi
test edx, edx
je 0x180187b73
movzx eax, byte [r14 + 0xd]
mov rcx, qword [r8 + rax*8]
mov rax, qword [rcx + 0x28]
mov ecx, dword [0x18025e63c]
mov rdi, qword [rax + rsi*8]
test ecx, ecx
jns 0x180187766
xor r13d, r13d
mov rcx, r13
jmp 0x18018777c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r13d, r13d
movabs r10, 0xfefefefefefefefe
mov rcx, rax
cmp qword [rcx + 0x18], 0
je 0x1801877a6
mov rbx, qword [rcx + 0x18]
test rbx, rbx
jne 0x180187791
mov rbx, r13
jmp 0x1801877bd
mov rax, qword [rbx]
mov qword [rcx + 0x18], rax
test rax, rax
jne 0x1801877a1
mov qword [rcx + 0x20], r13
mov qword [rbx], r10
jmp 0x1801877bd
mov rcx, qword [rcx + 0x10]
mov edx, 0x188
mov r8d, 0x10
call fcn.180243b70
mov rbx, rax
test rbx, rbx
je 0x18018789a
mov rdx, rdi
mov rcx, rbx
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x78], r13
mov qword [rbx + 0x80], r13
mov qword [rbx + 0x88], r13
mov qword [rbx + 0x90], r13
mov dword [rbx + 0xa0], 0xffffffff
mov qword [rbx + 0xa8], 0xffffffffffffffff
mov qword [rbx + 0x40], r13
call fcn.1801994e0
mov r13d, eax
test eax, eax
js 0x180187837
mov rcx, qword [rsp + 0xb0]
mov r8b, 1
mov rdx, rbx
call fcn.18019ec70
mov r13d, eax
test eax, eax
js 0x180187837
xor edi, edi
mov qword [rsp + 0x40], rbx
mov r13d, edi
jmp 0x1801878a7
mov rcx, rbx
call fcn.1801991c0
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x18018784d
xor edi, edi
jmp 0x180187856
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov edx, 0xfe
mov r8d, 0x188
mov rcx, rbx
call fcn.18024adb8
mov qword [rbx], 0
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x180187889
mov rdx, qword [rsp + 0x40]
mov qword [rax], rbx
mov qword [rdi + 0x20], rbx
xor edi, edi
jmp 0x1801878a7
mov rdx, qword [rsp + 0x40]
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], rbx
xor edi, edi
jmp 0x1801878a7
mov rdx, qword [rsp + 0x40]
mov r13d, 0x8007000e
xor edi, edi
test r13d, r13d
js 0x180187bd6
mov r11, qword [rsp + 0xc0]
and qword [rdx + 0x98], 0xfffffffffe0fffff
movabs rax, 0xfff0000000000000
mov qword [rsp + 0x50], rax
movabs rax, 0x7ff0000000000000
mov rcx, r11
mov qword [rdx + 0x140], rdi
mov qword [rdx + 0x178], rdi
mov qword [rdx + 0x180], 0xffffffffffffffff
movsd xmm0, qword [rsp + 0x50]
movsd qword [rdx + 0x158], xmm0
mov qword [rsp + 0x50], rax
movabs rax, 0x8000000000000000
mov qword [rdx + 0x148], rdi
movsd xmm1, qword [rsp + 0x50]
mov qword [rdx + 0x168], rax
movabs rax, 0x7fffffffffffffff
movsd qword [rdx + 0x160], xmm1
mov qword [rdx + 0x170], rax
mov eax, dword [rsp + 0x34]
mov qword [rdx + 0x150], rdi
mov dword [rdx + 0xc8], eax
call fcn.180197000
lea rcx, [rsi + r15*4 - 0x10000]
imul eax, ebp
mov dword [rdx + 0xcc], eax
lea eax, [rbp + r15*4 - 0x10000]
cmp eax, 0x100
jae 0x180187bd0
mov r9, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xc8]
inc ebp
inc rsi
mov qword [r9 + rcx*8], rdx
movabs r10, 0xfefefefefefefefe
cmp ebp, dword [r11 + 0x20]
jb 0x180187743
mov rbp, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x30]
jmp 0x180187b9d
cmp r15d, 0x4000
je 0x180187aa0
mov rdx, qword [rsp + 0xc8]
lea r8, [rsp + 0x38]
mov rcx, r14
call fcn.180186480
mov r13d, eax
test eax, eax
js 0x180187bd6
mov r11, qword [rsp + 0xc0]
cmp dword [r11 + 0x20], 0
jbe 0x180187b81
mov ebp, dword [rsp + 0x38]
mov r14, qword [rsp + 0xd0]
lea ebx, [r15*4 - 0x10000]
xor esi, esi
cmp ebp, 0x10
jne 0x180187a26
mov rax, qword [r11 + 0x28]
mov rcx, qword [rax + rsi]
mov r8d, dword [rcx + 0xa4]
jmp 0x180187a29
mov r8d, ebp
cmp ebx, 0x100
jae 0x180187bd0
mov rcx, r11
call fcn.180197000
mov r9d, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xb0]
imul eax, edi
mov dword [rsp + 0x28], r8d
lea rdx, [r14 + rbx*8]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.18019f030
mov r13d, eax
test eax, eax
js 0x180187bd6
mov r11, qword [rsp + 0xc0]
inc edi
inc ebx
add rsi, 8
cmp edi, dword [r11 + 0x20]
jb 0x180187a10
mov rbp, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x30]
xor edi, edi
movabs r10, 0xfefefefefefefefe
jmp 0x180187b9d
test edx, edx
je 0x180187b9d
cmp dword [r11 + 0x20], 0
mov r10d, edi
jbe 0x180187b93
nop word [rax + rax]
mov rcx, qword [r9]
mov rdx, qword [rcx + 0xa8]
cmp rdx, r12
je 0x180187b48
test rdx, rdx
je 0x180187b16
cmp rdx, 0xffffffffffffffff
je 0x180187b16
mov r8, qword [rcx + 8]
test r8, r8
je 0x180187aeb
mov rax, qword [rcx]
mov qword [r8], rax
jmp 0x180187af2
mov rax, qword [rcx]
mov qword [rdx + 0x30], rax
mov r8, qword [rcx]
test r8, r8
je 0x180187b09
mov rax, qword [rcx + 8]
mov qword [r8 + 8], rax
mov r8d, dword [rsp + 0x34]
jmp 0x180187b16
mov rax, qword [rcx + 8]
mov r8d, dword [rsp + 0x34]
mov qword [rdx + 0x38], rax
cmp r12, 0xffffffffffffffff
je 0x180187b41
mov rax, qword [r12 + 0x38]
mov qword [rcx + 8], rax
mov rax, qword [r12 + 0x38]
test rax, rax
je 0x180187b34
mov qword [rax], rcx
jmp 0x180187b39
mov qword [r12 + 0x30], rcx
mov qword [rcx], rdi
mov qword [r12 + 0x38], rcx
mov qword [rcx + 0xa8], r12
mov rax, qword [r9]
inc r10d
add r9, 8
mov dword [rax + 0xc8], r8d
cmp r10d, dword [r11 + 0x20]
jb 0x180187ac0
mov ecx, dword [rsp + 0x30]
movabs r10, 0xfefefefefefefefe
jmp 0x180187b9d
mov rbp, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x30]
jmp 0x180187b9d
mov ecx, dword [rsp + 0x30]
xor edi, edi
movabs r10, 0xfefefefefefefefe
jmp 0x180187b9d
movabs r10, 0xfefefefefefefefe
mov rdx, qword [rsp + 0x48]
mov r12, qword [rsp + 0xb8]
inc ecx
movzx eax, byte [r12 + 0x19]
add rdx, 0x10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x48], rdx
cmp ecx, eax
jae 0x180187bd6
mov r9, qword [rsp + 0xd0]
jmp 0x180187680
mov r13d, 0x80004005
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov eax, r13d
add rsp, 0x80
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret