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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5520a0]
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 0x45c594
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x45cab7
push dword [ebx + 0x1d8]
lea edi, [ebx + 0x1d8]
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45c5c2
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x45cab7
push edi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x45c5d4
call fcn.00451060
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x28]
test al, 4
je 0x45c611
test eax, 0x300
mov eax, dword [ebp + 0x2c]
je 0x45c5f4
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 0x45c623
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.00458d30
test byte [ebp + 0x4c], 0x20
je 0x45c64f
lea eax, [ebp - 0xd8]
mov ecx, ebx
push eax
call fcn.00458cb0
mov ecx, eax
jmp 0x45c667
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.0045a100
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 0x45c7f1
call fcn.00449680
push dword [ebp - 0x50]
mov ecx, eax
call fcn.00448bf0
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.004603c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x45c7ee
test esi, esi
je 0x45c7ee
cmp byte [esi], 0
je 0x45c7ee
call fcn.004603c0
push esi
mov ecx, eax
call fcn.0045ef90
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.0045f720
mov esi, dword [ebp - 0x9c]
lea ecx, [ebx + 0xb0]
cmp esi, dword [ecx]
jne 0x45c756
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.0045e6e0
add esp, 4
mov ecx, eax
call fcn.00403b70
jmp 0x45c7e1
sub esp, 8
mov ecx, esp
push 0x541728
call fcn.00410430
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.00410470
push ecx
xor edx, edx
lea ecx, [ebp - 0xb8]
call fcn.0042c240
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.00469970
mov ecx, dword [ebp - 0xb4]
add esp, 8
cmp eax, ecx
jne 0x45c7d6
sub ecx, dword [ebp - 0xb8]
test ecx, 0xfffffff8
je 0x45c7cb
push 0x2c
lea ecx, [esi + 0xc]
call fcn.0040d870
push dword [ebp - 0x40]
lea ecx, [esi + 0xc]
call fcn.00403c50
lea ecx, [ebp - 0xb8]
call fcn.0042c6e0
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 0x45c81a
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.0047d310
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 0x45c970
mov ecx, dword [ebp - 0x84]
lea eax, [ebx + 4]
mov byte [ebp - 0x35], 0
test ecx, ecx
je 0x45c859
lea eax, [ebp - 0x90]
push eax
call fcn.00459440
mov ecx, eax
mov dword [ebp - 0x40], ecx
jmp 0x45c879
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.0045b1e0
mov ecx, eax
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x45c8c8
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.0047fba0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x154]
test al, 8
je 0x45c90a
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.0045cad0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410380
lea ecx, [ebp - 0x34]
call fcn.00403b20
cmp byte [ebp - 0x35], 0
je 0x45c91a
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x45c970
cmp dword [0x556354], 2
jg 0x45c958
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.0041f940
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.0040e2e0
add esp, 8
mov eax, dword [ebp - 0x3c]
test al, 4
je 0x45c973
and eax, 0xfffffffb
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x3c], eax
call fcn.0041fba0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
cmp dword [ebx + 0x138], ecx
jne 0x45ca03
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
test al, 0x20
je 0x45c99f
lea ecx, [ebp - 0x238]
call fcn.0041fba0
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x54]
lea ecx, [ebx + 0x13c]
call fcn.00429540
mov ecx, dword [ebp - 0x48]
mov bl, al
add ecx, 0x130
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040a7e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x78]
test bl, bl
je 0x45c9e4
test esi, esi
je 0x45ca00
push esi
call dword [ebp - 0x74]
add esp, 4
test esi, esi
je 0x45ca00
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x45ca00
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 0x45ca4b
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x45ca4b
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 0x45ca6a
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.004595c0
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 0x45ca92
push dword [ebp - 0x1c]
call fcn.004d0550
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 0x45cab7
call fcn.00451060
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 0x48