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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
push edi
lea eax, [esp + 0x48]
push eax
call sym.ProcessHacker.exe_PhInitializeAutoPool
mov esi, dword [ebp + 8]
push 0
push 0
push 0x411
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x24]
mov ecx, esi
lea edi, [eax + 1]
lea eax, [esp + 0x18]
mov dword [esp + 0x30], edi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004bb050
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ebx
mov edx, edi
call fcn.004babc0
xor edi, edi
test ebx, ebx
je 0x4bb49a
mov eax, dword [esp + 0x20]
mov eax, dword [eax + edi*4]
mov ecx, eax
mov dword [esp + 0xc], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bb432
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x14], eax
lea eax, [ecx*2 + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor edx, edx
mov eax, dword [esp + 0x10]
lea ecx, [esi + 8]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov word [ecx + eax], dx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4bb484
push eax
push ecx
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
push esi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
jb 0x4bb422
jmp 0x4bb49e
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x1c], ecx
jbe 0x4bb601
mov edi, dword [ebp + 8]
lea eax, [edx + 4]
mov dword [esp + 0xc], eax
push 0
push ecx
push 0x412
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4bb577
xor esi, esi
test ebx, ebx
je 0x4bb5e9
lea ecx, [ecx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
push 0
push 0x413
push edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push dword [0x54b7b4]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
mov dword [edi], ebx
mov dword [edi + 4], ecx
mov word [ecx + ebx], ax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4bb552
push ebx
push eax
push dword [edi + 4]
call fcn.004dd620
add esp, 0xc
push edi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [esp + 0x28]
cmp esi, ebx
jb 0x4bb4e0
jmp 0x4bb5e9
xor edi, edi
test ebx, ebx
je 0x4bb5e6
lea ecx, [ecx]
mov esi, dword [0x54aedc]
test esi, esi
jne 0x4bb5ce
push dword [0x54b7b4]
push 0xa
call sym.ProcessHacker.exe_PhCreateObject
mov edx, eax
xor eax, eax
lea ecx, [edx + 8]
mov dword [edx], esi
mov esi, 0x54aedc
mov dword [edx + 4], ecx
mov word [ecx], ax
mov ecx, edx
lock cmpxchg dword [esi], ecx
mov esi, eax
test esi, esi
jne 0x4bb5bb
mov esi, edx
jmp 0x4bb5ce
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4bb5ce
call fcn.004a2a20
lock inc dword [esi - 4]
push esi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov edx, dword [esp + 0xc]
mov ecx, dword [edx]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
jb 0x4bb580
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
add dword [esp + 0xc], 4
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x1c]
jb 0x4bb4b8
push dword [esp + 0x20]
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x24]
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp + 0xc]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push ebx
call fcn.004bac50
mov esi, eax
lea eax, [esp + 0x48]
push eax
call sym.ProcessHacker.exe_PhDrainAutoPool
push dword [0x54ae94]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esp + 0x48]
cmp eax, ecx
jne 0x4bb692
push dword [esp + 0x158]
push dword [0x54ae94]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4bb692
mov eax, dword [esp + 0x154]
test eax, eax
je 0x4bb687
push eax
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3