Function at 0x1015dfd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x1021abb5
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10282800]
xor eax, ebp
mov dword [ebp + 0x50], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0x5c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x28], 0
push 0x48
mov dword [ebp - 4], 1
call fcn.101e3738
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x1015e18a
mov eax, dword [ebp + 0x60]
mov ecx, 0xf4240
mov esi, dword [esi + 0x7c]
imul ecx
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.100f5290
mov ecx, dword [esi]
lea eax, [ebp - 0x20]
add esp, 8
push esi
push 0x100f06c0
push eax
call fcn.10115bf0
mov dword [edi], eax
lea eax, [edi + 0x28]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [eax + 4], esi
mov dword [eax + 0x14], 0x10226430
mov dword [eax + 0xc], 0x102265b8
mov dword [eax + 0x10], eax
mov dword [eax + 0x18], 0x10226078
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.10126240
add esp, 4
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], esi
test esi, esi
jl 0x1015e127
jg 0x1015e101
test ecx, ecx
jb 0x1015e127
or edx, 0xffffffff
mov eax, closesocket
sub edx, ecx
sbb eax, esi
cmp eax, dword [ebp - 0x10]
jg 0x1015e14b
jl 0x1015e11b
mov esi, dword [ebp - 0x24]
cmp edx, esi
jae 0x1015e14e
or esi, 0xffffffff
mov dword [ebp - 0x10], closesocket
jmp 0x1015e156
xor edx, edx
mov eax, closesocket
sub edx, ecx
sbb eax, esi
cmp dword [ebp - 0x10], eax
jg 0x1015e14b
jl 0x1015e140
mov esi, dword [ebp - 0x24]
cmp esi, edx
jae 0x1015e14e
xor esi, esi
mov dword [ebp - 0x10], closesocket
jmp 0x1015e156
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
add esi, ecx
adc dword [ebp - 0x10], eax
cmp byte [edi + 0x10], 0
je 0x1015e175
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push eax
lea eax, [ecx + 0x14]
mov ecx, dword [ecx + 0x2c]
push eax
call fcn.100ee590
mov byte [edi + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x14]
mov dword [edi + 0xc], ecx
mov dword [ebp - 0x1c], 0x10282038
jmp 0x1015e18c
xor edi, edi
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x18], edi
push 0x10
mov byte [ebp - 4], 4
call fcn.101e3738
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1015e1d8
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_asio::basic_waitable_timer_struct_std::chrono::steady_clock__struct_asio::wait_traits_struct_std::chrono::steady_clock___class_asio::any_io_executor__.0
mov dword [eax + 0xc], edi
jmp 0x1015e1da
xor eax, eax
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x80]
mov ecx, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], 1
call fcn.101195d0
mov esi, eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x8c], 0x1011f980
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp + 0x88]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x1015e230
mov eax, dword [ecx]
lea edx, [ebp - 0x7c]
push edx
call dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
test eax, eax
je 0x1015e249
lock inc dword [eax + 4]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0
mov eax, dword [esi]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x48], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp], eax
lea eax, [ebp - 0x8c]
mov dword [ebp + 4], ecx
lea ecx, [ebp + 8]
push eax
mov dword [ebp - 0x28], 3
call fcn.1014b7c0
lea ecx, [ebp - 0x84]
call fcn.101004c0
mov eax, dword [edi]
push dword [0x1028dd78]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0x14], eax
add edi, 8
lea eax, [ebp]
mov byte [ebp - 4], 9
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1015e2cf
mov eax, dword [eax + 4]
jmp 0x1015e2d1
xor eax, eax
push 8
push 0xa0
push eax
push dword [ebp - 0x18]
call fcn.100ed620
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x30], esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10151720
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x10282038
mov dword [esi + 0x28], 0
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esi + 0x30], eax
lea eax, [ebp + 8]
mov dword [esi + 0x34], ecx
lea ecx, [esi + 0x38]
push eax
mov byte [ebp - 4], 0xa
call fcn.1014b7c0
push dword [ebp - 0x14]
lea ecx, [esi + 0x80]
push 0
push 0
call fcn.100faf20
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 0xc]
push esi
push eax
push edi
lea eax, [ecx + 0x14]
mov byte [edi + 8], 1
mov ecx, dword [ecx + 0x2c]
push eax
mov dword [ebp - 0x2c], esi
call fcn.100f8650
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.1012eaf0
lea ecx, [ebp + 0x10]
call fcn.101004c0
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x1015e3c9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1015e3c9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1015e3c9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x88]
test ecx, ecx
je 0x1015e3e4
mov esi, dword [ecx]
lea eax, [ebp + 0x64]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x50]
xor ecx, ebp
call fcn.101e3b75
lea esp, [ebp + 0x54]
pop ebp
ret 0x30