Function at 0x6d6f7879
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6d7a23c4]
mov dword [ebp - 0x18], ecx
call esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
je 0x6d6f78b3
mov edi, dword [eax]
cmp edi, ebx
je 0x6d6f78ad
cmp edi, 0xfefefefe
jne 0x6d6f78af
xor edi, edi
cmp edi, ebx
jne 0x6d6f78bb
push 0xb
pop eax
jmp 0x6d6f7a88
push dword [0x6d7a23c4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
call esi
push eax
lea ecx, [ebp - 0x34]
call fcn.6d64bc19
push dword [0x6d7a23c4]
call esi
push eax
lea ecx, [ebp - 0x4c]
call fcn.6d6b5a73
mov eax, dword [ebp - 0xc]
push 4
mov ecx, dword [eax + 0x90]
call fcn.6d645be3
mov esi, eax
mov dword [esi], edi
mov ecx, dword [0x6d7bdbc8]
mov dword [ebp - 0x24], ecx
call fcn.6d714b1e
cmp esi, ebx
je 0x6d6f790e
mov ebx, dword [esi]
push ebx
call fcn.6d6c7f3a
test esi, esi
pop ecx
mov ebx, eax
jne 0x6d6f791f
xor eax, eax
jmp 0x6d6f7921
mov eax, dword [esi]
push eax
call fcn.6d6c7f56
mov edi, eax
pop ecx
test ebx, ebx
mov dword [ebp - 0x20], edi
jle 0x6d6f79c0
test esi, esi
jne 0x6d6f793d
xor eax, eax
jmp 0x6d6f793f
mov eax, dword [esi]
push eax
call fcn.6d6c7f48
mov dword [ebp - 0x1c], eax
mov eax, ebx
shl eax, 2
push eax
call fcn.6d735879
and dword [ebp + 8], 0
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0x10], eax
jle 0x6d6f79bd
mov dword [ebp - 4], eax
push 0xc
call fcn.6d645c02
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ecx + eax*4]
push edi
call fcn.6d6c7de0
pop ecx
test eax, eax
pop ecx
je 0x6d6f798f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
test eax, eax
je 0x6d6f798f
inc dword [ebp - 8]
jmp 0x6d6f79b2
test edi, edi
jne 0x6d6f7997
xor eax, eax
jmp 0x6d6f79a9
mov eax, dword [ebp - 0xc]
push 4
mov ecx, dword [eax + 0x90]
call fcn.6d645be3
mov dword [eax], edi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], eax
inc dword [ebp + 8]
cmp dword [ebp + 8], ebx
jl 0x6d6f7963
mov edi, dword [ebp - 0x20]
sub ebx, dword [ebp - 8]
test edi, edi
jle 0x6d6f7a2a
test esi, esi
je 0x6d6f79ca
mov esi, dword [esi]
push esi
call fcn.6d6c7f64
mov dword [ebp - 0x20], eax
mov eax, edi
shl eax, 2
push eax
call fcn.6d735879
and dword [ebp + 8], 0
pop ecx
test edi, edi
pop ecx
mov dword [ebp - 0x14], eax
jle 0x6d6f7a2a
mov dword [ebp - 8], eax
push 0xc
call fcn.6d645c02
add eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ecx + eax*4]
test esi, esi
jne 0x6d6f7a07
xor eax, eax
jmp 0x6d6f7a19
mov eax, dword [ebp - 0xc]
push 4
mov ecx, dword [eax + 0x90]
call fcn.6d645be3
mov dword [eax], esi
mov ecx, dword [ebp - 8]
inc dword [ebp + 8]
add dword [ebp - 8], 4
cmp dword [ebp + 8], edi
mov dword [ecx], eax
jl 0x6d6f79ee
mov ecx, dword [ebp - 0x24]
call fcn.6d715a3f
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
push ebx
mov dword [eax], ebx
call fcn.6d6fab64
push dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
push edi
mov dword [esi], eax
call fcn.6d6fab64
mov ecx, dword [ebp + 0x18]
test ebx, ebx
mov dword [ecx], eax
jle 0x6d6f7a6c
cmp dword [esi], 0
jne 0x6d6f7a6c
push 0x6e
pop esi
jmp 0x6d6f7a76
test edi, edi
jle 0x6d6f7a74
test eax, eax
je 0x6d6f7a67
xor esi, esi
lea ecx, [ebp - 0x4c]
call fcn.6d6b5aa6
lea ecx, [ebp - 0x34]
call fcn.6d6a63ec
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14