Function at 0x660e29e4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
xor ebx, ebx
push dword [0x6610feb0]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add eax, 0x50
mov word [ebp - 0x30], bx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.660253c4
movzx ecx, word [eax]
dec ecx
je 0x660e2b42
sub ecx, 7
je 0x660e2a94
push eax
call fcn.660e464b
movsx esi, ax
cmp esi, ebx
jle 0x660e2a8d
cmp esi, 0xff
jg 0x660e2a8d
mov eax, dword [0x6610d62c]
push 1
pop edx
add eax, 4
mov ecx, dword [eax - 4]
cmp ecx, ebx
mov dword [ebp - 0xc], ecx
je 0x660e2a5c
cmp esi, edx
je 0x660e2a5c
inc edx
add eax, 4
cmp edx, ebx
jne 0x660e2a46
mov edi, dword [ebp - 0xc]
cmp edi, ebx
jne 0x660e2b49
push 0x6602f9a8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
call sym.MSVBVM60.DLL___vbaFreeVar
cmp dword [ebp - 4], ebx
jne 0x660e2c05
push 0xe
call fcn.66025592
push 5
call fcn.66025592
push dword [eax + 8]
call sym.MSVBVM60.DLL_rtcTrimBstr
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x660e2ab7
xor esi, esi
cmp esi, ebx
jne 0x660e2abe
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 5
call fcn.66025592
mov esi, dword [eax - 4]
shr esi, 1
jmp 0x660e2aa5
lea eax, [ebp - 0x10]
inc esi
push 1
push eax
lea eax, [ebp - 0x94]
lea edi, [esi + esi]
push eax
push edi
push edi
push 0x64
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.660daf6c
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x660e2b3a
add eax, 3
and al, 0xfc
call fcn.660300d8
mov dword [ebp + 8], esp
push ebx
push ebx
push edi
push dword [ebp + 8]
push esi
push dword [ebp - 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [0x6610fd90], ebx
je 0x660e2b18
push dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharToOemA]
push dword [ebp + 8]
call fcn.6602a603
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x20]
call fcn.66029f67
jmp 0x660e2a5c
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x660e2af2
push 0x5e
jmp 0x660e2a8f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea edi, [esi + esi]
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x660e2b6f
push 0xe
call fcn.66025592
cmp dword [0x6610fd90], ebx
je 0x660e2bf1
lea eax, [ebp - 8]
push 1
push eax
lea eax, [ebp - 0x94]
push eax
push edi
push edi
push 0x64
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ebx
call fcn.660daf6c
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x660e2be9
add eax, 3
and al, 0xfc
call fcn.660300d8
mov dword [ebp + 8], esp
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_OemToCharA]
push edi
push dword [ebp - 4]
push esi
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.66029f67
dec esi
lea eax, [ebp - 4]
push esi
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
test eax, eax
jne 0x660e2a75
push 0xe
call fcn.66025592
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x660e2ba7
push edi
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
jmp 0x660e2bcd
mov eax, dword [ebp - 4]
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
leave
ret 4