Function at 0x660db3a2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x6610ee98]
xor eax, eax
mov di, word [esi]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax]
test ebx, ebx
jne 0x660db3de
push 5
call fcn.66024fdc
lea eax, [ebp + 8]
push eax
push ebx
call fcn.6602d661
push eax
mov dword [ebp - 8], eax
call fcn.66027f88
test eax, eax
jne 0x660db3de
cmp dword [ebp - 8], 9
je 0x660db3de
cmp dword [ebp - 8], 0xffffffff
jne 0x660db424
and word [esi], ax
call fcn.6602da9b
cmp dword [ebp + 8], 0
jne 0x660db41c
mov dword [ebp + 8], 0x3e
cmp dword [ebp + 8], 0
je 0x660db424
push dword [ebp + 8]
call fcn.66024fdc
push dword [ebp - 8]
mov word [esi], 8
call fcn.660e4743
test eax, eax
je 0x660db49d
cmp di, 8
je 0x660db440
test di, di
jne 0x660db49d
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d95a
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
call fcn.6602d661
mov edi, eax
push edi
call fcn.66027f88
test eax, eax
jne 0x660db489
push edi
call fcn.660e4743
test eax, eax
jne 0x660db489
cmp edi, 9
jne 0x660db5fd
lea eax, [ebp + 8]
push eax
push ebx
call fcn.6602d661
mov edi, eax
push edi
call fcn.66027f88
jmp 0x660db47c
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
call fcn.6602d863
cmp dword [ebp + 8], 0
je 0x660db4b8
push dword [ebp + 8]
call fcn.66024fdc
cmp di, 8
jne 0x660db4c2
push 2
jmp 0x660db442
cmp dword [ebp - 8], 0x23
jne 0x660db521
cmp di, 7
je 0x660db4d4
cmp di, 0xb
jne 0x660db521
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d95a
test eax, eax
mov dword [ebp + 8], eax
jne 0x660db460
mov eax, dword [ebp - 4]
push esi
mov word [esi], 8
mov dword [esi + 8], eax
call fcn.660db821
cmp word [esi], di
je 0x660db513
mov dword [ebp - 0x10], 0x80020005
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x660db460
lea eax, [ebp - 4]
push 3
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d95a
test eax, eax
mov dword [ebp + 8], eax
jne 0x660db460
mov eax, dword [ebp - 4]
test eax, eax
jne 0x660db592
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x618]
push 0x200
push ecx
and byte [ebp + eax - 0x214], 0
and byte [ebp + eax - 0x213], 0
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [ebp - 0x61c], eax
and word [ebp + eax - 0x618], 0
lea eax, [ebp - 0x618]
push edi
push esi
mov dword [esi + 8], eax
mov word [esi], 8
call fcn.660db6b3
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x660db5e9
cmp word [esi], 8
jne 0x660db5e9
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d95a
cmp dword [ebp - 8], 0x23
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
jne 0x660db5df
test di, di
jne 0x660db5df
push esi
call fcn.660db821
cmp word [esi], 8
je 0x660db460
lea eax, [ebp - 0x618]
cmp dword [ebp - 4], eax
jne 0x660db513
jmp 0x660db460
cmp edi, 0xd
jne 0x660db64a
lea eax, [ebp + 8]
push eax
push ebx
call fcn.6602d661
cmp eax, 0xa
je 0x660db65f
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x660db623
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call fcn.6602d863
cmp dword [ebp - 0x10], edi
jl 0x660db62d
cmp dword [ebp + 8], edi
je 0x660db643
mov word [esi], di
call fcn.6602da9b
cmp dword [ebp - 0x10], edi
jge 0x660db663
push edi
push dword [ebp - 0x10]
call fcn.6601d35f
pop edi
pop esi
pop ebx
leave
ret 4
push edi
call fcn.660e4771
test eax, eax
jne 0x660db65f
lea eax, [ebp + 8]
push eax
push edi
push ebx
call fcn.6602d863
xor edi, edi
jmp 0x660db623
cmp dword [ebp + 8], edi
je 0x660db643
push dword [ebp + 8]
call fcn.66024fdc