Function at 0x660e2c8d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
push 0xd
mov ax, word [esi]
pop ebx
mov ecx, eax
and ecx, 0x9fff
movzx edi, cx
shr eax, 0xd
and eax, 1
cmp edi, 9
mov dword [ebp - 0x14], eax
jg 0x660e2d26
je 0x660e2e35
test edi, edi
jl 0x660e2ccf
cmp edi, 8
jle 0x660e2f4d
push 0x1ca
call fcn.66025592
push edi
push dword [ebp + 8]
call fcn.6601342c
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov word [eax + esi*2], 0x28
mov eax, dword [ebp + 8]
mov word [eax + esi*2 + 2], 0x29
mov eax, dword [ebp + 8]
and word [eax + ebx*2], 0
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebp + 8], eax
jne 0x660e2cff
push 0xe
call fcn.66025592
cmp edi, 0xa
jl 0x660e2ccf
cmp edi, 0xb
jle 0x660e2f4d
cmp edi, 0xc
je 0x660e2f35
cmp edi, ebx
je 0x660e2e35
cmp edi, 0xe
je 0x660e2f4d
cmp edi, 0x11
je 0x660e2f4d
cmp edi, 0x24
jne 0x660e2ccf
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x24], 0
je 0x660e2d78
push ebx
call fcn.66025592
cmp dword [ebp - 0x14], 0
jne 0x660e2dcb
mov esi, dword [esi + 0xc]
test esi, esi
je 0x660e2d97
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0x1c]
test eax, eax
jge 0x660e2d08
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x14], 0
push edi
je 0x660e2d12
call fcn.66026741
mov esi, eax
pop ecx
lea ebx, [esi + 2]
push ebx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
mov dword [ebp + 8], eax
jne 0x660e2cd9
push 0xe
call fcn.66025592
mov cx, word [esi]
and cx, 0x4000
je 0x660e2e01
mov eax, dword [esi + 8]
mov eax, dword [eax]
test eax, eax
je 0x660e2e01
test byte [eax + 2], 0x20
je 0x660e2e01
mov eax, dword [eax - 4]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jge 0x660e2e22
push eax
call fcn.6600fd75
push eax
call fcn.66025592
test cx, cx
jne 0x660e2e2a
mov esi, dword [esi + 8]
test byte [esi + 2], 0x20
je 0x660e2e2a
mov esi, dword [esi - 4]
test esi, esi
je 0x660e2e2a
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x1c]
jmp 0x660e2df1
mov edi, dword [ebp - 4]
jmp 0x660e2d9a
mov edi, dword [0x66111030]
jmp 0x660e2d9a
test eax, eax
jne 0x660e2f35
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x24], 0
je 0x660e2e55
push ebx
call fcn.66025592
test byte [esi + 1], 0x40
je 0x660e2e6e
mov eax, dword [esi + 8]
mov esi, dword [eax]
test esi, esi
jne 0x660e2e73
mov edi, 0x66055518
jmp 0x660e2d9a
mov esi, dword [esi + 8]
jmp 0x660e2e60
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push 0x6602f258
push esi
call dword [eax]
xor ebx, ebx
cmp eax, ebx
jl 0x660e2efd
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0x660e2f4d
mov eax, dword [ebp - 8]
push ebx
push ebx
lea edx, [ebp + 8]
mov ecx, dword [eax]
push ebx
push edx
push 0xffffffffffffffff
push eax
call dword [ecx + 0x30]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, ebx
jl 0x660e2d97
mov eax, dword [ebp + 8]
cmp word [eax], 0x5f
jne 0x660e2d0b
cmp eax, ebx
jne 0x660e2f2e
xor ecx, ecx
dec ecx
add eax, 2
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x660e2d0b
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x6602f1f8
push esi
call dword [eax]
mov esi, eax
cmp esi, ebx
jl 0x660e2f4d
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
push 0x409
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [ebp - 0x10]
jmp 0x660e2e99
mov ecx, dword [eax - 4]
shr ecx, 1
jmp 0x660e2edf
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x24], 0
je 0x660e2f4d
push ebx
call fcn.66025592
mov edi, dword [edi*4 + 0x66110fe8]
jmp 0x660e2d9a