Function at 0x6601d0c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
and dword [ebp - 0xc], 0
push esi
mov esi, dword [ecx + 8]
push edi
push 1
movzx eax, word [esi + 0x58]
inc eax
pop edi
cmp eax, edi
mov dword [ebp - 0x14], ecx
jle 0x6601d152
cmp dword [ebp + 0xc], 0
mov ebx, dword [ebp + 8]
je 0x6601d15b
mov ax, word [esi + 0x64]
mov word [ebp - 8], ax
mov dword [ebp + 8], edi
movzx eax, word [esi + 0x58]
inc eax
cmp eax, edi
jbe 0x660424ab
mov dword [ebp - 4], 0x28
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax - 0x1c], 0xffffffff
lea edi, [ecx + eax - 0x28]
jne 0x6601d17f
test byte [edi], 0x10
jne 0x6601d17f
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.6601cca5
test eax, eax
jne 0x6601d17f
cmp dword [edi + 0xc], 0xffffffff
jne 0x6601d152
test byte [edi], 8
jne 0x660424b3
cmp word [ebp - 8], 0xffff
je 0x6601d152
movzx eax, word [ebp - 8]
mov ecx, dword [edi + 0x18]
mov esi, dword [ecx + eax + 0xc]
test esi, esi
jne 0x6601d195
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [ebx + 0x2c], 8
mov dword [ebp - 0x10], eax
je 0x6601d152
test byte [eax + 0x76], 2
jne 0x6601d152
mov ax, word [esi + 0x66]
jmp 0x6601d0ec
movzx eax, word [esi + 0x58]
inc dword [ebp + 8]
add dword [ebp - 4], 0x28
inc eax
cmp dword [ebp + 8], eax
jae 0x6601d12c
jmp 0x6601d107
cmp dword [ebp + 0xc], 0
je 0x66042508
mov eax, dword [edi + 4]
add eax, ebx
push eax
call esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x66042553
mov eax, dword [ebp - 0xc]
dec eax
je 0x660425a3
dec eax
je 0x6604258c
mov eax, ebx
jmp 0x6601d154
mov edi, dword [ebp + 0xc]
jmp 0x6601d12c
mov eax, dword [esi + 4]
xor esi, esi
mov ecx, dword [eax + 0x44]
mov eax, dword [edi + 4]
add eax, ebx
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
je 0x660424ef
mov edx, dword [eax]
push esi
push esi
lea edi, [ebp - 0x24]
push esi
push edi
push 1
push ecx
push 0x6601ac08
push 0xfffffffffffffffa
push eax
call dword [edx + 0x18]
mov ebx, eax
jmp 0x6601d1ab
and dword [ebx + 0x2c], 0xfffffff7
mov edx, dword [eax]
push esi
push esi
lea edi, [ebp - 0x24]
push esi
push edi
push 1
push ecx
push 0x6601ac08
push 0xfffffffffffffff9
jmp 0x660424e4
mov eax, dword [ebp - 0x10]
and dword [ebx + 0x2c], 0xfffffff7
cmp dword [eax + 0x10], 0
je 0x66042536
add eax, 0x78
mov dword [ebp - 0xc], 1
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.660d6d46
call fcn.66024977
jmp 0x6601d19f
lea eax, [ebp - 0x44]
push eax
call fcn.660dd31d
test eax, eax
jne 0x6601d19f
mov dword [ebp - 0xc], 2
jmp 0x6601d19f
cmp dword [ebp + 0xc], esi
jne 0x6601d1b3
cmp ebx, 0x800a9c68
je 0x6601d1b3
mov eax, dword [ebp - 0x10]
add eax, 0x78
cmp ebx, 0x80020009
mov dword [ebp + 8], eax
jne 0x6604257c
mov ebx, dword [eax + 0x1c]
push eax
call fcn.6602e749
call fcn.66024977
jmp 0x6601d1b3
lea eax, [ebp - 0x44]
push eax
call fcn.660dd385
lea eax, [ebp - 0x44]
push eax
call fcn.66018892
jmp 0x6601d1c4
push dword [ebp + 8]
call fcn.66018892
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push 8
lea esi, [ebp - 0x44]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x10], 1
jmp 0x6601d1c4