Function at 0x482540
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 [0x63402a]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, al
jne 0x482587
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 0x482580
cmp dword [esp + 0x24], 0
setne byte [0x634029]
mov byte [0x63402a], 1
cmp byte [0x634029], 0
je 0x48259f
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], eax
jmp 0x4827ec
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 [0x6356f0]
jae 0x4825ee
cmp ecx, 0x40
jae 0x4825ee
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4825f7
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ebx, dword ds:[esp + 0x14]
test ebx, ebx
je 0x4826b0
mov eax, dword [esi]
cmp eax, 0x40
jae 0x48261a
mov dword [esi + eax*4 + 4], ebx
inc dword [esi]
jmp 0x4826b0
mov ecx, dword [esi + 0x10c]
mov edi, dword [0x633a74]
test ecx, ecx
jne 0x48264e
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 0x4826a1
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
test eax, eax
jne 0x48267c
test ecx, ecx
je 0x482678
push ecx
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ecx, ecx
jmp 0x48269b
push eax
test ecx, ecx
je 0x482690
push ecx
push 4
push edi
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x482699
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 [0x6356f0]
jae 0x4826f0
cmp ecx, 0x40
jae 0x4826f0
lfence
mov eax, dword fs:[0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4826f9
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov edi, dword ds:[esp + 0x18]
test edi, edi
je 0x4827bd
mov eax, dword [esi]
cmp eax, 0x40
jae 0x48271a
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x4827bd
mov ecx, dword [esi + 0x10c]
mov edx, dword [0x633a74]
test ecx, ecx
jne 0x482754
push 0x100
push 4
push edx
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [0x633a74]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword ds:[esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x4827ae
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
test eax, eax
jne 0x48278a
test ecx, ecx
je 0x482786
push ecx
push eax
push edx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ecx, ecx
jmp 0x4827a8
push eax
test ecx, ecx
je 0x48279b
push ecx
push 4
push edx
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x4827a6
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 0x482a89
test edi, edi
je 0x482a89
push 0
push edi
push ebx
call sym.SystemInformer.exe_Ordinal_1351
nop dword [eax]
test al, al
je 0x482a89
mov esi, dword [esp + 0x1c]
test byte [0x62efa0], 1
mov edi, 1
jne 0x482873
mov ebx, 0x62efa0
lock bts dword [ebx], 0x1f
setb al
test al, al
je 0x482827
test byte [0x62efa0], 1
jne 0x482873
xor edx, edx
mov ecx, ebx
call sym.SystemInformer.exe_Ordinal_1388
jmp 0x482873
push dword [0x633a48]
push 0x28
call sym.SystemInformer.exe_Ordinal_1240
mov edx, eax
mov ecx, edi
xor eax, eax
mov word [edx], ax
lock xadd dword [0x633a44], 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], 0x482ac0
mov dword [edx + 0xc], str.PhSvcClient
mov dword [eax*4 + 0x6360e0], edx
mov dword [0x6330d8], edx
call sym.SystemInformer.exe_Ordinal_1358
push dword [0x6330d8]
push 0x24
call sym.SystemInformer.exe_Ordinal_1240
mov ebx, eax
mov ecx, 0x6330d4
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 0x4828de
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, 0x6330d4
mov dword [0x62dad0], ebx
lock xadd dword [eax], ecx
mov eax, ecx
and al, 6
cmp al, 2
jne 0x482931
lea edi, ds:[ecx - 1]
mov ecx, 0x6330d4
lea edx, [edi + 4]
mov eax, edi
mov esi, edx
lock cmpxchg dword [ecx], esi
cmp eax, edi
jne 0x482929
call fcn.005217e0
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 0x482963
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 0x482982
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 0x4829c9
lea ecx, [ebx - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x482a9d
lfence
call fcn.004fe0c0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00583f7f
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 0x4829f5
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x48]
jmp 0x482a04
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 0x482a57
lfence
mov esi, dword [ebx + 4]
test esi, esi
je 0x482a2d
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 0x482a57
test esi, esi
je 0x482a57
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 4], 0
lock xadd dword [0x6330d0], edi
inc edi
cmp edi, 1
jne 0x482a9d
push 0
push dword [0x6330dc]
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.00583f7f
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.00583f7f
add esp, 0x4c
ret