Function at 0x66108494
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6610feb0]
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 0x661086f8
mov esi, dword [esp + 0x14]
cmp word [esi], 9
jne 0x6610851e
mov ecx, dword [esi + 8]
push ebx
push 3
push 0
push 0
push 0
push 0
push ecx
call fcn.660df16b
cmp word [ebx], 9
jne 0x661084e0
push 0xd
call fcn.66025592
cmp word [esp + 0x1c], 0
je 0x661084f7
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.0x66108517.16
xor ecx, ecx
mov cl, byte [eax + 0x66108764]
jmp dword [ecx*4 + 0x66108720]
mov ebp, dword [esp + 0x1c]
jmp 0x661084fe
push esi
call sym.MSVBVM60.DLL___vbaUI1Var
mov edx, dword [edi + 8]
mov byte [edx], al
test bp, bp
je 0x66108717
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 0x6610852f
push esi
call sym.MSVBVM60.DLL___vbaI4Var
mov edx, dword [edi + 8]
mov dword [edx], eax
jmp 0x6610852f
test bp, bp
je 0x66108588
cmp word [esi], 8
jne 0x66108588
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 0x6610852f
push esi
call sym.MSVBVM60.DLL___vbaStrVarCopy
mov ebx, eax
jmp 0x66108575
push esi
call sym.MSVBVM60.DLL___vbaR4Var
mov eax, dword [edi + 8]
fstp dword [eax]
jmp 0x6610852f
push esi
call sym.MSVBVM60.DLL___vbaR8Var
mov ecx, dword [edi + 8]
fstp qword [ecx]
jmp 0x6610852f
push esi
call sym.MSVBVM60.DLL___vbaDateVar
mov edx, dword [edi + 8]
fstp qword [edx]
jmp 0x6610852f
push esi
call sym.MSVBVM60.DLL___vbaCyVar
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x6610852f
mov edi, dword [edi + 8]
push 0xe
push esi
push edi
mov word [edi], 0xe
call fcn.660e58fd
jmp 0x6610852f
mov ecx, dword [edi + 8]
mov edx, esi
test bp, bp
je 0x66108712
call sym.MSVBVM60.DLL___vbaVarMove
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
cmp word [esi], 0x24
jne 0x6610866d
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 0x6610866d
mov eax, dword [esi + 0xc]
test bp, bp
je 0x66108650
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x20]
push 0
push eax
call fcn.6601d62b
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.6601d62b
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push 0xd
call fcn.66025592
mov eax, dword [edi + 8]
push 0
push 4
push 1
mov ecx, dword [eax]
push 0x660553c8
push 1
push esi
push ecx
call fcn.660df16b
jmp 0x6610852f
push 0xd
call fcn.66025592
mov ax, word [edi]
test ah, 0x20
je 0x661086ee
and ah, 0xbf
cmp ax, word [esi]
jne 0x661086ee
test bp, bp
je 0x661086bd
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.6601d62b
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.6601d62b
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push 0x1ca
call fcn.66025592
cmp word [esp + 0x1c], 0
mov edx, dword [esp + 0x14]
mov ecx, edi
je 0x66108712
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