Function at 0x1400a2a40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rdi, r9
mov r14, r8
mov r12, rdx
xor r13d, r13d
lea rbx, [rcx - 0x150]
test rcx, rcx
cmove rbx, r13
mov r15, qword [rbp + 0xd0]
mov rsi, qword [r15]
cmp rsi, qword [rcx + 0x10]
je 0x1400a2ad5
mov rsi, qword [r8 + 8]
mov ebx, 0xffffffff
test rsi, rsi
je 0x1400a2ac8
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400a2ac8
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400a2ac8
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, rdi
call fcn.1400e0200
jmp 0x1400a30ac
mov rax, qword [rbx + 0x150]
mov qword [rbp + 0xb0], rax
lea rdx, [rbp + 0xb0]
mov rcx, rsi
call fcn.14011b650
mov qword [rbp - 0x30], rbx
movups xmm0, xmmword [r12]
movups xmmword [rbp - 0x28], xmm0
mov rax, qword [r14]
mov qword [rbp - 0x18], rax
mov rax, qword [r14 + 8]
mov qword [rbp - 0x10], rax
mov qword [r14], r13
mov qword [r14 + 8], r13
mov rax, qword [rdi]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 8]
mov qword [rbp], rax
mov rax, qword [rdi + 0x10]
mov qword [rbp + 8], rax
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x10], rax
mov rax, qword [rdi + 0x20]
mov qword [rdi + 0x20], r13
mov qword [rbp + 0x18], rax
mov byte [rbp + 0x20], 0
movzx eax, byte [rdi + 0x30]
mov byte [rbp + 0x28], al
movzx eax, byte [rdi + 0x38]
mov byte [rbp + 0x30], al
mov byte [rdi + 0x38], 0
movzx eax, byte [rdi + 0x40]
mov byte [rbp + 0x38], al
mov rax, qword [rdi + 0x48]
mov qword [rbp + 0x40], rax
mov rax, qword [rdi + 0x50]
mov qword [rbp + 0x48], rax
mov rax, qword [rdi + 0x58]
mov qword [rbp + 0x50], rax
mov qword [rdi + 0x50], r13
mov qword [rdi + 0x58], r13
movzx eax, byte [rdi + 0x60]
mov byte [rbp + 0x58], al
mov byte [rdi + 0x60], 0
mov byte [rdi + 0x40], 0
mov rax, qword [r15]
mov qword [rbp + 0x60], rax
mov rax, qword [r15 + 8]
mov qword [rbp + 0x68], rax
mov qword [r15], r13
mov qword [r15 + 8], r13
mov r13, qword [rsi]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a2bcd
mov rdx, qword [rax + 8]
jmp 0x1400a2bcf
xor edx, edx
mov r9d, 8
mov r8d, pe_nt_image_headers64
movzx ecx, byte [rbp + 0xd0]
call fcn.1400aa650
mov rbx, rax
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x140114fe0]
mov qword [rbx + 0x28], rax
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
mov dword [rbx + 0x30], ecx
mov dword [rbx + 0x38], ecx
lea rax, [0x1403275b8]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rcx
lea rcx, [rbx + 0x50]
lea rdx, [rbp - 0x30]
call fcn.1400d20d0
lea rcx, [rbx + 0xf0]
lea r9, [rsi + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.1400d4c90
mov qword [rsp + 0x40], rbx
mov byte [rsi + 0x10], 1
lea r9, [rsi + 0x18]
lea rdx, [r13 + 0x28]
mov qword [rsp + 0x20], rbx
lea r8, [rsi + 8]
mov rcx, qword [r13 + 0x58]
call fcn.1400cfd10
nop
mov ebx, 0xffffffff
mov rsi, qword [rbp + 0x68]
test rsi, rsi
je 0x1400a2ca1
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400a2ca1
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400a2ca1
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rbp - 8]
call fcn.1400e0200
mov rsi, qword [rbp - 0x10]
test rsi, rsi
je 0x1400a2cdd
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400a2cdd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400a2cdd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rsi, qword [r14 + 8]
test rsi, rsi
je 0x1400a2d10
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400a2d10
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400a2d10
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
xor esi, esi
cmp byte [rdi + 0x40], sil
je 0x1400a2d59
mov byte [rdi + 0x40], sil
mov rax, qword [rdi + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x58]
mov qword [rsp + 0x40], rax
mov qword [rdi + 0x50], rsi
mov qword [rdi + 0x58], rsi
movzx eax, byte [rdi + 0x60]
mov byte [rsp + 0x48], al
mov byte [rdi + 0x60], sil
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400f39b0
nop
movzx edx, byte [rdi + 0x60]
test dl, dl
je 0x1400a2d9a
mov rax, qword [rdi + 0x48]
lea rcx, [rax + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x58]
mov qword [rsp + 0x40], rax
mov qword [rdi + 0x50], rsi
mov qword [rdi + 0x58], rsi
mov byte [rsp + 0x48], dl
mov byte [rdi + 0x60], 0
lea rdx, [rsp + 0x30]
call fcn.1400c9ba0
mov rsi, qword [rdi + 0x58]
test rsi, rsi
je 0x1400a2dcd
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400a2dcd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400a2dcd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp byte [rdi + 0x38], 0
je 0x1400a2e7c
mov byte [rdi + 0x38], 0
mov rax, qword [rdi + 0x18]
movzx r12d, byte [rax + 0x950]
nop
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x1400a3134
movzx ecx, byte [rdi + 0x28]
test cl, cl
je 0x1400a2e1b
cmp byte [rsi + 0xb8], 0
jne 0x1400a3134
test cl, cl
je 0x1400a2e1b
cmp byte [rsi + 0xb8], 0
jne 0x1400a3134
lea r14, [rsi + 0x20]
mov qword [rsp + 0x50], r14
mov rcx, r14
call fcn.1401abddc
test eax, eax
jne 0x1400a3102
mov eax, dword [r14 + 0x4c]
cmp eax, 0x7fffffff
je 0x1400a310d
mov byte [rsp + 0x58], 1
cmp byte [rsi + 0xc1], 0
jne 0x1400a311e
mov byte [rsi + 0xc], r12b
mov rax, qword [rsi]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rax + 0x28]
cmp byte [rsp + 0x58], 0
je 0x1400a2e7c
mov rcx, qword [rsp + 0x50]
call fcn.1401abde4
nop
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x1400a3040
cmp byte [rdi + 0x28], 0
je 0x1400a2e9c
cmp byte [rax + 0xb8], 0
jne 0x1400a3040
cmp dword [rax + 0xbc], 0
jne 0x1400a3040
mov dword [rsp + 0x60], 1
lea rax, [0x140327ec8]
mov qword [rsp + 0x68], rax
lea r12, vtable.std::exception.0
mov qword [rbp - 0x80], r12
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
lea rax, [0x1401f6f75]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 1
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x30]
call fcn.1401b029c
lea rsi, vtable.std::future_error.0
mov qword [rbp - 0x80], rsi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.1401b029c
mov qword [rbp - 0x58], rsi
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x30]
call fcn.1401ad37c
lea r8, [0x1403189a0]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x30]
call fcn.1401ad350
mov qword [rbp - 0x58], r12
lea rcx, [rbp - 0x50]
call fcn.1401b032c
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x1400a30f7
cmp byte [rdi + 0x28], 0
je 0x1400a2f7b
cmp byte [rsi + 0xb8], 0
jne 0x1400a30f7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1401ad328
lea r14, [rsi + 0x20]
mov qword [rsp + 0x70], r14
mov rcx, r14
call fcn.1401abddc
test eax, eax
jne 0x1400a3129
mov eax, dword [r14 + 0x4c]
cmp eax, 0x7fffffff
je 0x1400a313f
mov byte [rsp + 0x78], 1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1401ad328
cmp byte [rsi + 0xc1], 0
jne 0x1400a3150
lea rcx, [rsi + 0x10]
lea rdx, [rsp + 0x50]
call fcn.1401ad320
mov rax, qword [rsi]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [rax + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1401ad408
cmp byte [rsp + 0x78], 0
je 0x1400a301f
mov rcx, qword [rsp + 0x70]
call fcn.1401abde4
lea rcx, [rsp + 0x60]
call fcn.1401ad408
lea rcx, [rsp + 0x30]
call fcn.1401ad408
mov qword [rbp - 0x80], r12
lea rcx, [rbp - 0x78]
call fcn.1401b032c
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400a3079
mov eax, ebx
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400a3079
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400a306e
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400a3079
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je 0x1400a30ac
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a30ac
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400a30ac
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdi, qword [r15 + 8]
test rdi, rdi
je 0x1400a30dc
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a30dc
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400a30dc
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 4
call fcn.140109f20
nop
mov ecx, 5
call fcn.1401ac1a8
int3
dec eax
mov dword [r14 + 0x4c], eax
mov ecx, 6
call fcn.1401ac1a8
int3
mov ecx, 3
call fcn.140109f20
nop
mov ecx, 5
call fcn.1401ac1a8
nop
mov ecx, 4
call fcn.140109f20
nop
dec eax
mov dword [r14 + 0x4c], eax
mov ecx, 6
call fcn.1401ac1a8
int3
mov ecx, 3
call fcn.140109f20
int3