Function at 0x10c8540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x113d011
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1025920
lea eax, [ebp - 0x120]
push eax
push 0x1025898
lea ecx, [ebp - 0x11c]
push 2
push ecx
mov dword [ebp - 0x120], esi
call fcn.01075110
add esp, 0x18
mov dword [ebp - 4], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x130], esi
mov edx, dword [0x1162a90]
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
je 0x10c85fd
add eax, 4
push eax
mov ecx, edi
call fcn.0109c210
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x10c87c0
mov dword [ebp - 0x120], 0x80070057
jmp 0x10c87c0
lea ecx, [ebp - 0x124]
push ecx
push 8
call fcn.0112e9b0
cmp eax, esi
mov dword [ebp - 0x120], eax
jl 0x10c87c0
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x128]
push edx
push esi
push esi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10c8644
mov dword [ebp - 0x120], 0x8000ffff
jmp 0x10c87c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x10c8691
cmp eax, esi
jle 0x10c865f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x10c87c0
mov ecx, dword [ebp - 0x120]
push ecx
push 0x1025840
push 0x10257b8
push esi
call fcn.01128b70
add esp, 0x10
jmp 0x10c87c0
mov edx, dword [ebp - 0x128]
push 1
push edx
lea ecx, [ebp - 0x138]
call fcn.010a03e0
mov eax, dword [ebp - 0x134]
cmp eax, esi
jne 0x10c86be
mov dword [ebp - 0x120], 0x8007000e
jmp 0x10c87c0
mov edx, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x124]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10c8728
call ebx
test eax, eax
jg 0x10c86ea
call ebx
jmp 0x10c86f6
call ebx
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x10c87c0
mov ecx, dword [ebp - 0x120]
push ecx
push 0x1025840
push 0x1025730
push esi
call fcn.01128b70
add esp, 0x10
jmp 0x10c87c0
mov edx, dword [ebp - 0x134]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10c8747
mov dword [ebp - 0x120], 0x8000ffff
jmp 0x10c87c0
mov edx, dword [ebp - 0x134]
mov eax, dword [edx]
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x10c87a2
call ebx
test eax, eax
jg 0x10c876b
call ebx
jmp 0x10c8777
call ebx
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x10c87c0
mov ecx, dword [ebp - 0x120]
push ecx
push 0x10256e0
push 0x1025658
push esi
call fcn.01128b70
add esp, 0x10
jmp 0x10c87c0
mov eax, dword [ebp - 0x12c]
cmp eax, esi
jne 0x10c87b8
mov dword [ebp - 0x120], 0x8007000e
jmp 0x10c87d7
push eax
mov ecx, edi
call fcn.0107f660
mov eax, dword [ebp - 0x12c]
cmp eax, esi
je 0x10c87d7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x12c], esi
mov eax, dword [ebp - 0x134]
cmp eax, esi
mov edi, dword [ebp - 0x120]
je 0x10c87ee
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x124]
cmp eax, esi
je 0x10c8805
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x124], esi
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.01075230
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 4