Function at 0x660dc837
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 [0x6610feb0]
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 0x660dc873
push 5
call fcn.66025592
lea eax, [ebp + 8]
push eax
push ebx
call fcn.6602d655
push eax
mov dword [ebp - 8], eax
call fcn.66028577
test eax, eax
jne 0x660dc873
cmp dword [ebp - 8], 9
je 0x660dc873
cmp dword [ebp - 8], 0xffffffff
jne 0x660dc8b9
and word [esi], ax
call fcn.6602da8f
cmp dword [ebp + 8], 0
jne 0x660dc8b1
mov dword [ebp + 8], 0x3e
cmp dword [ebp + 8], 0
je 0x660dc8b9
push dword [ebp + 8]
call fcn.66025592
push dword [ebp - 8]
mov word [esi], 8
call fcn.660e5c03
test eax, eax
je 0x660dc932
cmp di, 8
je 0x660dc8d5
test di, di
jne 0x660dc932
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d94e
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.6602d655
mov edi, eax
push edi
call fcn.66028577
test eax, eax
jne 0x660dc91e
push edi
call fcn.660e5c03
test eax, eax
jne 0x660dc91e
cmp edi, 9
jne 0x660dca92
lea eax, [ebp + 8]
push eax
push ebx
call fcn.6602d655
mov edi, eax
push edi
call fcn.66028577
jmp 0x660dc911
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
call fcn.6602d857
cmp dword [ebp + 8], 0
je 0x660dc94d
push dword [ebp + 8]
call fcn.66025592
cmp di, 8
jne 0x660dc957
push 2
jmp 0x660dc8d7
cmp dword [ebp - 8], 0x23
jne 0x660dc9b6
cmp di, 7
je 0x660dc969
cmp di, 0xb
jne 0x660dc9b6
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d94e
test eax, eax
mov dword [ebp + 8], eax
jne 0x660dc8f5
mov eax, dword [ebp - 4]
push esi
mov word [esi], 8
mov dword [esi + 8], eax
call fcn.660dccb6
cmp word [esi], di
je 0x660dc9a8
mov dword [ebp - 0x10], 0x80020005
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x660dc8f5
lea eax, [ebp - 4]
push 3
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d94e
test eax, eax
mov dword [ebp + 8], eax
jne 0x660dc8f5
mov eax, dword [ebp - 4]
test eax, eax
jne 0x660dca27
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.660dcb48
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x660dca7e
cmp word [esi], 8
jne 0x660dca7e
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.6602d94e
cmp dword [ebp - 8], 0x23
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
jne 0x660dca74
test di, di
jne 0x660dca74
push esi
call fcn.660dccb6
cmp word [esi], 8
je 0x660dc8f5
lea eax, [ebp - 0x618]
cmp dword [ebp - 4], eax
jne 0x660dc9a8
jmp 0x660dc8f5
cmp edi, 0xd
jne 0x660dcadf
lea eax, [ebp + 8]
push eax
push ebx
call fcn.6602d655
cmp eax, 0xa
je 0x660dcaf4
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x660dcab8
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
call fcn.6602d857
cmp dword [ebp - 0x10], edi
jl 0x660dcac2
cmp dword [ebp + 8], edi
je 0x660dcad8
mov word [esi], di
call fcn.6602da8f
cmp dword [ebp - 0x10], edi
jge 0x660dcaf8
push edi
push dword [ebp - 0x10]
call fcn.6601d62b
pop edi
pop esi
pop ebx
leave
ret 4
push edi
call fcn.660e5c31
test eax, eax
jne 0x660dcaf4
lea eax, [ebp + 8]
push eax
push edi
push ebx
call fcn.6602d857
xor edi, edi
jmp 0x660dcab8
cmp dword [ebp + 8], edi
je 0x660dcad8
push dword [ebp + 8]
call fcn.66025592