Function at 0x660e1515
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 [0x6610ee98]
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.66024e0e
movzx ecx, word [eax]
dec ecx
je 0x660e1673
sub ecx, 7
je 0x660e15c5
push eax
call fcn.660e318b
movsx esi, ax
cmp esi, ebx
jle 0x660e15be
cmp esi, 0xff
jg 0x660e15be
mov eax, dword [0x6610c62c]
push 1
pop edx
add eax, 4
mov ecx, dword [eax - 4]
cmp ecx, ebx
mov dword [ebp - 0xc], ecx
je 0x660e158d
cmp esi, edx
je 0x660e158d
inc edx
add eax, 4
cmp edx, ebx
jne 0x660e1577
mov edi, dword [ebp - 0xc]
cmp edi, ebx
jne 0x660e167a
push 0x6602f988
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 0x660e1736
push 0xe
call fcn.66024fdc
push 5
call fcn.66024fdc
push dword [eax + 8]
call sym.MSVBVM60.DLL_rtcTrimBstr
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x660e15e8
xor esi, esi
cmp esi, ebx
jne 0x660e15ef
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 5
call fcn.66024fdc
mov esi, dword [eax - 4]
shr esi, 1
jmp 0x660e15d6
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.660d9ad7
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x660e166b
add eax, 3
and al, 0xfc
call fcn.660300e8
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 [0x6610ed74], ebx
je 0x660e1649
push dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharToOemA]
push dword [ebp + 8]
call fcn.6602a014
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x20]
call fcn.66029978
jmp 0x660e158d
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x660e1623
push 0x5e
jmp 0x660e15c0
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 0x660e16a0
push 0xe
call fcn.66024fdc
cmp dword [0x6610ed74], ebx
je 0x660e1722
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.660d9ad7
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x660e171a
add eax, 3
and al, 0xfc
call fcn.660300e8
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.66029978
dec esi
lea eax, [ebp - 4]
push esi
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
test eax, eax
jne 0x660e15a6
push 0xe
call fcn.66024fdc
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x660e16d8
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 0x660e16fe
mov eax, dword [ebp - 4]
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
leave
ret 4