Function at 0x660f727b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
mov esi, eax
push ebx
call fcn.660f713b
cmp word [ebp + 0xc], 0xa
mov ecx, 0x80020004
jne 0x660f72ee
cmp dword [ebp + 0x14], ecx
jne 0x660f72ee
or eax, 0xffffffff
cmp word [ebp + 0x1c], 0xa
movsx eax, ax
jne 0x660f72f2
cmp dword [ebp + 0x24], ecx
jne 0x660f72f2
or ecx, 0xffffffff
test cx, cx
je 0x660f7423
test eax, eax
je 0x660f73c6
test ebx, ebx
jne 0x660f72f6
xor eax, eax
add eax, 0x26
mov esi, 0x104
cmp eax, esi
jb 0x660f72fd
push 5
call fcn.66024fdc
xor eax, eax
jmp 0x660f72b2
xor ecx, ecx
jmp 0x660f72c4
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x660f72db
lea eax, [ebp - 0x418]
push 0x66056754
push eax
call fcn.6601333f
pop ecx
lea eax, [ebp - 0x418]
pop ecx
push ebx
push eax
call fcn.660ed80c
pop ecx
lea eax, [ebp - 4]
pop ecx
mov ebx, SysReAllocStringLen
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.660e4e03
test eax, eax
je 0x660f7340
push 5
call fcn.66024fdc
lea eax, [ebp - 0x210]
push esi
push eax
push 0
push dword [ebp - 4]
call fcn.660e4f52
test eax, eax
jne 0x660f738a
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.660f74ea
mov edi, eax
test edi, edi
je 0x660f7340
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f737f
test edi, edi
jne 0x660f7387
push 5
pop edi
test edi, edi
je 0x660f74e3
push edi
jmp 0x660f73bc
cmp eax, 0x103
jne 0x660f73c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f73a5
push 5
call fcn.66024fdc
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.660e4e62
test eax, eax
je 0x660f74e3
push 5
call fcn.66024fdc
push 5
pop edi
jmp 0x660f736b
lea eax, [ebp + 0xc]
push eax
call sym.MSVBVM60.DLL___vbaStrVarCopy
mov edi, eax
mov word [esi + 0x50], 8
push edi
mov dword [esi + 0x58], edi
call fcn.660f713b
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
push ebx
call fcn.660f7156
mov ebx, eax
test ebx, ebx
jne 0x660f740c
lea eax, [ebp - 0x210]
push eax
push SysReAllocStringLen
call fcn.660f74ea
mov ebx, eax
and word [esi + 0x50], 0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
je 0x660f74e3
push ebx
jmp 0x660f73bc
test eax, eax
je 0x660f742e
push 5
call fcn.66024fdc
lea eax, [ebp + 0xc]
push eax
call sym.MSVBVM60.DLL___vbaStrVarCopy
mov ebx, eax
mov word [esi + 0x50], 8
push ebx
mov dword [esi + 0x58], ebx
call fcn.660f713b
lea eax, [ebp + 0x1c]
push eax
call sym.MSVBVM60.DLL___vbaStrVarCopy
mov edi, eax
mov word [esi + 0x60], 8
push edi
mov dword [esi + 0x68], edi
call fcn.660f713b
lea eax, [ebp - 0x210]
push 0x104
push eax
push ebx
push dword [ebp + 8]
call fcn.660f7156
test eax, eax
mov dword [ebp + 8], eax
jne 0x660f74bf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push SysReAllocStringLen
call fcn.660e4e03
test eax, eax
jne 0x660f74b8
push edi
push dword [ebp - 8]
call fcn.660e4ec0
test eax, eax
je 0x660f74ab
mov dword [ebp + 8], 5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f74bf
mov dword [ebp + 8], 5
and word [esi + 0x60], 0
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
and word [esi + 0x50], 0
push ebx
call edi
cmp dword [ebp + 8], 0
je 0x660f74e3
push dword [ebp + 8]
jmp 0x660f73bc
pop edi
pop esi
pop ebx
leave
ret 0x24