Function at 0x10278148
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0xffffffff
jne 0x1027815f
push dword [ebp + 8]
call fcn.101ef4cb
mov dword [ebp + 0x10], eax
push ebx
push esi
push dword [0x1039a750]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x1027817f
mov eax, 0x8000ffff
jmp 0x10278347
lea eax, [ebx + 0x34]
push edi
mov edi, dword [eax]
mov dword [ebp - 0x10], eax
cmp edi, esi
je 0x102781a6
mov esi, dword [edi]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esi, 8
call fcn.10259d8d
push eax
push dword [ebp + 8]
mov ecx, edi
call dword [esi]
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x10278344
lea eax, [ebp - 0xc]
push eax
push esi
push 0xe
push 0x14
push 0x100d8918
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.1021b737
test eax, eax
je 0x102781e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x20]
xor edx, edx
inc edx
shl edx, cl
test edx, eax
je 0x102781f8
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], esi
cmp ecx, esi
je 0x1027833d
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1027833d
or eax, edx
mov dword [ebx + 0x20], eax
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], esi
call fcn.10262025
mov esi, eax
test esi, esi
jl 0x102782bf
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul edx, edx, 0x14
movzx edx, byte [edx + 0x100d8920]
mov eax, dword [ecx]
push edx
call dword [eax + 0x60]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax + 0x70]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, eax
add esi, 0x54
call fcn.102cec11
push eax
mov ecx, edi
call dword [esi]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, eax
add esi, 0x58
call fcn.101c96f2
push eax
mov ecx, edi
call dword [esi]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul eax, eax, 0x14
mov edx, dword [ecx]
push 0
push dword [eax + 0x100d8928]
push dword [eax + 0x100d8924]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jl 0x102782bf
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
mov esi, dword [ebp - 8]
test ecx, ecx
je 0x10278291
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 0x74]
mov esi, eax
test esi, esi
jl 0x102782bf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
jne 0x102782b6
lea eax, [ebp - 4]
push eax
call fcn.1021b87b
jmp 0x102782bf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
shl eax, cl
not eax
and dword [ebx + 0x20], eax
test esi, esi
jge 0x102782f4
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
test ecx, ecx
je 0x102782e0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
je 0x102782f0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x10278346
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
test edi, edi
je 0x10278315
mov esi, dword [edi]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esi, 8
call fcn.10259d8d
push eax
push dword [ebp + 8]
mov ecx, edi
call dword [esi]
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
test ecx, ecx
je 0x10278325
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
je 0x10278335
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x10278344
mov eax, 0x80004005
jmp 0x10278346
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc