Function at 0x41e060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b75be
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x80], edi
mov dword [edi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
mov dword [ebp - 4], 1
call fcn.0041ded0
call fcn.0040fff0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
cmp edx, ecx
je 0x41e0fa
cmp dword [edx], edi
je 0x41e0cf
add edx, 4
cmp edx, ecx
jne 0x41e0c4
cmp edx, ecx
je 0x41e0fa
cmp dword [esi + 0x5c], 0
je 0x41e0e1
mov dword [edx], 0
jmp 0x41e0fa
mov eax, ecx
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call fcn.00490790
add esp, 0xc
add dword [esi + 0x54], 0xfffffffc
mov esi, dword [edi + 0x14]
test esi, esi
je 0x41e20a
mov ecx, dword [edi + 0x18]
mov eax, esi
cdq
mov dword [ebp - 0x9c], edx
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x88], str.event_count
mov dword [ebp - 0x84], str.average_overhead
mov word [ebp - 0x64], 0x403
mov dword [ebp - 0xa0], eax
call fcn.004b2e6f
divsd xmm0, qword [0x4d53d8]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [ebp - 0x6c], xmm0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x94], eax
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x90], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ecx
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 2
push 0
push 0
push str.trace_event_overhead
push 0x4eb0fa
push 0x4d
push dword [ebp - 0x68]
lea ecx, [ebp - 0x60]
push dword [ebp - 0x6c]
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push eax
call fcn.0041d3c0
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.00420500
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x41e1f4
add esi, 4
mov ecx, esi
call fcn.00440300
test al, al
je 0x41e1f4
test esi, esi
je 0x41e1f4
lea ecx, [esi - 4]
test ecx, ecx
je 0x41e1f4
mov eax, dword [ecx]
push 1
call dword [eax + 8]
push 0x405ca0
push 2
push 4
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.00491065
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x78]
push 0
mov dword [ebp - 0x7c], eax
call fcn.00440240
mov dword [ebp - 0x70], 0
mov esi, dword [edi + 4]
push esi
mov dword [ebp - 0x64], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0041e5a0
call fcn.0040fff0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x64], eax
add ecx, 0x174
lea eax, [ebp - 0x64]
push eax
call fcn.004203b0
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 4]
xor edx, edx
add ecx, 0x170
call fcn.0040e280
cmp dword [ebp - 0x70], 0
je 0x41e28d
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [ebp - 0x74]
add esp, 8
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00410380
mov byte [ebp - 4], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x41e2d0
push dword [ebp - 0x80]
mov edx, dword [edi + 0xc]
push ecx
call fcn.004221e0
push dword [edi + 8]
call fcn.0048fa72
add esp, 0xc
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi], vtable.base::MessageLoop::DestructionObserver.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret