Function at 0x6d6ee55a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
push dword [0x6d7a23c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
lea ecx, [ebp - 0x18]
call fcn.6d64bc19
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + 8]
mov eax, dword [eax + 8]
call dword [eax + 0x8c]
test eax, eax
jne 0x6d6ee70e
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jle 0x6d6ee5a4
mov edi, dword [edi + 0x10]
dec edi
jmp 0x6d6ee5a6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
mov eax, dword [eax + 0x14]
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], eax
jne 0x6d6ee5c3
cmp edi, ebx
jne 0x6d6ee5c3
cmp eax, ebx
je 0x6d6ee70e
mov ecx, dword [esi]
push 1
call fcn.6d6ed5f4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax], ebx
je 0x6d6ee5dd
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
add dword [eax + 4], 4
cmp ecx, ebx
jne 0x6d6ee5ec
xor ecx, ecx
jmp 0x6d6ee5f2
add ecx, 0xc0
mov eax, dword [esi]
cmp dword [eax], ebx
je 0x6d6ee5fd
mov edx, dword [eax + 4]
mov dword [edx], ecx
add dword [eax + 4], 4
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
add eax, edi
mov dword [ebp + 0xc], eax
cmp dword [ecx], ebx
je 0x6d6ee619
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [edx], eax
add dword [ecx + 4], 4
mov ecx, dword [esi]
cmp dword [ecx], ebx
je 0x6d6ee62d
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 4]
bswap eax
mov dword [edx], eax
add dword [ecx + 4], 4
cmp edi, ebx
jle 0x6d6ee67f
push ebx
push dword [ebp + 8]
push edi
call fcn.6d753994
add esp, 0xc
xor edx, edx
cmp edi, ebx
mov dword [ebp + 0xc], eax
jle 0x6d6ee67f
cmp edx, dword [eax]
mov ecx, dword [esi]
jge 0x6d6ee66a
cmp dword [ecx], ebx
je 0x6d6ee676
mov eax, dword [eax + 8]
mov edi, dword [ecx + 4]
mov eax, dword [eax + edx*4]
add eax, 0xc0
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
jmp 0x6d6ee673
cmp dword [ecx], ebx
je 0x6d6ee676
mov edi, dword [ecx + 4]
mov dword [edi], ebx
mov edi, dword [ebp - 4]
add dword [ecx + 4], 4
inc edx
cmp edx, edi
jl 0x6d6ee64b
mov ecx, dword [esi]
cmp dword [ecx], ebx
je 0x6d6ee68f
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
bswap eax
mov dword [edx], eax
add dword [ecx + 4], 4
cmp dword [ebp - 8], ebx
jle 0x6d6ee70e
mov ecx, dword [ebp + 8]
call fcn.6d64c14b
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, ebx
jle 0x6d6ee70e
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], ebx
je 0x6d6ee6fa
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.6d719b47
mov edi, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x10]
test eax, eax
mov eax, dword [esi]
je 0x6d6ee6dd
cmp dword [eax], ebx
je 0x6d6ee6e6
mov ecx, dword [eax + 4]
add edi, 0xc0
mov dword [ecx], edi
jmp 0x6d6ee6e6
cmp dword [eax], ebx
je 0x6d6ee6e6
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add dword [eax + 4], 4
call fcn.6d719b3e
mov dword [ebp + 0xc], eax
jmp 0x6d6ee709
mov eax, dword [esi]
cmp dword [eax], ebx
je 0x6d6ee705
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
add dword [eax + 4], 4
dec dword [ebp - 8]
jne 0x6d6ee6ad
lea ecx, [ebp - 0x18]
call fcn.6d6a63ec
pop edi
pop esi
pop ebx
leave
ret 8