Function at 0x48f2d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
push 1
call fcn.0049df20
pop ecx
mov ebx, eax
push 0x2000
push 3
call fcn.0049cf60
add esp, 8
mov edi, eax
mov eax, ebx
test eax, eax
je 0x48f31f
mov eax, dword [ebx]
cmp eax, 0xf0316913
jne 0x48f31f
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
movzx eax, word [eax + 0xe]
cmp eax, 3
jle 0x48f363
push 1
call fcn.0049d010
pop ecx
mov dword [ebp - 0xc], eax
push 2
call fcn.0049d010
pop ecx
mov dword [ebp - 0x10], eax
push 3
call fcn.0049d010
pop ecx
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 3
push str.SUBSCRIBE
push 0
push 0xbc4
push 1
call fcn.00492c70
add esp, 0x20
jmp 0x48f537
call fcn.0048bbe0
cmp dword [esi + 0x7c], 0
je 0x48f3a7
movzx eax, word [esi + 0x80]
test eax, eax
jne 0x48f3a7
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [0x7d87f0]
mov dword [esi + 0x7c], 0
push 0x7d87f8
call fcn.0048dab0
pop ecx
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 8], 1
jne 0x48f3d3
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a28f0
pop ecx
test eax, eax
je 0x48f3d3
push 0
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a2950
add esp, 8
lea eax, [ebx + 0x50]
inc dword [eax]
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
movzx eax, word [eax + 0xe]
cmp eax, 1
jne 0x48f411
jmp 0x48f3fa
push 0xffffffffffffffff
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.0048db80
add esp, 0xc
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a28f0
pop ecx
test eax, eax
je 0x48f3e8
mov dword [ebp - 4], 0
jmp 0x48f45d
push 2
call fcn.0049dcf0
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x48f439
mov eax, dword [ebp - 8]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.0048db80
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x48f45d
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a28f0
pop ecx
test eax, eax
jne 0x48f450
mov dword [ebp - 0xc], 1
jmp 0x48f457
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea eax, [ebx + 0x50]
dec dword [eax]
cmp dword [ebp - 4], 0
jne 0x48f4b8
mov eax, edi
test eax, eax
je 0x48f47b
mov dword [edi], pe_nt_image_headers32
mov dword [edi + 8], 1
push 1
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a30e0
add esp, 8
push eax
call fcn.004a4540
pop ecx
push 1
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a2ae0
add esp, 8
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a28f0
pop ecx
dec eax
push eax
mov eax, dword [ebx + 0x54]
push eax
call fcn.004a2950
add esp, 8
jmp 0x48f4d5
mov eax, edi
test eax, eax
je 0x48f4cb
mov dword [edi], pe_nt_image_headers32
mov dword [edi + 8], 0
lea eax, [esi + 0x10]
push eax
call fcn.004a45e0
pop ecx
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x7c], 0
jne 0x48f532
movzx eax, word [esi + 0x80]
test eax, eax
jne 0x48f532
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x48f511
push 0xffffffffffffffff
push 0x7d87d8
push 0x7d87f8
call fcn.0048db80
add esp, 0xc
mov eax, dword [0x7d87f4]
test eax, eax
jne 0x48f4fd
inc dword [0x7d87f0]
mov dword [esi + 0x7c], 1
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0048bc40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret