Function at 0x46c690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x74], al
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0xa8], eax
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
cmp byte [ecx], al
jne 0x46c714
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x46cc37
push dword [ebx + 0x1d8]
lea edi, [ebx + 0x1d8]
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c742
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x46cc37
push edi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46c754
call fcn.00461250
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x28]
test al, 4
je 0x46c791
test eax, 0x300
mov eax, dword [ebp + 0x2c]
je 0x46c774
xor esi, dword [ebx + 0x118]
xor eax, dword [ebx + 0x11c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
xor eax, dword [ebx + 0x118]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [ebx + 0x11c]
mov dword [ebp - 0x64], eax
jmp 0x46c7a3
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x44], esi
push eax
mov ecx, ebx
call fcn.00468eb0
test byte [ebp + 0x4c], 0x20
je 0x46c7cf
lea eax, [ebp - 0xd8]
mov ecx, ebx
push eax
call fcn.00468e30
mov ecx, eax
jmp 0x46c7e7
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ecx]
xorps xmm0, xmm0
mov dword [ebp - 0xc8], eax
mov eax, dword [ecx + 4]
mov ecx, ebx
mov dword [ebp - 0xc4], eax
movlpd qword [ebp - 0x98], xmm0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xbc], eax
call fcn.0046a280
push dword [ebx + 0x1d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x50], eax
jne 0x46c971
call fcn.0045b950
push dword [ebp - 0x50]
mov ecx, eax
call fcn.0045aec0
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.00470530
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x46c96e
test esi, esi
je 0x46c96e
cmp byte [esi], 0
je 0x46c96e
call fcn.00470530
push esi
mov ecx, eax
call fcn.0046f110
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebx + 0xb0]
call fcn.0046f8a0
mov esi, dword [ebp - 0x9c]
lea ecx, [ebx + 0xb0]
cmp esi, dword [ecx]
jne 0x46c8d6
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.0046e860
add esp, 4
mov ecx, eax
call fcn.00403bc0
jmp 0x46c961
sub esp, 8
mov ecx, esp
push 0x54b9f8
call fcn.0040f8a0
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.0040f8e0
push ecx
xor edx, edx
lea ecx, [ebp - 0xb8]
call fcn.00437340
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0xb8]
add esp, 0x14
mov byte [ebp - 0xac], 0
push dword [ebp - 0xac]
push eax
call fcn.00479ab0
mov ecx, dword [ebp - 0xb4]
add esp, 8
cmp eax, ecx
jne 0x46c956
sub ecx, dword [ebp - 0xb8]
test ecx, 0xfffffff8
je 0x46c94b
push 0x2c
lea ecx, [esi + 0xc]
call fcn.004169d0
push dword [ebp - 0x40]
lea ecx, [esi + 0xc]
call fcn.00403ca0
lea ecx, [ebp - 0xb8]
call fcn.004377e0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
test byte [eax], 8
je 0x46c99a
push ecx
push dword [ebp - 0x68]
mov cl, byte [ebp - 0x5c]
push dword [ebp - 0x6c]
push dword [ebp - 0x58]
push dword [ebp + 0x38]
sub esp, 8
push dword [ebp - 0x54]
call fcn.0048eab0
mov eax, dword [ebp - 0x4c]
add esp, 0x20
test byte [eax], 3
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
je 0x46caf0
mov ecx, dword [ebp - 0x84]
lea eax, [ebx + 4]
mov byte [ebp - 0x35], 0
test ecx, ecx
je 0x46c9d9
lea eax, [ebp - 0x90]
push eax
call fcn.004695c0
mov ecx, eax
mov dword [ebp - 0x40], ecx
jmp 0x46c9f9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [ebp - 0x90]
mov byte [ebp - 0x35], 1
push eax
mov ecx, ebx
call fcn.0046b360
mov ecx, eax
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x46ca48
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp + 0x4c]
push dword [ebp - 0xa8]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x58]
push dword [ebp + 0x38]
push dword [ebp - 0x60]
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 0x64]
push dword [ebp - 0x70]
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
push dword [ebp - 0x74]
push dword [ebp - 0x50]
call fcn.00491340
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x154]
test al, 8
je 0x46ca8a
push ecx
mov ecx, dword [ebp - 0x5c]
cmp cl, 0x58
push dword [ebp - 0x88]
movzx eax, cl
mov ecx, 0x42
cmove eax, ecx
mov ecx, ebx
movzx eax, al
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0046cc50
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418fe0
lea ecx, [ebp - 0x34]
call fcn.00403b70
cmp byte [ebp - 0x35], 0
je 0x46ca9a
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x46caf0
cmp dword [0x55f498], 2
jg 0x46cad8
push 2
push 0x548
mov eax, 4
lea ecx, [ebp - 0x188]
push str.d:work_codeliebaocodesliebao_46_src_import_base_trace_event_trace_log.cc
mov dword [ebp - 0x3c], eax
call fcn.004273d0
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.004131b0
add esp, 8
mov eax, dword [ebp - 0x3c]
test al, 4
je 0x46caf3
and eax, 0xfffffffb
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x3c], eax
call fcn.00427630
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
cmp dword [ebx + 0x138], ecx
jne 0x46cb83
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
test al, 0x20
je 0x46cb1f
lea ecx, [ebp - 0x238]
call fcn.00427630
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x54]
lea ecx, [ebx + 0x13c]
call fcn.00431f70
mov ecx, dword [ebp - 0x48]
mov bl, al
add ecx, 0x130
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040a830
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x78]
test bl, bl
je 0x46cb64
test esi, esi
je 0x46cb80
push esi
call dword [ebp - 0x74]
add esp, 4
test esi, esi
je 0x46cb80
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x46cb80
mov eax, dword [esi + 4]
push esi
call eax
add esp, 4
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
test byte [eax], 4
je 0x46cbcb
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x46cbcb
push dword [ebp + 0x4c]
mov edx, dword [ebp - 0x5c]
cmp dl, 0x58
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x58]
push dword [ebp + 0x38]
push dword [ebp - 0x64]
push dword [ebp - 0x70]
push dword [ebp - 0x54]
push eax
movzx eax, dl
mov edx, 0x42
cmove eax, edx
movzx eax, al
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call ecx
add esp, 0x30
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x46cbea
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.00469740
cmp dword [ebp - 8], 0x10
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x90]
mov dword [esi], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 4], eax
jb 0x46cc12
push dword [ebp - 0x1c]
call fcn.004d8fe0
add esp, 4
push 0
push dword [edi]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46cc37
call fcn.00461250
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 0x48