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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x55e0a0]
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 0x46c7e4
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x46cd07
push dword [ebx + 0x1d8]
lea edi, [ebx + 0x1d8]
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c812
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x46cd07
push edi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46c824
call fcn.00461320
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x28]
test al, 4
je 0x46c861
test eax, 0x300
mov eax, dword [ebp + 0x2c]
je 0x46c844
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 0x46c873
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.00468f80
test byte [ebp + 0x4c], 0x20
je 0x46c89f
lea eax, [ebp - 0xd8]
mov ecx, ebx
push eax
call fcn.00468f00
mov ecx, eax
jmp 0x46c8b7
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.0046a350
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 0x46ca41
call fcn.0045ba20
push dword [ebp - 0x50]
mov ecx, eax
call fcn.0045af90
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.00470600
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x46ca3e
test esi, esi
je 0x46ca3e
cmp byte [esi], 0
je 0x46ca3e
call fcn.00470600
push esi
mov ecx, eax
call fcn.0046f1e0
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.0046f970
mov esi, dword [ebp - 0x9c]
lea ecx, [ebx + 0xb0]
cmp esi, dword [ecx]
jne 0x46c9a6
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.0046e930
add esp, 4
mov ecx, eax
call fcn.00403bd0
jmp 0x46ca31
sub esp, 8
mov ecx, esp
push 0x54dc18
call fcn.0040f920
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.0040f960
push ecx
xor edx, edx
lea ecx, [ebp - 0xb8]
call fcn.004373f0
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.00479b80
mov ecx, dword [ebp - 0xb4]
add esp, 8
cmp eax, ecx
jne 0x46ca26
sub ecx, dword [ebp - 0xb8]
test ecx, 0xfffffff8
je 0x46ca1b
push 0x2c
lea ecx, [esi + 0xc]
call fcn.00416a50
push dword [ebp - 0x40]
lea ecx, [esi + 0xc]
call fcn.00403cb0
lea ecx, [ebp - 0xb8]
call fcn.00437890
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 0x46ca6a
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.0048eba0
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 0x46cbc0
mov ecx, dword [ebp - 0x84]
lea eax, [ebx + 4]
mov byte [ebp - 0x35], 0
test ecx, ecx
je 0x46caa9
lea eax, [ebp - 0x90]
push eax
call fcn.00469690
mov ecx, eax
mov dword [ebp - 0x40], ecx
jmp 0x46cac9
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.0046b430
mov ecx, eax
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x46cb18
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.00491430
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x154]
test al, 8
je 0x46cb5a
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.0046cd20
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419060
lea ecx, [ebp - 0x34]
call fcn.00403b80
cmp byte [ebp - 0x35], 0
je 0x46cb6a
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x46cbc0
cmp dword [0x5624b8], 2
jg 0x46cba8
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.00427460
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.00413230
add esp, 8
mov eax, dword [ebp - 0x3c]
test al, 4
je 0x46cbc3
and eax, 0xfffffffb
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x3c], eax
call fcn.004276c0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
cmp dword [ebx + 0x138], ecx
jne 0x46cc53
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
test al, 0x20
je 0x46cbef
lea ecx, [ebp - 0x238]
call fcn.004276c0
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x54]
lea ecx, [ebx + 0x13c]
call fcn.00432020
mov ecx, dword [ebp - 0x48]
mov bl, al
add ecx, 0x130
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040a840
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x78]
test bl, bl
je 0x46cc34
test esi, esi
je 0x46cc50
push esi
call dword [ebp - 0x74]
add esp, 4
test esi, esi
je 0x46cc50
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x46cc50
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 0x46cc9b
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x46cc9b
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 0x46ccba
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.00469810
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 0x46cce2
push dword [ebp - 0x1c]
call fcn.004daf7e
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 0x46cd07
call fcn.00461320
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret 0x48