Function at 0x10006eff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x100181d4]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
and dword [esp + 0x14], eax
and dword [esp + 4], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x24], esi
cmp dword [ebp + 8], eax
je 0x10006f44
mov eax, edi
shr eax, 0x10
test ax, ax
je 0x10006f44
push edi
call fcn.1000606a
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.100122e0
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [esp + 0x14]
je 0x100070bc
mov eax, edi
shr eax, 0x10
test ax, ax
jne 0x10006f8d
cmp edi, dword [ebx + 0xc]
jle 0x10006f8d
mov eax, edi
shl eax, 4
mov eax, dword [eax + 0x10001bb0]
mov dword [ebx], eax
mov dword [ebx + 0xc], edi
push ebx
call fcn.1000733e
push 2
mov eax, dword [ebp + 0x10]
pop esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test ebx, ebx
jne 0x10007079
test eax, eax
jne 0x10007079
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
jne 0x10006fc4
mov ecx, 0x10018030
call fcn.100057f7
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [ebp + 8], edi
test eax, eax
je 0x1000707c
mov esi, dword [ebp + 0xc]
mov ebx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x10]
call fcn.1001232f
test eax, eax
je 0x1000721f
mov edi, dword [ebp + 0x14]
shr edi, 0x10
neg edi
push esi
push dword [0x10018594]
mov esi, dword [0x100186e8]
sbb edi, edi
not edi
mov ecx, esi
and edi, dword [ebp + 0x14]
call dword [0x10019344]
call esi
mov ecx, dword [esp + 0x14]
mov eax, edi
shl eax, 4
xor edx, edx
inc edx
mov esi, edx
mov eax, dword [eax + 0x10001bb0]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], edx
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x1c], 0x80
mov eax, dword [ecx + 0x10]
inc dword [ecx]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x18], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 2
mov dword [ebx + 0x10], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000708b
push edi
mov ecx, 0x10018030
call fcn.10005926
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000709d
mov ecx, dword [esp + 0x24]
push eax
call fcn.100073ab
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100070a6
mov dword [eax], esi
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100165d0
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0xc]
call fcn.10006182
mov ebx, eax
test ebx, ebx
je 0x1000710a
mov esi, dword [0x100186d0]
mov ecx, esi
push 1
push 0x24
push dword [ebp + 0xc]
call dword [0x10019344]
call esi
mov eax, dword [esp + 0x24]
push ebx
mov edi, dword [eax + 8]
and dword [eax + 8], 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10019344]
call esi
mov eax, dword [esp + 0x24]
push 4
mov dword [eax + 8], edi
jmp 0x10006f95
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10006fb1
push dword [0x100181dc]
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test dword [eax + 0x44], 0x1000000
je 0x10007143
lea eax, [edi - 0x1b]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
jmp 0x10007147
mov eax, dword [esp + 0x18]
push dword [ebp + 0x18]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
call fcn.10006d40
test eax, eax
jne 0x10007213
cmp dword [esp + 0x1c], 2
jne 0x100071ce
mov esi, dword [esp + 0x10]
test edi, edi
jne 0x1000718e
mov ebx, dword [esp + 0x18]
cmp esi, 2
jne 0x10006f9d
push ebx
call fcn.1000733e
jmp 0x10006f9d
mov ecx, dword [esp + 0x18]
cmp esi, 1
jne 0x100071c6
mov eax, dword [ebp + 0xc]
cmp dword [ecx + 0x20], eax
jne 0x100071c2
mov eax, edi
shr eax, 0x10
test ax, ax
jne 0x100071be
cmp edi, dword [ecx + 0xc]
jbe 0x100071be
mov eax, edi
shl eax, 4
mov eax, dword [eax + 0x10001bb0]
mov dword [ecx], eax
mov dword [ecx + 0xc], edi
mov ebx, ecx
jmp 0x100071c6
mov dword [esp + 0x28], ecx
mov eax, dword [ecx + 0x10]
jmp 0x10006f99
mov esi, dword [0x100186d0]
mov ecx, esi
push 1
push 0x24
push dword [esp + 0x20]
call dword [0x10019344]
call esi
mov ecx, eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x10006fb1
mov ebx, dword [ecx + 0x20]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10019344]
call esi
mov esi, dword [esp + 0x10]
jmp 0x10006f9d
mov esi, dword [esp + 0x10]
xor eax, eax
inc eax
jmp 0x10006fa1
xor ebx, ebx
xor esi, esi
jmp 0x1000707c