Function at 0x100131f80
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, r9d
mov r14, rdx
mov r10, rcx
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
xor edi, edi
mov qword [rcx], rdi
mov qword [rdx], rdi
mov eax, edi
cmp dword [r14 + 0x40], eax
sete al
test eax, eax
je 0x10013224b
mov qword [rsp + 0x30], rdi
mov rcx, qword [r14 + 0x30]
call fcn.100130200
mov esi, eax
test eax, eax
jne 0x10013223e
test ebx, ebx
je 0x10013200a
cmp ebx, 0xea
je 0x10013200a
mov esi, ebx
jmp 0x10013223e
mov rdx, qword [r14 + 0x68]
mov rdx, qword [rdx + 8]
mov rcx, qword [0x10029ae10]
call fcn.100137170
test rax, rax
je 0x10013202e
mov dword [rax + 0x50], 1
mov qword [r14 + 0x50], rax
mov dword [r14 + 0x40], 1
mov rbx, qword [r14 + 0x38]
call fcn.100058d10
mov r12, rax
call fcn.10006b640
mov dword [rsp + 0x50], 0x400
lea rcx, [0x1001213a0]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rbx
lea rcx, [rax + 0x230]
mov qword [rsp + 0x68], rcx
or rbp, 0xffffffffffffffff
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rdi
call fcn.100068a00
mov r15, rax
mov rcx, qword gs:[0x30]
lea rbx, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001320a7
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1001320d8
cmp qword [rbx + 0xe8], rbx
jne 0x1001320d8
call fcn.1001672c0
test eax, eax
je 0x1001320d8
call qword [0x1002aaa48]
test eax, eax
je 0x1001320d8
lea rcx, [rsp + 0x80]
call qword [0x1002aab88]
jmp 0x1001320f4
movups xmm0, xmmword [0x10003a930]
movaps xmmword [rsp + 0x80], xmm0
mov eax, dword [0x10003a940]
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1000d0c40
test eax, eax
je 0x100132120
mov dword [r14 + 0x40], edi
mov esi, ntohs
jmp 0x10013223e
mov rbx, qword [rsp + 0x30]
lock xadd dword [rbx + 0x20], ebp
dec ebp
jne 0x100132247
cmp qword [rbx + 0x18], rdi
je 0x100132148
lea rcx, [rbx + 0x10]
call fcn.1000585a0
mov eax, esi
jmp 0x100132260
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x10013219d
mov r14, qword [rbx + 0xa0]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [r14 + 0xf80], edx
mov ecx, edi
sete cl
test ecx, ecx
jne 0x100132181
lea rcx, [r14 + 0xf80]
call fcn.100057ac0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov dword [r14 + 0xf80], edi
call fcn.100058010
test rax, rax
je 0x1001321ca
cmp qword [rax + 0x1e8], rbx
jne 0x1001321ca
test rbx, rbx
je 0x1001321b9
lea rdi, [rbx - 8]
xor edx, edx
mov rcx, rdi
call fcn.100058e50
mov eax, esi
jmp 0x100132260
test rbx, rbx
je 0x1001321d3
lea rdi, [rbx - 8]
mov qword [rsp + 0x38], rdi
test rdi, rdi
je 0x100132247
lea rax, [0x100002a88]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call fcn.100058db0
mov rax, rdi
mov edx, 0x200
and rax, 0xffffffffffffe000
je 0x10013220a
cmp word [rax + 4], dx
jne 0x10013220a
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdi
je 0x100132227
cmp word [rcx + 4], dx
jne 0x100132227
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x100132247
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x28]
mov eax, esi
jmp 0x100132260
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, esi
jmp 0x100132260
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov rdx, r14
mov rcx, r10
call fcn.1001302d0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.10005f420
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret