Function at 0x100115e80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov ebx, edx
mov r12, rcx
xor edi, edi
test rcx, rcx
lea r14, [rcx - 0x18]
jne 0x100115eaf
mov r14d, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x20], r14
mov rcx, r14
call fcn.1000e4770
mov qword [rbp - 0x30], rax
mov rcx, r14
call fcn.1000e4820
mov qword [rbp - 0x28], rax
mov rsi, rdi
or r15, 0xffffffffffffffff
cmp ebx, 0x40
jne 0x100115eef
mov r13, r15
jmp 0x100115efa
mov ecx, ebx
mov r13d, 1
shl r13, cl
mov rcx, qword [r12]
test rcx, rcx
je 0x100115f16
test byte [rcx + 0xc], 1
je 0x100115f16
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0x10011625a
mov edx, 1
lea rcx, [rbp - 0x40]
call fcn.100057f20
nop
lea rcx, [r12 - 0x18]
call fcn.100117d70
nop
xor ebx, ebx
test rsi, rsi
jne 0x100115f40
mov rbx, qword [rbp - 0x30]
jmp 0x10011604f
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x10011604f
cmp rcx, qword [rbp - 0x28]
je 0x100116016
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [r14 + 0x10], edx
mov ecx, ebx
sete cl
test ecx, ecx
jne 0x100115f78
lea rcx, [r14 + 0x10]
call fcn.1000de1b0
mov rbx, qword [rsi + 0x48]
cmp rbx, r14
je 0x100115f8c
test rbx, rbx
je 0x100115f8c
add rbx, 0xffffffffffffffc0
jmp 0x100115f8e
xor ebx, ebx
test rbx, rbx
je 0x100115fd8
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x100115fbd
nop word [rax + rax]
lea edx, [rcx + 1]
mov eax, ecx
lock cmpxchg dword [rbx + 0x50], edx
cmp ecx, eax
je 0x100115fb9
pause
mov ecx, dword [rbx + 0x50]
test ecx, ecx
jne 0x100115fa0
jmp 0x100115fbd
test edx, edx
jne 0x100115fd8
mov rbx, qword [rbx + 0x48]
cmp rbx, r14
je 0x100115fd1
test rbx, rbx
je 0x100115fd1
add rbx, 0xffffffffffffffc0
jmp 0x100115fd3
xor ebx, ebx
test rbx, rbx
jne 0x100115f93
mov dword [r14 + 0x10], 0
mov qword [rbp - 0x30], rbx
mov eax, r15d
lock xadd dword [rsi + 0x50], eax
dec eax
jne 0x10011604f
cmp qword [rsi + 0x48], 0
je 0x10011600e
mov rdx, rsi
mov rcx, qword [rsi + 0x58]
call fcn.1000e4670
mov r11, qword [rsi]
mov rcx, rsi
call qword [r11]
jmp 0x10011604f
mov rcx, rsi
mov rax, qword [rsi]
jmp 0x10011604d
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x30], rbx
mov eax, r15d
lock xadd dword [rcx + 0x50], eax
dec eax
jne 0x10011604f
cmp qword [rcx + 0x48], rbx
je 0x10011604a
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [rcx + 0x58]
call fcn.1000e4670
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11]
jmp 0x10011604f
mov rax, qword [rcx]
call qword [rax]
mov rsi, rbx
test rbx, rbx
je 0x100116233
test qword [rbx + 0x20], r13
je 0x100115f30
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x58], rax
mov ecx, dword [rbp + 0x58]
test ecx, ecx
js 0x100116152
mov ecx, dword [rbp + 0x58]
test ecx, ecx
je 0x100116152
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x4c], 0
mov eax, dword [rbp + 0x48]
xor edi, edi
cmp eax, 1
setne dil
mov r10, qword [r12]
test r10, r10
je 0x1001160f9
test edi, edi
je 0x1001160cb
test byte [r10 + 0xc], 8
je 0x1001160f9
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1001160f9
lea rdx, [rbx + 8]
mov rcx, qword [r12]
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, edi
call qword [rax + 0x10]
jmp 0x1001160f9
test byte [r10 + 0xc], 4
je 0x1001160fd
lea rdx, [rbx + 8]
mov r10, qword [r10]
mov eax, dword [rbp + 0x4c]
xor r9d, r9d
test eax, eax
sete r9b
xor r8d, r8d
mov rcx, qword [r12]
call qword [r10 + 0x10]
cmp eax, 0x80000000
jne 0x1001160fd
jmp 0x100116152
test edi, edi
jne 0x100116152
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x60], rax
or dword [rbp + 0x60], 0x80000000
mov rax, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x60]
lock cmpxchg qword [rbx + 0x18], rcx
jne 0x100116152
and dword [rbx + 0x28], 0xfffffffe
mov eax, r15d
lock xadd dword [rbx + 0x50], eax
dec eax
jne 0x100116152
cmp qword [rbx + 0x48], 0
je 0x10011614a
mov rdx, rbx
mov rcx, qword [rbx + 0x58]
call fcn.1000e4670
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11]
jmp 0x100116152
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10011617d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10011618e
mov r8, qword [rbx + 0xd8]
test r8, r8
jne 0x1001161c5
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 0x1001161be
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov r8, qword [rbx + 0xd8]
rdtsc
shl rdx, 0x20
or rax, rdx
mov rdx, qword [r8 + 0x2f8]
cmp rax, rdx
ja 0x100116220
mov rcx, rdx
sub rcx, rax
mov rax, qword [r8 + 0x218]
cmp rcx, qword [rax + 0xab0]
jbe 0x1001161ff
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jne 0x100116220
mov rcx, qword [r8 + 0x210]
mov eax, dword [rcx + 0xb4]
test al, 4
je 0x100115f30
mov rax, qword [rcx + 0x98]
jmp 0x100115f30
lea rdx, [0x10023f740]
xor ecx, ecx
call fcn.100058870
jmp 0x100115f30
mov rcx, qword [r12]
test rcx, rcx
je 0x100116249
test byte [rcx + 0xc], 2
je 0x100116249
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp - 0x38]
mov eax, dword [rbp - 0x40]
not eax
and dword [rcx + 0x220], eax
xor edi, edi
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x100116299
mov eax, r15d
lock xadd dword [rcx + 0x50], eax
dec eax
jne 0x100116295
cmp qword [rcx + 0x48], 0
je 0x100116290
mov rbx, rcx
mov rdx, rcx
mov rcx, qword [rcx + 0x58]
call fcn.1000e4670
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11]
jmp 0x100116295
mov rax, qword [rcx]
call qword [rax]
mov qword [rbp - 0x30], rdi
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1001162d7
lock xadd dword [rcx + 0x50], r15d
dec r15d
jne 0x1001162d3
cmp qword [rcx + 0x48], 0
je 0x1001162ce
mov rbx, rcx
mov rdx, rcx
mov rcx, qword [rcx + 0x58]
call fcn.1000e4670
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11]
jmp 0x1001162d3
mov rax, qword [rcx]
call qword [rax]
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rdi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret