Function at 0x6d6f9907
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push edi
mov dword [ebp - 4], ecx
jne 0x6d6f991d
push 0x17
jmp 0x6d6f9941
push dword [0x6d7a23c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], edi
mov eax, dword [edi + 0x14]
test byte [eax + 0x56], 0x20
je 0x6d6f993f
test edi, edi
jne 0x6d6f9947
push 0x65
pop eax
jmp 0x6d6f9ab3
mov ecx, dword [ebx + 8]
push esi
call fcn.6d6a12f9
mov ecx, dword [ebp - 4]
mov esi, eax
push 0
mov dword [ebp - 0x28], esi
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.6d6faade
test esi, esi
mov dword [ebp - 0x18], eax
jle 0x6d6f9aa3
mov ecx, dword [ebx + 8]
call fcn.6d6a130b
test esi, esi
jle 0x6d6f9aa3
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
lea ebx, [ecx + 0xc]
lea ecx, [eax + 6]
mov dword [ebp + 8], ecx
jmp 0x6d6f9998
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
movzx eax, word [ecx - 6]
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
movzx eax, word [ecx - 4]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx]
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x40], eax
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x38], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
movzx eax, word [ecx - 2]
mov ecx, dword [edi + 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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x40]
call fcn.6d6a63ec
mov eax, dword [ebp - 0x30]
mov dword [ebx - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
add dword [ebp + 8], 0xc
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 8], eax
add ebx, 0x18
dec dword [ebp - 0x14]
jne 0x6d6f9992
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], ecx
xor eax, eax
pop edi
pop ebx
leave
ret 0xc