Function at 0x10015b0c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x208], rax
mov r12, r9
mov qword [rsp + 0x38], r8
mov r15, rdx
mov r13, rcx
xor edi, edi
mov qword [r9], rdi
call fcn.100163fa0
test al, al
je 0x10015b128
call fcn.100163fc0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
call fcn.1001646e0
call fcn.100163fa0
test al, al
je 0x10015b14d
call fcn.100163fc0
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r9d, [rdx + 1]
lea r8d, [rdx + 8]
call fcn.1001646e0
mov eax, 0x190
cmp word [r15 + 8], ax
jb 0x10015b200
call fcn.100163fa0
test al, al
je 0x10015b182
call fcn.100163fc0
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x10]
call fcn.1001646e0
call fcn.100163fa0
test al, al
je 0x10015b1a7
call fcn.100163fc0
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x18]
call fcn.1001646e0
movzx eax, word [r15 + 8]
mov ecx, 0x191
cmp ax, cx
jne 0x10015b1cc
call fcn.100163fa0
test al, al
je 0x10015b200
call fcn.100163fc0
mov r8d, 0x68
jmp 0x10015b1ea
mov ecx, 0x1f7
cmp ax, cx
jne 0x10015b200
call fcn.100163fa0
test al, al
je 0x10015b200
call fcn.100163fc0
mov r8d, reloc.WS2_32.dll_WSASetLastError
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor edx, edx
mov rcx, rax
call fcn.1001646e0
nop
xor edx, edx
lea rax, [fcn.100062040]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0xa8]
call fcn.10005b410
nop
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x1e0], rax
mov esi, 0x80
mov qword [rsp + 0x1e8], rsi
mov qword [rsp + 0x1f0], rdi
mov rdx, qword [rsp + 0x1e0]
test rdx, rdx
je 0x10015b2c9
lea rax, [rsp + 0xe0]
cmp rdx, rax
je 0x10015b2c9
mov rax, rdx
and rax, 0xffffffffffffe000
mov qword [rsp + 0x58], rax
mov r14d, 0x200
je 0x10015b287
cmp word [rax + 4], r14w
jne 0x10015b287
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x58], rax
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
mov qword [rsp + 0x60], rcx
je 0x10015b2af
cmp word [rcx + 4], r14w
jne 0x10015b2af
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015b2bf
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x1e0], rdi
jmp 0x10015b2cf
mov r14d, 0x200
mov rdx, rdi
mov qword [rsp + 0x1f0], rdx
mov qword [rsp + 0x1e8], rsi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x1e0], rax
lea rbx, [0x100002648]
mov qword [rsp + 0x50], rbx
nop
cmp word [rbx], 0
je 0x10015b355
cmp rsi, rdx
jne 0x10015b320
lea rcx, [rsp + 0xe0]
call fcn.1000577e0
mov rdx, qword [rsp + 0x1f0]
movzx ecx, word [rbx]
mov rax, qword [rsp + 0x1e0]
mov word [rax + rdx*2], cx
mov rdx, qword [rsp + 0x1f0]
inc rdx
mov qword [rsp + 0x1f0], rdx
add rbx, 2
mov qword [rsp + 0x50], rbx
mov rsi, qword [rsp + 0x1e8]
jmp 0x10015b300
cmp rsi, rdx
jne 0x10015b36f
lea rcx, [rsp + 0xe0]
call fcn.1000577e0
mov rdx, qword [rsp + 0x1f0]
mov rax, qword [rsp + 0x1e0]
mov word [rax + rdx*2], di
inc qword [rsp + 0x1f0]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xe0]
mov rcx, qword [0x10029b210]
call fcn.100154150
mov ebx, eax
mov rdx, qword [rsp + 0x1e0]
test rdx, rdx
je 0x10015b418
lea rax, [rsp + 0xe0]
cmp rdx, rax
je 0x10015b418
mov rax, rdx
and rax, 0xffffffffffffe000
mov qword [rsp + 0x40], rax
je 0x10015b3d8
cmp word [rax + 4], r14w
jne 0x10015b3d8
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
mov qword [rsp + 0x48], rcx
je 0x10015b400
cmp word [rcx + 4], r14w
jne 0x10015b400
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015b410
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x1e0], rdi
test ebx, ebx
je 0x10015b4c4
cmp dword [rsp + 0x30], 4
jl 0x10015b4c4
mov qword [rsp + 0x68], rdi
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r15
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov rcx, qword [0x100246638]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 6
mov r9d, 0x5c
lea r8, [0x100043540]
mov edx, 0x11b0
call qword [rax + 0x48]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x10015b499
mov rcx, rax
call fcn.10015a750
mov rdi, rax
test rdi, rdi
jne 0x10015b4b3
lea rcx, [rsp + 0xa8]
call fcn.10005b4f0
lea eax, [rdi + 0xe]
jmp 0x10015b555
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.10015b580
mov qword [r12], rdi
lea rcx, [rsp + 0xa8]
call fcn.10005b4f0
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10015b4fd
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10015b50e
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x10015b545
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10015b53e
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x10015b553
call fcn.1000618f0
xor eax, eax
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret