Function at 0x420810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44782e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x458008]
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 - 0x80], edi
mov dword [edi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
mov dword [ebp - 4], 1
call fcn.00420620
call fcn.0041b4a0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.0041b2f0
mov esi, dword [edi + 0x14]
test esi, esi
je 0x42097f
mov ecx, dword [edi + 0x18]
mov eax, esi
cdq
mov dword [ebp - 0x9c], edx
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x90], str.event_count
mov dword [ebp - 0x8c], str.average_overhead
mov word [ebp - 0x64], 0x403
mov dword [ebp - 0xa0], eax
call fcn.00444cdf
divsd xmm0, qword [0x452188]
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 - 0x88], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push 0
push ecx
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push 2
push 0
push 0
push str.trace_event_overhead
push 0x45c472
push 0x4d
push eax
lea ecx, [ebp - 0x60]
call fcn.0041fa40
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.00423040
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x420969
push 0xffffffffffffffff
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
setne al
test al, al
jne 0x420969
test esi, esi
je 0x420969
lea ecx, [esi - 4]
test ecx, ecx
je 0x420969
mov eax, dword [ecx]
push 1
call dword [eax + 8]
push 0x41f070
push 2
push 4
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.004285ed
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x78]
push 0
mov dword [ebp - 0x7c], eax
call fcn.00407280
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.00420cd0
call fcn.0041b4a0
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.00422ee0
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.0041ebe0
cmp dword [ebp - 0x70], 0
je 0x420a02
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [ebp - 0x74]
add esp, 8
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x78]
test esi, esi
je 0x420a32
push 0xffffffffffffffff
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
setne al
test al, al
jne 0x420a32
test esi, esi
je 0x420a32
lea ecx, [esi - 4]
test ecx, ecx
je 0x420a32
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x420a69
push dword [ebp - 0x80]
mov edx, dword [edi + 0xc]
push ecx
call fcn.004251c0
push dword [edi + 8]
call fcn.00426468
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.00426319
mov esp, ebp
pop ebp
ret