Function at 0x4ede60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, dword [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x30], eax
call fcn.004ee180
mov edx, eax
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x10], eax
sar eax, 0x1f
mov dword [esp + 0x14], eax
mov ebx, dword [edi + 0x10]
mov ecx, dword [0x6bede4]
xor esi, esi
test ecx, ecx
jne 0x4ee0b9
mov ecx, esi
shr ecx, 0xe
mov eax, esi
shr eax, 0x13
mov dword [esp + 8], eax
mov eax, dword [eax*4 + 0x6c24fc]
mov dword [esp + 0xc], ecx
bt eax, ecx
jb 0x4ee0c9
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x6ca4fc], 1
mov dword [esp + 4], 0xffffffff
test esi, esi
jne 0x4ee0df
mov dword [esp + 0x10], 0xd017d00d
mov dword [esp + 0x2c], 0x1d178119
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], eax
movups xmm0, xmmword [edi + 0x34]
movups xmmword [esp + 0x18], xmm0
mov eax, dword [edi + 0x44]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.004ee170
add esp, 4
mov eax, dword [0x6cf6a0]
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ee071
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
and eax, 0xfffffffc
je 0x4edf5d
mov ecx, dword [0x6cf698]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x6cf69c]
jne 0x4edf5d
mov ebx, dword [eax + ecx*8]
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4ee04d
mov ecx, dword [0x6cf698]
mov dword [eax + ecx*8], edi
mov ecx, dword [0x6cf69c]
mov edx, dword [0x6cf698]
mov dword [eax + edx*8 + 4], ecx
mov dword [esp], esi
mov esi, dword [edi]
mov dword [edi], 0
mov ecx, dword [esi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
test esi, esi
jne 0x4ee030
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
mov esi, dword [esp]
je 0x4ee05f
mov ecx, dword [0x6cf698]
mov dword [eax + ecx*8], ebx
mov ecx, dword [0x6cf69c]
mov edx, dword [0x6cf698]
mov dword [eax + edx*8 + 4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x10]
push eax
call fcn.004ee170
add esp, 4
test esi, esi
jne 0x4ee0f8
mov eax, dword [esp + 8]
mov eax, dword [eax*4 + 0x6c24fc]
mov ecx, dword [esp + 0xc]
bt eax, ecx
jb 0x4ee12b
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00512ee3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lock dec dword [esi]
jne 0x4edfad
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x4edfad
test edi, edi
je 0x4edf8b
call fcn.00404220
jmp 0x4edf72
test ebx, ebx
je 0x4edfde
call fcn.00404220
jmp 0x4edfc5
push 0x6cf6a0
call fcn.00510c6d
add esp, 4
cmp dword [0x6cf6a0], 0xffffffff
jne 0x4edf35
xor eax, eax
mov dword [0x6cf69c], eax
mov dword [0x6cf698], 0xffffffff
mov ecx, 0x6cf698
push eax
call fcn.0040c200
push 0x6cf6a0
call fcn.00510d9d
add esp, 4
jmp 0x4edf35
mov esi, edx
call fcn.00566ad0
mov edx, esi
mov esi, eax
jmp 0x4edea2
push esi
mov dword [esp + 4], edx
call fcn.004e3a80
mov edx, dword [esp + 4]
add esp, 4
jmp 0x4eded0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 0x10
push ebx
push edx
call fcn.00565a20
mov dword [esp + 4], eax
jmp 0x4edee0
mov eax, dword [esp + 4]
cmp dword [esi + 0xc], eax
jbe 0x4ee115
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 4]
shl ecx, 7
cmp dword [eax + ecx + 0x68], 0
jne 0x4ee139
mov esi, dword [esp]
mov eax, dword [esi + 4]
lock dec dword [eax + 0x38]
mov eax, dword [esi + 4]
lock inc dword [eax + 0x3c]
jmp 0x4ee003
push esi
call fcn.004e3ba0
add esp, 4
jmp 0x4ee01b
mov esi, dword [0x6bede4]
lea edi, [esi + 0x74]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4ee166
add esi, 0x48
mov ecx, dword [esp]
push esi
push dword [esp + 8]
call fcn.00565de0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x4ee115
mov ecx, edi
call fcn.004f8930
jmp 0x4ee14d