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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x148], eax
lea edi, [edx + 1]
lea eax, [ebp - 0x120]
mov dword [ebp - 0x138], ecx
push eax
call sym.ProcessHacker.exe_PhInitializeAutoPool
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x15c], edi
push eax
lea edx, [ebp - 0x14c]
mov ecx, esi
call fcn.004ed0e0
mov ebx, dword [ebp - 0x140]
lea ecx, [ebp - 0x144]
push ebx
mov edx, edi
call fcn.004ec6c0
xor edi, edi
test ebx, ebx
je 0x489c01
lea esp, [esp]
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x13c], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489b92
push dword [0x5cd4f8]
sub eax, edx
sar eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor eax, eax
lea ecx, [esi + 8]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov word [ecx + ebx], ax
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x489bda
push ebx
push eax
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
push esi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov ecx, dword [ebp - 0x144]
mov ebx, dword [ebp - 0x140]
mov ecx, dword [ecx]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
jb 0x489b80
mov esi, dword [ebp - 0x138]
mov eax, dword [ebp - 0x148]
xor ecx, ecx
mov dword [ebp - 0x13c], ecx
cmp dword [eax], ecx
jbe 0x489d68
mov eax, dword [eax + 8]
xor edi, edi
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x158], eax
test ebx, ebx
je 0x489d48
lea ecx, [ecx]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x134]
push eax
push 0
push 0x413
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0x128]
test edi, edi
je 0x489ce2
test esi, esi
jne 0x489c8c
lea esp, [esp]
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x489d1e
mov eax, dword [ebp - 0x124]
push dword [0x5cd4f8]
mov dword [ebp - 0x154], eax
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx], esi
mov dword [ebx + 4], ecx
mov word [ecx + esi], ax
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x489cd1
push esi
push eax
push dword [ebx + 4]
call fcn.00537fe0
add esp, 0xc
push ebx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov ebx, dword ds:[ebp - 0x140]
mov esi, eax
jmp 0x489d1e
push dword [0x5cd4f8]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
push eax
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
push dword [ebp - 0x128]
mov esi, eax
push dword [ebp - 0x124]
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
mov ecx, dword ds:[ebp - 0x13c]
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + ecx*4 + 4]
mov dword [eax + edi*4], esi
inc edi
mov eax, dword [ebp - 0x158]
mov esi, dword [ebp - 0x138]
cmp edi, ebx
jb 0x489c30
mov eax, dword ds:[ebp - 0x148]
inc ecx
mov esi, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
cmp ecx, dword [eax]
jb 0x489c17
push dword [ebp - 0x14c]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x150]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x144]
push ebx
call fcn.004ec820
mov esi, eax
lea eax, [ebp - 0x120]
push eax
call sym.ProcessHacker.exe_PhDrainAutoPool
push dword [0x5cf03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x120]
cmp eax, ecx
jne 0x489e0b
push dword [ebp - 0x10]
push dword [0x5cf03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x489e0b
mov eax, dword ds:[ebp - 0x14]
test eax, eax
je 0x489df3
push eax
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword ds:[ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3