Function at 0x481be0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x634534], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], edi
jne 0x481c32
push 0
push 4
lea eax, [ebp - 0x44]
push eax
push 0x1a
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x481c23
cmp dword [ebp - 0x44], 0
setne byte [0x63446f]
xor ecx, ecx
lea eax, [ebp - 8]
lock or dword [eax], ecx
mov byte [0x634534], 1
cmp byte [0x63446f], 0
je 0x481c49
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 8]
mov dword [ebp - 8], eax
jmp 0x481e5c
mov eax, dword [edi + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x38], 0
push dword [eax + 0x20]
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
cmp dword [0x62dbb0], 0xffffffff
mov ecx, dword [0x635c08]
jae 0x481c97
lea ecx, [ecx]
cmp ecx, 0x40
jae 0x481c97
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x481ca0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x481d42
mov eax, dword [esi]
cmp eax, 0x40
jae 0x481cbd
mov dword [esi + eax*4 + 4], ebx
inc dword [esi]
jmp 0x481d42
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x481cee
push 0x100
push 4
push dword [0x633f94]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x481d33
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x481d1c
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x481d2b
push ecx
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov dword [ecx + eax*4], ebx
inc dword [esi + 0x104]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push dword [ebp - 0x3c]
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
cmp dword [0x62dbb0], 0xffffffff
mov ecx, dword [0x635c08]
jae 0x481d7e
cmp ecx, 0x40
jae 0x481d7e
lfence
mov eax, dword fs:[0x18]
mov ebx, dword [ebp - 0x38]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x481d88
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x481e33
mov ecx, dword [esi]
cmp ecx, 0x40
jae 0x481da5
mov dword [esi + ecx*4 + 4], eax
inc dword [esi]
jmp 0x481e33
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x481dd4
push 0x100
push 4
push dword [0x633f94]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword ds:[esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x481e1f
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x481e08
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x481e17
push ecx
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov edx, dword [ebp - 0x34]
mov dword [ecx + eax*4], edx
mov eax, edx
inc dword [esi + 0x104]
test ebx, ebx
je 0x4820e9
jmp 0x481e40
test eax, eax
je 0x4820e9
push 0
push eax
push ebx
call sym.SystemInformer.exe_PhEqualStringRef
test al, al
je 0x4820e9
mov esi, dword [ebp - 0x3c]
test byte [0x62f060], 1
jne 0x481ed9
mov ebx, 0x62f060
lock bts dword [ebx], 0x1f
setb al
test al, al
je 0x481e8a
test byte [0x62f060], 1
jne 0x481ed9
xor edx, edx
mov ecx, ebx
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x481ed9
push dword [0x633f68]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ecx, 1
xor eax, eax
mov word [edx], ax
lock xadd dword [0x633f64], ecx
inc ecx
dec cl
mov dword [edx + 4], eax
movzx eax, cl
mov byte [edx + 2], cl
mov ecx, ebx
mov dword [edx + 8], 0x482120
mov dword [edx + 0xc], str.PhSvcClient
mov dword [eax*4 + 0x6365a0], edx
mov dword [0x6335f8], edx
call sym.SystemInformer.exe_PhfEndInitOnce
push dword [0x6335f8]
push 0x24
call sym.SystemInformer.exe_PhCreateObject
mov ebx, eax
mov ecx, 0x6335f4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov eax, dword [ebp - 8]
mov dword [ebx + 8], 2
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], eax
lock bts dword [ecx], 0
setb al
test al, al
je 0x481f3e
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [0x62dacc]
or esi, 0xffffffff
mov dword [ebx + 4], eax
mov ecx, esi
mov dword [ebx], 0x62dac8
mov dword [eax], ebx
mov eax, 0x6335f4
mov dword [0x62dacc], ebx
lock xadd dword [eax], ecx
mov eax, ecx
and al, 6
cmp al, 2
jne 0x481f8f
lea edi, ds:[ecx - 1]
mov ecx, 0x6335f4
lea edx, [edi + 4]
mov eax, edi
mov esi, edx
lock cmpxchg dword [ecx], esi
cmp eax, edi
jne 0x481f89
call fcn.00520ae0
mov edi, dword [ebp - 0x40]
or esi, 0xffffffff
call sym.SystemInformer.exe_PhIsExecutingInWow64
test al, al
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
je 0x481fcd
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x481fe8
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push eax
push 0
push 1
push edi
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtAcceptConnectPort]
lfence
test eax, eax
jns 0x48202c
lea ecx, [ebx - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4820fc
lfence
call fcn.004fbd80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
call sym.SystemInformer.exe_PhIsExecutingInWow64
mov ecx, ebx
mov edx, 0x20
test al, al
je 0x482052
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
jmp 0x48205e
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [edx + ecx], eax
add ebx, 8
lock bts dword [ebx], 0
setb al
test al, al
jne 0x4820ad
lfence
mov esi, dword [ebx + 4]
test esi, esi
je 0x482086
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [ebx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4820ad
test esi, esi
je 0x4820ad
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 4], 0
mov eax, 1
lock xadd dword [0x6335f0], eax
inc eax
cmp eax, 1
jne 0x4820fc
push 0
push dword [0x6335fc]
call dword [sym.imp.ntdll.dll_NtSetEvent]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtAcceptConnectPort]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
mov esp, ebp
pop ebp
ret