Function at 0x4ed980
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x30], eax
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4edd1c
mov dword [ebp - 0x24], esi
mov ebx, dword [esi + 8]
movzx eax, byte [edi + 0xb]
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x4edac6
mov ecx, dword [ebp - 0x28]
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test cl, cl
jns 0x4ed9dc
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4ed9ea
cmp dword [ebp - 0x18], 0
je 0x4ede1f
mov eax, dword [ebp - 0x24]
lea esi, [eax + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], edi
movzx edx, byte [ebx + 0x1b]
test dl, dl
jns 0x4eda56
mov edx, dword [ebx + 0x14]
mov eax, edi
cmp edi, edx
jb 0x4eda09
mov eax, edx
mov ecx, dword [ebx + 0x10]
test eax, eax
je 0x4eddc0
mov dword [ebp - 0x1c], esi
push eax
push dword [ebp - 0x18]
push ecx
mov esi, edx
call fcn.0050fd3d
add esp, 0xc
xor edx, edx
xor edi, edi
dec edi
cmp dword [ebp - 0x20], esi
setb cl
ja 0x4eda37
mov dl, cl
mov edi, edx
test eax, eax
mov esi, dword [ebp - 0x1c]
jne 0x4eda40
mov eax, edi
lea ecx, [ebx + 4]
test eax, eax
cmovns ecx, ebx
cmovns esi, ebx
mov ebx, dword [ecx]
test ebx, ebx
mov edi, dword [ebp - 0x20]
jne 0x4ed9f6
jmp 0x4eda63
mov eax, edi
cmp edi, edx
jb 0x4eda5e
mov eax, edx
lea ecx, [ebx + 0x10]
jmp 0x4eda0c
cmp esi, dword [ebp - 0x2c]
je 0x4edac6
movzx ebx, byte [esi + 0x1b]
test bl, bl
jns 0x4edcee
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x4eda86
test eax, eax
je 0x4ede1f
cmp ebx, edi
mov ecx, edi
cmovb ecx, ebx
test ecx, ecx
je 0x4eddee
push ecx
push eax
push dword [ebp - 0x18]
call fcn.0050fd3d
add esp, 0xc
xor ecx, ecx
cmp ebx, edi
setb cl
xor edx, edx
dec edx
cmp edi, ebx
cmovb ecx, edx
test eax, eax
jne 0x4edab7
mov eax, ecx
test eax, eax
js 0x4edac6
mov edi, dword [esi + 0x1c]
mov ebx, dword [ebp - 0x24]
jmp 0x4edb74
mov ebx, dword [ebp - 0x24]
lea edi, [ebx + 4]
push 0xc
call fcn.00510d64
add esp, 4
mov ecx, eax
cmp byte [ebp - 0x28], 0
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 8]
jns 0x4edcf6
push dword [esi + 4]
push dword [esi]
call fcn.00405760
lea edx, [ebp - 0x14]
mov dword [edx], 0xffffffff
mov dword [ebp - 0x1c], edi
mov ecx, edi
push esi
call fcn.00401c60
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, dword [eax]
test edi, edi
jne 0x4edb6c
push 0x20
call fcn.00510d64
add esp, 4
mov edi, eax
mov ecx, eax
add ecx, 0x10
cmp byte [esi + 0xb], 0
jns 0x4edd09
push dword [esi + 4]
push dword [esi]
call fcn.00405760
xor eax, eax
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov esi, dword [ebp - 0x18]
mov dword [esi], edi
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, edi
test ecx, ecx
jne 0x4ede3d
push eax
push dword [ebx + 8]
call fcn.004f4fb0
add esp, 8
inc dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x1c], eax
mov edi, eax
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x14]
mov edx, eax
test ecx, ecx
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
je 0x4edba9
lea edx, [ecx + 4]
cmp dword [ecx + 0x10], esi
cmovae edx, ecx
cmovae eax, ecx
mov ecx, dword [edx]
test ecx, ecx
jne 0x4edb86
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
cmp eax, ecx
je 0x4edba9
cmp esi, dword [eax + 0x10]
cmovb eax, ecx
mov edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [0x6cebdc]
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4edd28
cmp byte [edi + 0xb], 0
mov esi, edi
jns 0x4edbd7
mov esi, dword [edi]
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4ede0d
mov ecx, dword [0x6cebd4]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x6cebd8]
mov edx, dword [0x6cebd4]
mov dword [eax + edx*8 + 4], ecx
mov eax, ebx
mov ebx, dword [ebx + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x28], eax
cmp ebx, eax
mov dword [ebp - 0x20], edi
je 0x4edc45
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4edc21
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebx]
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x2c]
call edi
mov edi, dword [ebp - 0x20]
add ebx, 4
cmp ebx, dword [ebp - 0x28]
jne 0x4edc17
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
je 0x4edd70
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4edde4
mov eax, dword [edx + 0x14]
mov edi, ecx
mov ecx, dword [ecx + 0x10]
cmp eax, ecx
jb 0x4edc76
jbe 0x4edccd
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4edc62
jmp 0x4edc80
mov ecx, dword [edi]
mov esi, edi
test ecx, ecx
jne 0x4edc62
jmp 0x4edc83
lea esi, [edi + 4]
mov dword [ebp - 0x1c], edi
push 0x18
mov ebx, edx
call fcn.00510d64
add esp, 4
mov edi, eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov ebx, dword [ebp - 0x24]
mov dword [esi], edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
mov eax, edi
test ecx, ecx
jne 0x4eddda
push eax
push dword [ebx + 0x20]
call fcn.004f4fb0
add esp, 8
inc dword [ebx + 0x24]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512ee3
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [esi + 0x10]
jmp 0x4eda7a
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi]
movsd qword [ecx], xmm0
jmp 0x4edaf2
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi]
movsd qword [ecx], xmm0
jmp 0x4edb37
mov ecx, esi
call fcn.004f8930
jmp 0x4ed9b0
push 0x6cebdc
call fcn.00510c6d
add esp, 4
cmp dword [0x6cebdc], 0xffffffff
jne 0x4edbcd
mov dword [0x6cebd4], 0xffffffff
xor eax, eax
mov dword [0x6cebd8], eax
mov ecx, 0x6cebd4
push eax
call fcn.0040c200
push 0x6cebdc
call fcn.00510d9d
add esp, 4
jmp 0x4edbcd
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6c24fc]
bt edx, ecx
jb 0x4ede46
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
mov esi, dword [ebp - 0x30]
jb 0x4ede02
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x6ca4fc], 1
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], esi
jmp 0x4edcd3
xor eax, eax
xor edi, edi
dec edi
cmp dword [ebp - 0x20], edx
setb cl
ja 0x4eda3e
mov al, cl
mov edi, eax
jmp 0x4eda3e
mov dword [ebx + 0x1c], ecx
mov eax, dword [esi]
jmp 0x4edcbe
lea esi, [ebx + 0x20]
mov edi, esi
jmp 0x4edc83
xor ecx, ecx
cmp ebx, edi
setb cl
xor eax, eax
dec eax
cmp edi, ebx
cmovb ecx, eax
jmp 0x4edab5
push edi
call fcn.004e3a80
add esp, 4
jmp 0x4eddb5
test esi, esi
je 0x4edc05
call fcn.00404220
jmp 0x4edbec
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x131
push str....._buildtools_third_partylibc_trunkinclude_string_view
push str._s:_d:_assertion__s_failed:__s
call fcn.005495a0
mov dword [edx], ecx
mov eax, dword [esi]
jmp 0x4edb5d
push eax
call fcn.004e3ba0
add esp, 4
jmp 0x4edd90