Function at 0x4510a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x617a6e
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6a8c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
call fcn.004dae10
call fcn.004dab90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x45115b
call fcn.004dae10
mov esi, eax
push esi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], eax
call fcn.004dae10
mov edi, eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x18]
call fcn.004db160
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x18]
call fcn.004db180
cmp byte [ebp - 0x44], 0
jne 0x45113f
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
jne 0x451149
inc dword [ebx + 8]
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45115b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x58
call fcn.005d585d
mov esi, eax
mov dword [ebp - 0x3c], esi
push 0x58
push 0
push esi
mov dword [ebp - 4], 1
call fcn.005ed310
add esp, 0xc
mov ecx, esi
push str.MiscThread
push 1
call fcn.00450c10
mov ebx, dword [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0x48]
mov dword [ebx + 0x48], esi
test ecx, ecx
je 0x4511a8
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebx + 0x48]
cmp dword [esi + 0x1c], 0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jne 0x4511d8
mov ecx, esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
call fcn.004de3b0
test al, al
je 0x4511d8
push 0xffffffffffffffff
push dword [esi + 0x2c]
call edi
mov byte [esi + 0x14], 1
push 0x58
call fcn.005d585d
mov esi, eax
mov dword [ebp - 0x3c], esi
push 0x58
push 0
push esi
mov dword [ebp - 4], 2
call fcn.005ed310
add esp, 0xc
mov ecx, esi
push str.NetThread
push 2
call fcn.00450c10
mov ecx, dword [ebx + 0x4c]
mov esi, eax
mov dword [ebx + 0x4c], esi
test ecx, ecx
je 0x45121b
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebx + 0x4c]
cmp dword [esi + 0x1c], 0
jne 0x451245
mov ecx, esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
call fcn.004de3b0
test al, al
je 0x451245
push 0xffffffffffffffff
push dword [esi + 0x2c]
call edi
mov byte [esi + 0x14], 1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_d95063a3ead614ecb85b8ee84fa5fc28___void___.0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], eax
sub esp, 0x30
mov dword [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0x38]
push ecx
push eax
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00453260
lea ecx, [ebp - 0x74]
call fcn.00453310
mov byte [ebp - 4], 4
call fcn.004dae10
push 2
lea eax, [ebp - 0x40]
push eax
call fcn.004daed0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4512a6
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
call dword [eax + 4]
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x4512ce
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4512ce
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4512ce
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4512e6
mov edx, dword [ecx]
lea eax, [ebp - 0x74]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4512fe
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d584c
mov esp, ebp
pop ebp
ret