Function at 0x482640
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x4c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x44], eax
mov al, byte [0x63400a]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, al
jne 0x482687
push 0
push 4
lea eax, [esp + 0x2c]
push eax
push 0x1a
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x482680
cmp dword [esp + 0x24], 0
setne byte [0x634009]
mov byte [0x63400a], 1
cmp byte [0x634009], 0
je 0x48269f
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], eax
jmp 0x4828ec
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword fs:[0x18]
mov dword [esp + 0x18], 0
push dword [eax + 0x20]
call sym.SystemInformer.exe_Ordinal_1531
cmp dword [0x62db64], 0xffffffff
mov ecx, dword [0x6356cc]
jae 0x4826ee
cmp ecx, 0x40
jae 0x4826ee
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4826f7
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ebx, dword ds:[esp + 0x14]
test ebx, ebx
je 0x4827b0
mov eax, dword [esi]
cmp eax, 0x40
jae 0x48271a
mov dword [esi + eax*4 + 4], ebx
inc dword [esi]
jmp 0x4827b0
mov ecx, dword [esi + 0x10c]
mov edi, dword [0x633a54]
test ecx, ecx
jne 0x48274e
push 0x100
push 4
push edi
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 0x4827a1
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
test eax, eax
jne 0x48277c
test ecx, ecx
je 0x482778
push ecx
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ecx, ecx
jmp 0x48279b
push eax
test ecx, ecx
je 0x482790
push ecx
push 4
push edi
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x482799
push 4
push edi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
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, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x20]
call sym.SystemInformer.exe_Ordinal_1531
cmp dword [0x62db64], 0xffffffff
mov ecx, dword [0x6356cc]
jae 0x4827f0
cmp ecx, 0x40
jae 0x4827f0
lfence
mov eax, dword fs:[0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4827f9
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov edi, dword ds:[esp + 0x18]
test edi, edi
je 0x4828bd
mov eax, dword [esi]
cmp eax, 0x40
jae 0x48281a
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x4828bd
mov ecx, dword [esi + 0x10c]
mov edx, dword [0x633a54]
test ecx, ecx
jne 0x482854
push 0x100
push 4
push edx
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [0x633a54]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword ds:[esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x4828ae
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
test eax, eax
jne 0x48288a
test ecx, ecx
je 0x482886
push ecx
push eax
push edx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ecx, ecx
jmp 0x4828a8
push eax
test ecx, ecx
je 0x48289b
push ecx
push 4
push edx
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x4828a6
push 4
push edx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov dword [ecx + eax*4], edi
inc dword [esi + 0x104]
nop dword [eax]
test ebx, ebx
je 0x482b89
test edi, edi
je 0x482b89
push 0
push edi
push ebx
call sym.SystemInformer.exe_Ordinal_1351
nop dword [eax]
test al, al
je 0x482b89
mov esi, dword [esp + 0x1c]
test byte [0x62efa0], 1
mov edi, 1
jne 0x482973
mov ebx, 0x62efa0
lock bts dword [ebx], 0x1f
setb al
test al, al
je 0x482927
test byte [0x62efa0], 1
jne 0x482973
xor edx, edx
mov ecx, ebx
call sym.SystemInformer.exe_Ordinal_1388
jmp 0x482973
push dword [0x633a28]
push 0x28
call sym.SystemInformer.exe_Ordinal_1240
mov edx, eax
mov ecx, edi
xor eax, eax
mov word [edx], ax
lock xadd dword [0x633a24], 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], 0x482bc0
mov dword [edx + 0xc], str.PhSvcClient
mov dword [eax*4 + 0x6360c0], edx
mov dword [0x6330b8], edx
call sym.SystemInformer.exe_Ordinal_1358
push dword [0x6330b8]
push 0x24
call sym.SystemInformer.exe_Ordinal_1240
mov ebx, eax
mov ecx, 0x6330b4
mov eax, dword [esp + 0x20]
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 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 0x4829de
call sym.SystemInformer.exe_Ordinal_1254
mov eax, dword [0x62dad0]
or esi, 0xffffffff
mov dword [ebx + 4], eax
mov ecx, esi
mov dword [ebx], 0x62dacc
mov dword [eax], ebx
mov eax, 0x6330b4
mov dword [0x62dad0], ebx
lock xadd dword [eax], ecx
mov eax, ecx
and al, 6
cmp al, 2
jne 0x482a31
lea edi, ds:[ecx - 1]
mov ecx, 0x6330b4
lea edx, [edi + 4]
mov eax, edi
mov esi, edx
lock cmpxchg dword [ecx], esi
cmp eax, edi
jne 0x482a29
call fcn.005218a0
mov edi, 1
or esi, 0xffffffff
call sym.SystemInformer.exe_Ordinal_1266
test al, al
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
je 0x482a63
xorps xmm0, xmm0
mov dword [ebp + 0x28], eax
mov dword [esp + 0x38], 0x18
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
jmp 0x482a82
mov dword [ebp + 0x18], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push eax
push 0
push 1
push ebp
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ntdll.dll_NtAcceptConnectPort]
lfence
test eax, eax
jns 0x482ac9
lea ecx, [ebx - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x482b9d
lfence
call fcn.004fe1e0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00583f9f
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x18], eax
call sym.SystemInformer.exe_Ordinal_1266
mov ecx, ebx
mov edx, 0x20
test al, al
je 0x482af5
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x48]
jmp 0x482b04
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x30]
mov dword [edx + ecx], eax
add ebx, 8
lock bts dword [ebx], 0
setb al
test al, al
jne 0x482b57
lfence
mov esi, dword [ebx + 4]
test esi, esi
je 0x482b2d
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 0x482b57
test esi, esi
je 0x482b57
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 4], 0
lock xadd dword [0x6330b0], edi
inc edi
cmp edi, 1
jne 0x482b9d
push 0
push dword [0x6330bc]
call dword [sym.imp.ntdll.dll_NtSetEvent]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00583f9f
add esp, 0x4c
ret
push 0
push 0
push 0
push ebp
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ntdll.dll_NtAcceptConnectPort]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f9f
add esp, 0x4c
ret