Function at 0x6d6f96f8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [ebp - 4], ecx
jne 0x6d6f970e
push 0x17
jmp 0x6d6f9732
push dword [0x6d7a23c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], esi
mov eax, dword [esi + 0x14]
test byte [eax + 0x56], 0x20
je 0x6d6f9730
test esi, esi
jne 0x6d6f9738
push 0x65
pop eax
jmp 0x6d6f9901
mov ecx, dword [ebx + 8]
push edi
call fcn.6d6a12f9
mov ecx, dword [ebp - 4]
mov edi, eax
shl eax, 5
push 0
push eax
mov dword [ebp - 0x30], edi
call fcn.6d6faade
test edi, edi
mov dword [ebp - 0x1c], eax
jle 0x6d6f98f1
mov ecx, dword [ebx + 8]
call fcn.6d6a130b
test edi, edi
jle 0x6d6f98f1
mov ecx, dword [ebp - 0x1c]
lea ebx, [eax + 6]
add ecx, 0xc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
jmp 0x6d6f9783
mov esi, dword [ebp + 8]
movzx eax, word [ebx - 6]
cdq
mov dword [ebp - 0x38], eax
and dword [ebp - 8], 0
movzx eax, word [ebx - 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], edx
movzx eax, word [ebx]
mov dword [ebp - 0x10], eax
movzx eax, word [ebx + 2]
mov dword [ebp - 0x24], eax
movzx eax, word [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x48], eax
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x40], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebx - 2]
mov ecx, dword [esi + eax*4 + 0x1c]
call fcn.6d7415c5
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.6d6faade
mov dword [ebp - 0xc], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4 + 0x1c]
call fcn.6d7415c5
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.6d6faade
mov dword [ebp - 0x10], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
jle 0x6d6f98a8
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax*4 + 0x1c]
call fcn.6d7415c5
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.6d6faade
mov dword [ebp - 8], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x48]
call fcn.6d6a63ec
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
add ebx, 0xc
mov dword [eax - 0xc], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax - 8], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0xc], ecx
add eax, 0x20
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jne 0x6d6f9780
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], ecx
xor eax, eax
pop esi
pop ebx
leave
ret 0xc