Function at 0x6601bffb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [esi], edi
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov ebx, dword [ebp + 8]
test byte [ebx], 1
je 0x6601c0c8
cmp dword [0x6610ee9c], edi
mov dword [ebp + 0xc], edi
jne 0x660468b6
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call fcn.6601c10d
xor ecx, ecx
cmp esi, eax
sete cl
cmp dword [0x6610ee9c], edi
mov dword [ebp + 8], ecx
jne 0x660468c2
mov eax, dword [ebx + 0x1c]
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
push ecx
push dword [ebp + 8]
mov ecx, dword [eax]
push edi
call fcn.6601c12c
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x660468d5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esi], edi
je 0x660468ce
mov eax, dword [esi]
lea edx, [ebp - 0x10]
push edx
push 0x6602f180
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x66046a8a
mov eax, dword [esi]
lea edx, [ebp - 0x14]
push edx
push 0x6602f190
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x66046aa4
cmp dword [ebp - 4], edi
jl 0x66046ab5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
test byte [ebx], 2
jne 0x660468ff
cmp dword [ebx + 0xc], edi
jne 0x66046ac4
mov edx, dword [ebx + 4]
push 0x10
pop ecx
mov edi, edx
mov esi, 0x6602f170
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x66046979
call fcn.66023f8a
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ecx], eax
je 0x6604693b
mov esi, dword [ebp + 0xc]
xor edi, edi
jmp 0x6601c086
mov ecx, ebx
call fcn.660dcbb6
jmp 0x6601c037
mov ecx, ebx
call fcn.660dcbb6
jmp 0x6601c057
mov dword [ebp - 4], 0x800a005b
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
jne 0x66046946
cmp dword [ebp - 4], 0x800a9c68
jne 0x66046946
mov dword [ebp - 4], 0x800a01ad
mov eax, dword [ebp - 4]
jmp 0x6601c0c1
lea eax, [ebp - 8]
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x6601c0d1
mov eax, dword [ebp - 8]
push esi
push dword [ebx + 8]
mov ecx, dword [eax]
push eax
call dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], edi
jge 0x6601c0bf
jmp 0x660468d5
mov dword [ebp - 4], 0x8007000e
xor edi, edi
jmp 0x660468d5
mov esi, 0x80020009
cmp dword [ebp - 4], esi
je 0x660468f7
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.660dd31d
test eax, eax
jl 0x660468f7
mov eax, dword [ebp - 4]
mov word [ebx], di
mov dword [ebx + 0x1c], eax
mov dword [ebp - 4], esi
jmp 0x660468f7
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x6601c0c1
mov eax, dword [0x6610ed64]
xor esi, esi
cmp eax, esi
je 0x66046a43
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x44], 0x6601a178
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x44]
push ecx
push 4
push esi
push 5
push esi
push edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x6602f180
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x6602f190
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call eax
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x66046942
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x24], esi
jl 0x660469f6
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x18], esi
jl 0x66046a15
cmp dword [ebp - 0x24], esi
jge 0x66046a0c
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], esi
jge 0x66046a28
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x66046942
mov eax, dword [ebp - 0x30]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x66046942
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x6601c0bf
lea eax, [ebp - 8]
push eax
push 0x6601a178
push 5
push esi
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x66046942
push dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push dword [ebx + 8]
mov ecx, dword [eax]
push eax
call dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], 0
jge 0x6601c103
jmp 0x66046942
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x6601c0b6
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
jmp 0x66046a99
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi], edi
jmp 0x660468d5
lea eax, [ebp + 8]
push eax
push 0x6602f9a0
push edi
push 5
push dword [ebx + 4]
call dword [sym.imp.ole32.dll_CoGetClassObject]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x660468d5
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 0x660563f0
mov ecx, dword [eax]
push eax
call dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], edi
jl 0x660468d5
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0xc], eax
cmp eax, edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
je 0x6604696b
push esi
push dword [ebp - 0xc]
push dword [ebx + 8]
push edi
push edi
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], edi
jge 0x6601c086
jmp 0x660468d5