Function at 0x4bb7b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
push ebx
push esi
push edi
lea eax, [esp + 0x28]
mov ebx, ecx
push eax
mov dword [esp + 0x18], ebx
call sym.ProcessHacker.exe_PhInitializeAutoPool
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
sub esp, 8
lea edx, [esp + 0x14c]
call fcn.004bb6a0
push 0
push 0
push 0x1004
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x54b7b4]
mov esi, 0x100
mov dword [esp + 0x24], eax
push 0x10a
mov dword [esp + 0x14], esi
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
mov dword [esp + 0x10], edi
mov dword [edi + 4], ecx
mov word [ecx + 0x100], ax
xor ecx, ecx
mov dword [edi], eax
mov eax, dword [edi + 4]
mov word [eax], cx
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], eax
jbe 0x4bb9ab
push 2
push eax
push 0x102c
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 2
je 0x4bb998
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jbe 0x4bb912
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.004bb710
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
test esi, esi
je 0x4bb8bb
mov edx, dword [edi]
add edx, esi
cmp dword [esp + 0xc], edx
jae 0x4bb89a
lea ecx, [esp + 0xc]
call fcn.004a80b0
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4bb8ae
mov eax, dword [edi + 4]
add eax, dword [edi]
push esi
push ecx
push eax
call fcn.004dd620
add esp, 0xc
add dword [edi], esi
xor edx, edx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
push 0x523a50
call sym.ProcessHacker.exe_PhCountStringZ
mov esi, eax
add esi, esi
je 0x4bb903
mov edx, dword [edi]
add edx, esi
cmp dword [esp + 0xc], edx
jae 0x4bb8e2
lea ecx, [esp + 0xc]
call fcn.004a80b0
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
add eax, dword [edi]
push esi
push 0x523a50
push eax
call fcn.004dd620
add dword [edi], esi
add esp, 0xc
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
inc ebx
cmp ebx, dword [esp + 0x1c]
jb 0x4bb864
mov esi, dword [esp + 0xc]
mov ebx, dword [edi]
test ebx, ebx
je 0x4bb94a
mov ecx, dword [edi + 4]
mov eax, ebx
shr eax, 1
lea edx, [eax*2 - 4]
sub ebx, edx
lea eax, [ecx + eax*2]
sub ebx, 4
push ebx
push eax
lea eax, [ecx + edx]
push eax
call fcn.004ddca0
add dword [edi], 0xfffffffc
add esp, 0xc
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
push 0x522240
call sym.ProcessHacker.exe_PhCountStringZ
mov ebx, eax
add ebx, ebx
je 0x4bb994
mov edx, dword [edi]
add edx, ebx
cmp esi, edx
jae 0x4bb973
lea ecx, [esp + 0xc]
call fcn.004a80b0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 4]
add eax, dword [edi]
push ebx
push 0x522240
push eax
call fcn.004dd620
add dword [edi], ebx
add esp, 0xc
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jb 0x4bb841
lea eax, [esp + 0x28]
push eax
call sym.ProcessHacker.exe_PhDrainAutoPool
push dword [0x54ae94]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esp + 0x28]
cmp eax, ecx
jne 0x4bba03
push dword [esp + 0x138]
push dword [0x54ae94]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4bba03
mov eax, dword [esp + 0x134]
test eax, eax
je 0x4bb9fa
push eax
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3