Function at 0x4511c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6444ee
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6e1c7c]
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.00507910
call fcn.00507690
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x45127b
call fcn.00507910
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.00507910
mov edi, eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x18]
call fcn.00507c60
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x18]
call fcn.00507c80
cmp byte [ebp - 0x44], 0
jne 0x45125f
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
jne 0x451269
inc dword [ebx + 8]
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45127b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x58
call fcn.0060220e
mov esi, eax
mov dword [ebp - 0x3c], esi
push 0x58
push 0
push esi
mov dword [ebp - 4], 1
call fcn.00619cc0
add esp, 0xc
mov ecx, esi
push str.MiscThread
push 1
call fcn.00450d30
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 0x4512c8
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 0x4512f8
mov ecx, esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
call fcn.0050acc0
test al, al
je 0x4512f8
push 0xffffffffffffffff
push dword [esi + 0x2c]
call edi
mov byte [esi + 0x14], 1
push 0x58
call fcn.0060220e
mov esi, eax
mov dword [ebp - 0x3c], esi
push 0x58
push 0
push esi
mov dword [ebp - 4], 2
call fcn.00619cc0
add esp, 0xc
mov ecx, esi
push str.NetThread
push 2
call fcn.00450d30
mov ecx, dword [ebx + 0x4c]
mov esi, eax
mov dword [ebx + 0x4c], esi
test ecx, ecx
je 0x45133b
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebx + 0x4c]
cmp dword [esi + 0x1c], 0
jne 0x451365
mov ecx, esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
call fcn.0050acc0
test al, al
je 0x451365
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_a2497e3e21953511114efa4766ad74c4___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.004535d0
lea ecx, [ebp - 0x74]
call fcn.00453680
mov byte [ebp - 4], 4
call fcn.00507910
push 2
lea eax, [ebp - 0x40]
push eax
call fcn.005079d0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4513c6
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
call dword [eax + 4]
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x4513ee
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4513ee
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4513ee
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x451406
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 0x45141e
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.006021fd
mov esp, ebp
pop ebp
ret