Function at 0x180146660
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbx
push rdi
sub rsp, 0x268
mov qword [rax + 0x10], rbp
mov qword [rax - 0x18], rsi
lea rax, [rax - 0x1f8]
mov qword [rsp + 0x60], rax
xor ebp, ebp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
lea rax, [0x1801d0d60]
mov rsi, r9
lea r9d, [rbp + 0x14]
mov qword [rsp + 0x68], 4
mov qword [rsp + 0x70], rbp
mov byte [rsp + 0x78], bpl
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x79], 1
call fcn.1801915c0
mov edi, eax
test eax, eax
js 0x180146a2e
mov qword [rsp + 0x258], r12
mov qword [rsp + 0x250], r13
mov qword [rsp + 0x248], r14
mov qword [rsp + 0x240], r15
mov dword [rsp + 0x44], ebp
cmp qword [rsp + 0x70], rbp
jbe 0x1801469b9
mov r13, rbp
cmp r13, qword [rsp + 0x70]
jae 0x180146719
shl r13, 6
add r13, qword [rsp + 0x60]
jmp 0x18014671c
mov r13, rbp
mov ecx, dword [r13 + 0x10]
call fcn.1801959b0
test eax, eax
je 0x180146999
mov rsi, qword [r13 + 0x20]
mov r12, qword [r13 + 0x28]
cmp dword [rsi + 0xdc], 0xffffffff
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
je 0x180146769
lea rdx, [rsp + 0x48]
mov r8, rsi
mov rcx, rbx
call fcn.180146590
mov edi, eax
test eax, eax
js 0x180146a0e
mov rsi, qword [rsp + 0x48]
jmp 0x18014676e
mov edi, 1
cmp edi, 1
setne byte [rsp + 0x40]
cmp dword [r12 + 0xdc], 0xffffffff
je 0x1801467a2
lea rdx, [rsp + 0x50]
mov r8, r12
mov rcx, rbx
call fcn.180146590
mov edi, eax
test eax, eax
js 0x180146a0e
mov r12, qword [rsp + 0x50]
jmp 0x1801467a7
mov edi, 1
mov eax, dword [r13 + 0x10]
cmp edi, 1
setne byte [rsp + 0x41]
and eax, 0xfff00000
cmp eax, 0x21e00000
ja 0x1801467dd
cmp eax, 0x21e00000
je 0x180146807
cmp eax, 0x21800000
je 0x180146807
cmp eax, 0x21900000
je 0x180146807
cmp eax, 0x21a00000
je 0x180146807
jmp 0x1801467eb
cmp eax, 0x22200000
je 0x180146807
cmp eax, 0x22600000
je 0x180146807
cmp eax, 0x21c00000
je 0x180146807
cmp eax, 0x22000000
je 0x180146807
cmp eax, 0x22400000
je 0x180146807
cmp eax, 0x22800000
jne 0x18014682d
mov eax, dword [rsi + 0x98]
shr rax, 0x17
test al, 1
jne 0x180146999
mov eax, dword [r12 + 0x98]
shr rax, 0x17
test al, 1
jne 0x180146999
xor r15b, r15b
lea r14, [rsp + 0x40]
cmp ebp, 1
jne 0x180146843
mov rax, rsi
mov rsi, r12
mov r12, rax
cmp byte [r14], 0
je 0x180146989
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x180]
xor r8d, r8d
mov rcx, rsi
call fcn.180199a80
mov edi, eax
test eax, eax
js 0x180146a0e
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x200]
xor r8d, r8d
mov rcx, r12
call fcn.180199a80
mov edi, eax
test eax, eax
js 0x180146a0e
mov rcx, rsi
call fcn.18010a000
mov rcx, rsi
movzx ebx, al
call fcn.18010a000
mov ecx, dword [r13 + 0x10]
movzx r9d, al
lea rax, [rsp + 0x1c0]
test ebp, ebp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x200]
lea r8, [rsp + 0x180]
sete dl
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], rax
call fcn.180195cc0
mov edi, eax
test eax, eax
js 0x180146a0e
cmp eax, 0x270f0001
je 0x180146a0e
test eax, eax
jne 0x180146981
mov eax, dword [r13 + 0x10]
mov r8, rsi
and eax, 0xfff00000
cmp eax, 0x22200000
je 0x180146911
cmp eax, 0x22300000
jne 0x180146947
test r15b, r15b
jne 0x180146947
mov rax, qword [rsi + 0xa8]
movzx ecx, byte [rax + 0x10]
shr cl, 4
test cl, 1
je 0x180146941
cmp qword [rsi + 0xc0], 0xffffffffffffffff
jne 0x180146941
cmp qword [rsi + 0xb8], 0xffffffffffffffff
jne 0x180146941
test ebp, ebp
je 0x180146947
mov r8, r12
mov r15b, 1
mov rbx, qword [rsp + 0x280]
lea rax, [rsp + 0x58]
mov rdx, rsi
mov r9, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1c0]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.180105a60
mov edi, eax
test eax, eax
js 0x180146a0e
jmp 0x180146989
mov rbx, qword [rsp + 0x280]
inc ebp
inc r14
cmp ebp, 2
jb 0x180146835
xor ebp, ebp
mov eax, dword [rsp + 0x44]
inc eax
mov r13d, eax
mov dword [rsp + 0x44], eax
cmp r13, qword [rsp + 0x70]
jb 0x180146707
mov rsi, qword [rsp + 0x298]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x60]
mov r8d, 2
call fcn.1801d1a60
mov edi, eax
test eax, eax
js 0x180146a0e
test rsi, rsi
je 0x180146a0e
mov rcx, qword [rsp + 0x280]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
add rcx, 0x268
mov ebx, eax
mov byte [rsi + 8], 0
mov qword [rsi], rcx
mov rax, qword [rcx + 0x10]
mov qword [rsi + 0x10], rax
call fcn.180146a90
mov edi, eax
test eax, eax
cmovns edi, ebx
mov r14, qword [rsp + 0x248]
mov r13, qword [rsp + 0x250]
mov r12, qword [rsp + 0x258]
mov r15, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x260]
mov rbp, qword [rsp + 0x288]
xor eax, eax
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0x78], al
je 0x180146a73
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180146a73
mov ecx, dword [0x18025e63c]
test ecx, ecx
js 0x180146a65
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
add rsp, 0x268
pop rdi
pop rbx
ret