Function at 0x10009b550
Capabilities:
Get thread local storage value

Disassembly:
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rdi, r8
movsxd rbp, ecx
mov ecx, edx
call fcn.10006bf10
mov r15, rax
mov esi, dword [rsp + 0x98]
mov r14d, esi
and r14d, 0x12f0002
xor r12d, r12d
mov ebx, r12d
cmp ebp, 0xb
ja case.0x10009b5b8.8
lea rax, [0x100000000]
mov edx, dword [rax + rbp*4 + 0x9b934]
add rdx, rax
jmp rdx
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, reloc.WS2_32.dll_WSASetLastError
lea r9d, [rdx - 8]
mov rcx, rdi
call fcn.100106000
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x10009b876
mov dword [rax + 8], 1
lea rax, [0x10001d230]
mov qword [rbx], rax
mov qword [rbx + 0x10], 0x2000
mov dword [rbx + 0x18], r12d
mov qword [rbx + 0x20], r12
mov dword [rbx + 0x28], r12d
mov qword [rbx + 0x30], r12
lea rax, [0x10001d870]
mov qword [rbx], rax
lea rax, [rbx + 0x50]
mov qword [rax + 8], rax
mov qword [rax], rax
jmp 0x10009b8fc
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x440
lea r9d, [rdx - 8]
mov rcx, rdi
call fcn.100106000
test rax, rax
je 0x10009b658
mov rcx, rax
call fcn.1000a0fe0
mov rbx, rax
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rbp, rax
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10009b683
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x10009b694
mov r8, qword [rdi + 0xd8]
test r8, r8
jne 0x10009b6cb
call fcn.100063d30
call fcn.100068a00
mov rbp, rax
mov rdi, qword gs:[0x30]
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10009b6c4
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov r8, qword [rdi + 0xd8]
mov eax, esi
shr eax, 0x19
and eax, 1
mov dword [rsp + 0x28], eax
mov r8, qword [r8 + 0x210]
jmp 0x10009b8e6
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x130
mov r9d, edx
mov rcx, rdi
call fcn.100106000
test rax, rax
je case.0x10009b5b8.8
mov rcx, rax
call fcn.1000a3320
mov rbx, rax
jmp 0x10009b8fc
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0xc0
lea r9d, [rdx - 8]
mov rcx, rdi
call fcn.100106000
test rax, rax
je case.0x10009b5b8.8
mov rcx, rax
call fcn.1000a35d0
mov rbx, rax
jmp 0x10009b8fc
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x500
mov r9d, edx
mov rcx, rdi
call fcn.100106000
test rax, rax
je 0x10009b8de
mov rcx, rax
call fcn.1000a5640
jmp 0x10009b8db
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x490
lea r9d, [rdx - 8]
mov rcx, rdi
call fcn.100106000
test rax, rax
je 0x10009b658
mov rcx, rax
call fcn.1000a5940
jmp 0x10009b655
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x180
mov r9d, edx
mov rcx, rdi
call fcn.100106000
test rax, rax
je case.0x10009b5b8.8
mov rcx, rax
call fcn.1000a5a90
mov rbx, rax
jmp 0x10009b8fc
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x550
mov r9d, edx
mov rcx, rdi
call fcn.100106000
test rax, rax
je 0x10009b8de
mov rcx, rax
call fcn.1000a5bf0
jmp 0x10009b8db
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x1f0
mov r9d, edx
mov rcx, rdi
call fcn.100106000
test rax, rax
je 0x10009b846
mov rcx, rax
call fcn.1000a82b0
mov rbx, rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov rdx, rdi
mov rcx, rbx
call fcn.1000a7790
test eax, eax
jne 0x10009b8fc
mov rbx, r12
jmp case.0x10009b5b8.8
mov r8d, dword [0x10002b354]
mov dword [rsp + 0x20], r12d
mov edx, 0x5c0
mov r9d, edx
mov rcx, rdi
call fcn.100106000
test rax, rax
je 0x10009b8aa
mov rcx, rax
call fcn.1000aa970
mov rbx, rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov rdx, rdi
mov rcx, rbx
call fcn.1000a9e50
test eax, eax
jne 0x10009b8de
mov rbx, r12
jmp case.0x10009b5b8.8
mov rbx, rax
mov dword [rsp + 0x28], r12d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov r9d, 1
mov rdx, r15
mov rcx, rbx
call fcn.100112f40
test rbx, rbx
je case.0x10009b5b8.8
shr esi, 0x17
and esi, 1
mov edx, esi
mov rcx, rbx
call fcn.10010ea20
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret