Function at 0x6d684661
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
push dword [0x6d7a23c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push 6
push edi
mov dword [ebp - 0x18], edi
call fcn.6d681e40
mov eax, dword [ebx + 4]
pop ecx
pop ecx
mov esi, dword [eax]
mov eax, dword [edi + 0x164]
push dword [ebx + 0x24]
mov dword [ebp - 4], esi
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
call fcn.6d641b98
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x48], eax
mov esi, dword [esi + 8]
mov edi, eax
mov eax, ecx
add esi, 0x30
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx + 0x44], 0
mov esi, dword [ebp - 4]
je 0x6d6846fb
cmp word [esi + 0x22], 0
jbe 0x6d6846fb
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x14]
mov edi, dword [eax + 0x104]
test edi, edi
je 0x6d6846fb
push esi
mov ecx, edi
call fcn.6d684e98
test eax, eax
je 0x6d6846f6
mov ecx, dword [edi + 4]
mov edx, dword [ebx + 0x48]
mov eax, dword [edi]
mov byte [ecx + edx], al
mov edi, dword [edi + 0xc]
jmp 0x6d6846db
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 8]
mov edi, dword [eax + 0x14]
mov eax, dword [ebx + 0x34]
lea eax, [eax*4 + 4]
push eax
call fcn.6d641b98
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x34]
test eax, eax
jle 0x6d6847d5
and dword [ebp - 4], 0
test eax, eax
jle 0x6d6847d5
mov ecx, dword [ebp - 8]
push 0x18
call fcn.6d641b98
mov esi, eax
test esi, esi
je 0x6d6847bd
push 0xa
call fcn.6d645c02
mov ecx, eax
mov eax, dword [ebp - 4]
shl eax, 2
add ecx, eax
push 0xa
mov eax, dword [edi + ecx*4 + 0xc]
mov dword [ebp - 0x14], eax
call fcn.6d645c02
mov ecx, eax
mov eax, dword [ebp - 4]
shl eax, 2
add ecx, eax
push 0xa
mov eax, dword [edi + ecx*4 + 8]
mov dword [ebp - 0x10], eax
call fcn.6d645c02
mov ecx, eax
mov eax, dword [ebp - 4]
shl eax, 2
add ecx, eax
push 0xa
mov eax, dword [edi + ecx*4 + 4]
mov dword [ebp - 0xc], eax
call fcn.6d645c02
mov ecx, eax
mov eax, dword [ebp - 4]
shl eax, 2
add ecx, eax
add esp, 0x10
mov eax, dword [edi + ecx*4]
mov ecx, dword [ebx + 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
and dword [esi + 0x14], 0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], ecx
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
jmp 0x6d6847bf
xor esi, esi
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ebp - 4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebx + 0x34]
mov dword [ebp - 4], eax
jl 0x6d68472e
mov ecx, dword [ebp - 8]
push 0x18
call fcn.6d641b98
xor edx, edx
cmp eax, edx
je 0x6d6847ff
mov ecx, dword [ebx + 0x24]
mov esi, dword [ebx + 0x18]
or dword [eax + 0xc], 0xffffffff
mov dword [eax], esi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
jmp 0x6d684801
xor eax, eax
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x4c]
mov dword [esi + ecx*4], eax
mov ebx, dword [ebx + 0x20]
cmp ebx, edx
je 0x6d684818
mov ecx, ebx
call fcn.6d684f02
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0x2c]
call fcn.6d67a7cf
push 4
push 6
push esi
call fcn.6d681d7e
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret