Function at 0x10011540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ab1b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10086040]
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, ecx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
sub eax, 1
je 0x1001172b
mov eax, dword [ebp + 0xc]
mov ebx, eax
add dword [edi + 0x14], eax
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [ebp - 0xa0], edx
lea esi, [eax + ecx*8]
cmp esi, edx
je 0x100115dc
nop dword [eax]
test ebx, ebx
je 0x100115dc
mov eax, dword [esi]
mov cl, 0x20
mov edx, dword [esi + 4]
call fcn.100693c0
mov edx, dword [edi + 0x1c]
cmp edx, eax
mov ecx, edx
cmovae ecx, eax
sub eax, ecx
cmp ebx, eax
jae 0x100115c7
lea eax, [edx + ebx]
xor ebx, ebx
jmp 0x100115d1
inc dword [edi + 0x18]
sub ebx, eax
add esi, 8
xor eax, eax
mov dword [edi + 0x1c], eax
cmp esi, dword [ebp - 0xa0]
jne 0x100115a0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x100115ef
cmp dword [ebp + 0xc], eax
jne 0x100115ef
mov esi, dword [edi + 0x14]
jmp 0x1001160f
mov esi, dword [edi + 0x14]
cmp esi, dword [edi + 0x10]
jae 0x1001160f
xor ecx, ecx
mov edx, 0x10000
test eax, eax
cmovne edx, ecx
mov dword [ebp - 0x9c], edx
je 0x10011740
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x30]
push dword [0x100894bc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebx]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebx + 4]
mov ebx, dword [edi + 0x24]
add edi, 0x28
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], ecx
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001165f
cmp dword [eax], esi
je 0x10011705
mov eax, dword [eax + 8]
test eax, eax
jne 0x10011650
lea eax, [ebp - 0xb4]
push eax
push 0x38
mov dword [ebp - 0xc0], eax
call fcn.10006550
add esp, 8
mov esi, eax
mov dword [ebp - 4], 1
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10013260
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb0]
mov dword [esi + 0x24], ecx
mov ecx, ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
push esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov eax, dword [ebp - 0xa4]
push edi
mov dword [esi + 0x30], eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xbc], 0
call fcn.1000ab40
jmp 0x1001180b
cmp dword [eax + 4], 0
je 0x1001165f
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 0
push eax
push eax
call fcn.10013d40
add esp, 8
jmp 0x1001180b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0x10000
cmp dword [eax], ecx
cmovne edx, ecx
mov dword [ebp - 0x9c], edx
mov esi, dword [edi]
lea eax, [ebp - 0x98]
mov ecx, 0x10
nop dword [eax]
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x10011750
mov ecx, dword [edi + 0x18]
xor ebx, ebx
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], ebx
lea eax, [eax + ecx*8]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0xa0], ecx
cmp eax, dword [edi + 8]
je 0x100117ef
test edx, edx
je 0x100117ed
cmp ebx, 0x10
jae 0x100117ed
mov esi, dword [eax + 4]
mov ecx, esi
cmp dword [ebp - 0xa0], esi
mov edx, dword [eax]
cmovb ecx, dword [ebp - 0xa0]
add edx, ecx
mov dword [ebp - 0xa0], 0
sub esi, ecx
mov dword [ebp + ebx*8 - 0x98], edx
mov ecx, dword [ebp - 0x9c]
cmp esi, ecx
mov edx, dword [ebp - 0x9c]
cmovb ecx, esi
mov dword [ebp + ebx*8 - 0x94], ecx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + ebx*8 - 0x94]
sub edx, ecx
mov dword [ebp - 0x9c], edx
test ecx, ecx
je 0x100117e5
inc ebx
mov dword [ebp - 0x18], ebx
add eax, 8
cmp eax, dword [edi + 8]
jne 0x10011781
mov esi, dword [edi]
mov ecx, dword [esi]
lea eax, [esi + 0x44]
push eax
push edi
push 0
lea eax, [ebp - 0x98]
add ecx, 0x14
push eax
lea eax, [esi + 4]
push eax
call fcn.100127b0
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.100462d6
mov esp, ebp
pop ebp
ret 0xc