Function at 0x66107494
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6610ee98]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [eax + 0x50]
mov edi, dword [esp + 0x18]
test byte [edi + 1], 0x40
je 0x661076f8
mov esi, dword [esp + 0x14]
cmp word [esi], 9
jne 0x6610751e
mov ecx, dword [esi + 8]
push ebx
push 3
push 0
push 0
push 0
push 0
push ecx
call fcn.660ddd03
cmp word [ebx], 9
jne 0x661074e0
push 0xd
call fcn.66024fdc
cmp word [esp + 0x1c], 0
je 0x661074f7
mov eax, dword [esi + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esi], 0
mov esi, ebx
mov ebp, 1
xor eax, eax
mov ax, word [edi]
and ah, 0xbf
cmp eax, 0x24
ja case.0x66107517.16
xor ecx, ecx
mov cl, byte [eax + 0x66107764]
jmp dword [ecx*4 + 0x66107720]
mov ebp, dword [esp + 0x1c]
jmp 0x661074fe
push esi
call sym.MSVBVM60.DLL___vbaUI1Var
mov edx, dword [edi + 8]
mov byte [edx], al
test bp, bp
je 0x66107717
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push esi
call sym.MSVBVM60.DLL___vbaI2Var
mov ecx, dword [edi + 8]
mov word [ecx], ax
jmp 0x6610752f
push esi
call sym.MSVBVM60.DLL___vbaI4Var
mov edx, dword [edi + 8]
mov dword [edx], eax
jmp 0x6610752f
test bp, bp
je 0x66107588
cmp word [esi], 8
jne 0x66107588
mov ebx, dword [esi + 8]
mov dword [esi], 0
mov eax, dword [edi + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [edi + 8]
mov dword [edx], ebx
jmp 0x6610752f
push esi
call sym.MSVBVM60.DLL___vbaStrVarCopy
mov ebx, eax
jmp 0x66107575
push esi
call sym.MSVBVM60.DLL___vbaR4Var
mov eax, dword [edi + 8]
fstp dword [eax]
jmp 0x6610752f
push esi
call sym.MSVBVM60.DLL___vbaR8Var
mov ecx, dword [edi + 8]
fstp qword [ecx]
jmp 0x6610752f
push esi
call sym.MSVBVM60.DLL___vbaDateVar
mov edx, dword [edi + 8]
fstp qword [edx]
jmp 0x6610752f
push esi
call sym.MSVBVM60.DLL___vbaCyVar
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x6610752f
mov edi, dword [edi + 8]
push 0xe
push esi
push edi
mov word [edi], 0xe
call fcn.660e443d
jmp 0x6610752f
mov ecx, dword [edi + 8]
mov edx, esi
test bp, bp
je 0x66107712
call sym.MSVBVM60.DLL___vbaVarMove
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
cmp word [esi], 0x24
jne 0x6610766d
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0xc]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x3c]
test eax, eax
je 0x6610766d
mov eax, dword [esi + 0xc]
test bp, bp
je 0x66107650
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x20]
push 0
push eax
call fcn.6601d35f
mov esi, dword [esi + 8]
mov edi, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edx, dword [edi + 8]
mov ecx, dword [eax]
push edx
mov edx, dword [esi + 8]
push edx
push eax
call dword [ecx + 0x14]
push 0
push eax
call fcn.6601d35f
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push 0xd
call fcn.66024fdc
mov eax, dword [edi + 8]
push 0
push 4
push 1
mov ecx, dword [eax]
push 0x660555b0
push 1
push esi
push ecx
call fcn.660ddd03
jmp 0x6610752f
push 0xd
call fcn.66024fdc
mov ax, word [edi]
test ah, 0x20
je 0x661076ee
and ah, 0xbf
cmp ax, word [esi]
jne 0x661076ee
test bp, bp
je 0x661076bd
mov edx, dword [edi + 8]
mov eax, dword [esi + 8]
mov dword [edx], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
push 0
push eax
call fcn.6601d35f
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DispGetParam]
push 0
push eax
call fcn.6601d35f
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push 0x1ca
call fcn.66024fdc
cmp word [esp + 0x1c], 0
mov edx, dword [esp + 0x14]
mov ecx, edi
je 0x66107712
call sym.MSVBVM60.DLL___vbaVarMove
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call sym.MSVBVM60.DLL___vbaVarCopy
pop edi
pop esi
pop ebp
pop ebx
ret 0xc