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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x57a120]
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 0x4752c4
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x4757e7
push dword [ebx + 0x1d8]
lea edi, [ebx + 0x1d8]
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4752f2
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x4757e7
push edi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x475304
call fcn.00469e00
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x28]
test al, 4
je 0x475341
test eax, 0x300
mov eax, dword [ebp + 0x2c]
je 0x475324
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 0x475353
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.00471a60
test byte [ebp + 0x4c], 0x20
je 0x47537f
lea eax, [ebp - 0xd8]
mov ecx, ebx
push eax
call fcn.004719e0
mov ecx, eax
jmp 0x475397
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.00472e30
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 0x475521
call fcn.00464510
push dword [ebp - 0x50]
mov ecx, eax
call fcn.00463a80
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.004790e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x47551e
test esi, esi
je 0x47551e
cmp byte [esi], 0
je 0x47551e
call fcn.004790e0
push esi
mov ecx, eax
call fcn.00477cc0
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.00478450
mov esi, dword [ebp - 0x9c]
lea ecx, [ebx + 0xb0]
cmp esi, dword [ecx]
jne 0x475486
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.00477410
add esp, 4
mov ecx, eax
call fcn.00404c30
jmp 0x475511
sub esp, 8
mov ecx, esp
push 0x566180
call fcn.00410990
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.004109d0
push ecx
xor edx, edx
lea ecx, [ebp - 0xb8]
call fcn.0043f730
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.00482640
mov ecx, dword [ebp - 0xb4]
add esp, 8
cmp eax, ecx
jne 0x475506
sub ecx, dword [ebp - 0xb8]
test ecx, 0xfffffff8
je 0x4754fb
push 0x2c
lea ecx, [esi + 0xc]
call fcn.0041c530
push dword [ebp - 0x40]
lea ecx, [esi + 0xc]
call fcn.00404d10
lea ecx, [ebp - 0xb8]
call fcn.0043fbb0
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 0x47554a
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.00493330
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 0x4756a0
mov ecx, dword [ebp - 0x84]
lea eax, [ebx + 4]
mov byte [ebp - 0x35], 0
test ecx, ecx
je 0x475589
lea eax, [ebp - 0x90]
push eax
call fcn.00472170
mov ecx, eax
mov dword [ebp - 0x40], ecx
jmp 0x4755a9
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.00473f10
mov ecx, eax
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x4755f8
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.00495bc0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x154]
test al, 8
je 0x47563a
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.00475800
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041e7d0
lea ecx, [ebp - 0x34]
call fcn.00404be0
cmp byte [ebp - 0x35], 0
je 0x47564a
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x4756a0
cmp dword [0x57f490], 2
jg 0x475688
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.0042c540
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.00417750
add esp, 8
mov eax, dword [ebp - 0x3c]
test al, 4
je 0x4756a3
and eax, 0xfffffffb
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x3c], eax
call fcn.0042c7a0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
cmp dword [ebx + 0x138], ecx
jne 0x475733
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
test al, 0x20
je 0x4756cf
lea ecx, [ebp - 0x238]
call fcn.0042c7a0
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x54]
lea ecx, [ebx + 0x13c]
call fcn.0043a360
mov ecx, dword [ebp - 0x48]
mov bl, al
add ecx, 0x130
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040b8a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x78]
test bl, bl
je 0x475714
test esi, esi
je 0x475730
push esi
call dword [ebp - 0x74]
add esp, 4
test esi, esi
je 0x475730
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x475730
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 0x47577b
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x47577b
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 0x47579a
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.004722f0
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 0x4757c2
push dword [ebp - 0x1c]
call fcn.004f2e36
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 0x4757e7
call fcn.00469e00
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 0x48