Function at 0x6601d38c
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 0x6601d41e
cmp dword [ebp + 0xc], 0
mov ebx, dword [ebp + 8]
je 0x6601d427
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 0x660421d8
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 0x6601d44b
test byte [edi], 0x10
jne 0x6601d44b
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.6601cf71
test eax, eax
jne 0x6601d44b
cmp dword [edi + 0xc], 0xffffffff
jne 0x6601d41e
test byte [edi], 8
jne 0x660421e0
cmp word [ebp - 8], 0xffff
je 0x6601d41e
movzx eax, word [ebp - 8]
mov ecx, dword [edi + 0x18]
mov esi, dword [ecx + eax + 0xc]
test esi, esi
jne 0x6601d461
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [ebx + 0x2c], 8
mov dword [ebp - 0x10], eax
je 0x6601d41e
test byte [eax + 0x76], 2
jne 0x6601d41e
mov ax, word [esi + 0x66]
jmp 0x6601d3b8
movzx eax, word [esi + 0x58]
inc dword [ebp + 8]
add dword [ebp - 4], 0x28
inc eax
cmp dword [ebp + 8], eax
jae 0x6601d3f8
jmp 0x6601d3d3
cmp dword [ebp + 0xc], 0
je 0x66042235
mov eax, dword [edi + 4]
add eax, ebx
push eax
call esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x66042280
mov eax, dword [ebp - 0xc]
dec eax
je 0x660422d0
dec eax
je 0x660422b9
mov eax, ebx
jmp 0x6601d420
mov edi, dword [ebp + 0xc]
jmp 0x6601d3f8
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 0x6604221c
mov edx, dword [eax]
push esi
push esi
lea edi, [ebp - 0x24]
push esi
push edi
push 1
push ecx
push 0x6601ae28
push 0xfffffffffffffffa
push eax
call dword [edx + 0x18]
mov ebx, eax
jmp 0x6601d477
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 0x6601ae28
push 0xfffffffffffffff9
jmp 0x66042211
mov eax, dword [ebp - 0x10]
and dword [ebx + 0x2c], 0xfffffff7
cmp dword [eax + 0x10], 0
je 0x66042263
add eax, 0x78
mov dword [ebp - 0xc], 1
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.660d8197
call fcn.66024f2d
jmp 0x6601d46b
lea eax, [ebp - 0x44]
push eax
call fcn.660de785
test eax, eax
jne 0x6601d46b
mov dword [ebp - 0xc], 2
jmp 0x6601d46b
cmp dword [ebp + 0xc], esi
jne 0x6601d47f
cmp ebx, 0x800a9c68
je 0x6601d47f
mov eax, dword [ebp - 0x10]
add eax, 0x78
cmp ebx, 0x80020009
mov dword [ebp + 8], eax
jne 0x660422a9
mov ebx, dword [eax + 0x1c]
push eax
call fcn.6602e73d
call fcn.66024f2d
jmp 0x6601d47f
lea eax, [ebp - 0x44]
push eax
call fcn.660de7ed
lea eax, [ebp - 0x44]
push eax
call fcn.66018aad
jmp 0x6601d490
push dword [ebp + 8]
call fcn.66018aad
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 0x6601d490