Function at 0x4f4690
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572ab9
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x5c524c]
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 - 0x48], edi
mov al, byte [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov byte [ebp - 0x41], al
mov byte [ebp - 0x88], al
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], eax
cmp byte [ecx], al
jne 0x4f4733
mov ecx, eax
mov dword [edx], esi
mov dword [edx + 4], ecx
mov eax, edx
jmp 0x4f4f88
push dword [edi + 0x1e4]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [edi + 0x1e4]
call eax
test eax, eax
je 0x4f4761
mov esi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x70]
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4f4f86
push esi
push dword [esi]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 4], 0xffffffff
call fcn.00501190
add esp, 8
test byte [ebp + 0x3c], 4
mov dword [ebp - 4], 3
je 0x4f47a0
mov eax, dword [ebp + 0x18]
xor eax, dword [edi + 0x130]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [edi + 0x134]
mov dword [ebp - 0x78], eax
jmp 0x4f47ac
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x9c]
xorps xmm0, xmm0
push dword [edi + 0x1e0]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
movlpd qword [ebp - 0xa4], xmm0
mov eax, dword [ecx]
sub eax, dword [edi + 0x140]
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 4]
sbb eax, dword [edi + 0x144]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], 0
call esi
test eax, eax
jne 0x4f4948
mov ecx, 0x5d1b28
call fcn.004f8de0
push dword [eax]
call esi
test eax, eax
je 0x4f4948
push dword [edi + 0x1dc]
call esi
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
je 0x4f4830
mov ecx, dword [esi + 0x20]
cmp ecx, dword [edi + 0x220]
je 0x4f4942
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
push 0x28
call fcn.004747af
mov esi, eax
mov dword [ebp - 0x58], eax
add esp, 4
mov dword [ebp - 0xc0], esi
test esi, esi
je 0x4f492a
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, 0x5d1b28
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x220]
mov byte [ebp - 4], 0xa
mov dword [esi + 0x20], eax
call fcn.004f8de0
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov ecx, dword [eax + 0x54]
lea edx, [eax + 0x50]
mov eax, dword [edx]
cmp eax, ecx
je 0x4f48d8
nop word [eax + eax]
cmp dword [eax], esi
je 0x4f48cb
add eax, 4
cmp eax, ecx
jne 0x4f48c0
cmp eax, ecx
je 0x4f48d8
mov dword [ebp - 4], 0xa
jmp 0x4f48f4
mov eax, dword [edx + 8]
cmp eax, dword [edx + 4]
je 0x4f48e8
mov dword [ecx], esi
add dword [edx + 4], 4
jmp 0x4f48f4
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, edx
call fcn.004ea270
push edi
mov dword [ebp - 0xac], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xac]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [edi + 0x1e8]
call fcn.004eb2c0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4f492f
xor esi, esi
mov dword [ebp - 0x58], esi
push esi
push dword [edi + 0x1dc]
mov byte [ebp - 4], 3
call fcn.00501190
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jne 0x4f4b7d
push ecx
call fcn.004fa7f0
mov ecx, eax
call fcn.004faa40
mov ecx, 0x5d24d4
mov dword [ebp - 0x40], eax
call fcn.004f8de0
push dword [eax]
call esi
mov esi, dword [ebp - 0x40]
cmp esi, eax
je 0x4f4b7d
test esi, esi
je 0x4f4b7d
cmp byte [esi], 0
je 0x4f4b7d
mov ecx, 0x5d24d4
call fcn.004f8de0
push esi
push dword [eax]
call fcn.00501190
add esp, 8
lea esi, [edi + 0x18]
mov dword [ebp - 0xc4], esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push ecx
lea ecx, [edi + 0xb8]
call fcn.005069e0
mov eax, dword [ebp - 0x54]
cmp eax, dword [edi + 0xc0]
jne 0x4f49ff
push dword [ebp - 0x40]
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0xb8]
call fcn.004f26e0
mov ecx, eax
call fcn.00476804
jmp 0x4f4b76
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edi, [eax + 0xc]
mov byte [ebp - 4], 0x10
push edi
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xbc], 0x57b4dc
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0x3c], edi
call fcn.004ee0d0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004e9790
mov edx, dword [ebp - 0x20]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], edx
cmp edx, eax
je 0x4f4b16
mov ecx, dword [ebp - 0x40]
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f4a80
sub ecx, edi
mov edi, dword [edx + 4]
cmp edi, ecx
jne 0x4f4af8
mov ecx, dword [edx]
mov edx, dword [ebp - 0x40]
sub edi, 4
jb 0x4f4ab1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4f4ab6
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4f4aa0
cmp edi, 0xfffffffc
je 0x4f4aea
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4f4ae3
cmp edi, 0xfffffffd
je 0x4f4aea
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4f4ae3
cmp edi, 0xfffffffe
je 0x4f4aea
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4f4ae3
cmp edi, 0xffffffff
je 0x4f4aea
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4f4aea
sbb eax, eax
or eax, 1
jmp 0x4f4aec
xor eax, eax
test eax, eax
sete al
test al, al
jne 0x4f4b0b
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x54], edx
cmp edx, eax
jne 0x4f4a78
jmp 0x4f4b13
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x54], eax
jne 0x4f4b31
mov edi, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x4f4b27
push 0x2c
mov ecx, edi
call fcn.0045e770
push dword [ebp - 0x40]
mov ecx, edi
call fcn.0047686f
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xf
test edx, edx
je 0x4f4b73
mov eax, dword [ebp - 0x18]
sub eax, edx
sar eax, 3
lea ecx, [eax*8]
mov eax, edx
cmp ecx, 0x1000
jb 0x4f4b69
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f4fa5
push ecx
push edx
call fcn.004747df
add esp, 8
mov edi, dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0x11
test byte [eax], 3
je 0x4f4d02
mov dword [ebp - 0xb4], edi
mov byte [ebp - 0xb0], 0
mov edi, dword [ebp - 0x58]
mov byte [ebp - 4], 0x12
test edi, edi
je 0x4f4bcc
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.004f44f0
mov esi, dword [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
jmp 0x4f4bef
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [ebp - 0x74]
mov byte [ebp - 0xb0], 1
push eax
mov ecx, esi
call fcn.004f3930
mov ecx, eax
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x4f4c3a
push dword [ebp + 0x3c]
push dword [ebp - 0x84]
push dword [ebp - 0x98]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp + 0x28]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x64]
push dword [ebp - 0x88]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x14]
call fcn.004fc6b0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x16c]
test al, 8
je 0x4f4c81
cmp byte [ebp - 0x41], 0x58
movzx eax, byte [ebp - 0x41]
push ecx
push dword [ebp - 0x9c]
mov ecx, 0x42
cmove eax, ecx
mov ecx, esi
movzx eax, al
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.004f7d00
push eax
lea ecx, [ebp - 0x38]
call fcn.00478d80
lea ecx, [ebp - 0xf4]
call fcn.00407770
cmp byte [ebp - 0xb0], 0
mov byte [ebp - 4], 0x11
je 0x4f4c95
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x28], 0
je 0x4f4d08
cmp dword [0x5d1b3c], 2
jg 0x4f4ce1
push 2
push 0x7cc
push str.d:code.aliyun.comcore_liblibschromium_basedebug_trace_event_impl.cc
lea ecx, [ebp - 0x1a4]
call fcn.004eec30
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x38]
push dword [ebp - 0x28]
cmovae ecx, dword [ebp - 0x38]
add eax, 8
push ecx
push eax
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x4c], 2
call fcn.004ed560
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], 0x11
test al, 2
je 0x4f4d08
and eax, 0xfffffffd
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x4c], eax
call fcn.004f14d0
jmp 0x4f4d08
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x64]
cmp dword [esi + 0x150], eax
jne 0x4f4e26
xorps xmm0, xmm0
movlpd qword [ebp - 0x94], xmm0
mov dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x40], eax
test al, 0x20
je 0x4f4d5b
and eax, 0xffffffdf
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], eax
call fcn.004f14d0
push esi
mov byte [ebp - 4], 0x18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x80]
lea eax, [esi + 0x154]
push eax
call fcn.0041f590
add esp, 8
mov byte [ebp - 0x4d], al
lea ecx, [esi + 0x148]
push ecx
lea ecx, [ebp - 0x94]
call fcn.004f1fe0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x4d], 0
mov esi, dword [ebp - 0x94]
je 0x4f4dae
test esi, esi
je 0x4f4dae
push esi
call dword [ebp - 0x90]
add esp, 4
mov byte [ebp - 4], 0x11
test esi, esi
je 0x4f4dd1
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x4f4dd1
test ecx, ecx
je 0x4f4dd1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x64]
test byte [eax], 4
je 0x4f4e2e
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4f4e1e
push dword [ebp + 0x3c]
cmp byte [ebp - 0x41], 0x58
mov edx, 0x42
push dword [ebp - 0x98]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp + 0x28]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push eax
movzx eax, byte [ebp - 0x41]
cmove eax, edx
movzx eax, al
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call ecx
add esp, 0x30
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
jmp 0x4f4e31
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
jmp 0x4f4dd4
mov eax, dword [ebp - 0x40]
test edi, edi
je 0x4f4f54
cmp byte [0x5d2474], 0
je 0x4f4f54
mov dword [ebp - 4], 0x11
test al, 0x40
je 0x4f4e62
and eax, 0xffffffbf
lea ecx, [ebp - 0x304]
mov dword [ebp - 0x40], eax
call fcn.004f14d0
inc dword [edi + 0x10]
lea eax, [ebp - 0xdc]
mov esi, dword [edi + 4]
push eax
call fcn.004fb4e0
add esp, 4
mov ecx, dword [eax]
sub ecx, dword [esi + 0x140]
mov eax, dword [eax + 4]
sbb eax, dword [esi + 0x144]
mov dword [ebp - 0x88], ecx
sub ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
sbb eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], eax
cmp ecx, 0xffffffff
jne 0x4f4eac
cmp eax, 0x7fffffff
je 0x4f4ebf
test eax, eax
jl 0x4f4f4e
jg 0x4f4ebf
cmp ecx, 0x32
jb 0x4f4f4e
push 0
mov ecx, edi
call fcn.004f44f0
mov esi, eax
test esi, esi
je 0x4f4f48
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.overhead
push 0x5d2474
push 0x58
push dword [ebp - 0xa0]
mov ecx, esi
push dword [ebp - 0xa4]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push eax
call fcn.004fc6b0
test dword [ebp - 0x40], 0x100
je 0x4f4f1e
lea ecx, [ebp - 0x3b4]
call fcn.004f14d0
mov eax, dword [ebp - 0x88]
sub eax, dword [esi]
mov ecx, dword [ebp - 0x84]
sbb ecx, dword [esi + 4]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
neg eax
mov dword [esi + 0x18], eax
adc ecx, 0
neg ecx
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
add dword [edi + 0x18], ecx
adc dword [edi + 0x1c], eax
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x74]
mov dword [esi], eax
mov eax, dword [ebp - 0x70]
mov dword [esi + 4], eax
call fcn.00407770
mov eax, dword [ebp - 0xa8]
push 0
mov dword [ebp - 4], 0x22
push dword [eax]
call fcn.00501190
add esp, 8
mov eax, esi
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.0047467d
mov esp, ebp
pop ebp
ret 0x38
call fcn.00522e79
int3