Function at 0x6601c2bb
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 0x6601c388
cmp dword [0x6610feb4], edi
mov dword [ebp + 0xc], edi
jne 0x6604669f
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call fcn.6601c3cd
xor ecx, ecx
cmp esi, eax
sete cl
cmp dword [0x6610feb4], edi
mov dword [ebp + 8], ecx
jne 0x660466ab
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.6601c3ec
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x660466be
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esi], edi
je 0x660466b7
mov eax, dword [esi]
lea edx, [ebp - 0x10]
push edx
push 0x6602f1a8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x66046873
mov eax, dword [esi]
lea edx, [ebp - 0x14]
push edx
push 0x6602f1b8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x6604688d
cmp dword [ebp - 4], edi
jl 0x6604689e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
test byte [ebx], 2
jne 0x660466e8
cmp dword [ebx + 0xc], edi
jne 0x660468ad
mov edx, dword [ebx + 4]
push 0x10
pop ecx
mov edi, edx
mov esi, 0x6602f198
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x66046762
call fcn.66024540
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ecx], eax
je 0x66046724
mov esi, dword [ebp + 0xc]
xor edi, edi
jmp 0x6601c346
mov ecx, ebx
call fcn.660de018
jmp 0x6601c2f7
mov ecx, ebx
call fcn.660de018
jmp 0x6601c317
mov dword [ebp - 4], 0x800a005b
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
jne 0x6604672f
cmp dword [ebp - 4], 0x800a9c68
jne 0x6604672f
mov dword [ebp - 4], 0x800a01ad
mov eax, dword [ebp - 4]
jmp 0x6601c381
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 0x6601c391
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 0x6601c37f
jmp 0x660466be
mov dword [ebp - 4], 0x8007000e
xor edi, edi
jmp 0x660466be
mov esi, 0x80020009
cmp dword [ebp - 4], esi
je 0x660466e0
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.660de785
test eax, eax
jl 0x660466e0
mov eax, dword [ebp - 4]
mov word [ebx], di
mov dword [ebx + 0x1c], eax
mov dword [ebp - 4], esi
jmp 0x660466e0
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x6601c381
mov eax, dword [0x6610fd80]
xor esi, esi
cmp eax, esi
je 0x6604682c
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x44], 0x6601a398
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], 0x6602f1a8
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x6602f1b8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call eax
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x6604672b
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x24], esi
jl 0x660467df
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 0x660467fe
cmp dword [ebp - 0x24], esi
jge 0x660467f5
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 0x66046811
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x6604672b
mov eax, dword [ebp - 0x30]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x6604672b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x6601c37f
lea eax, [ebp - 8]
push eax
push 0x6601a398
push 5
push esi
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x6604672b
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 0x6601c3c3
jmp 0x6604672b
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 0x6601c376
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 0x66046882
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi], edi
jmp 0x660466be
lea eax, [ebp + 8]
push eax
push 0x6602f9c0
push edi
push 5
push dword [ebx + 4]
call dword [sym.imp.ole32.dll_CoGetClassObject]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x660466be
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 0x66056208
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 0x660466be
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 0x66046754
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 0x6601c346
jmp 0x660466be