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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x54e0a0]
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 0x45c4b4
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x45c9d7
push dword [ebx + 0x1d8]
lea edi, [ebx + 0x1d8]
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45c4e2
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x45c9d7
push edi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x45c4f4
call fcn.00450f80
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x28]
test al, 4
je 0x45c531
test eax, 0x300
mov eax, dword [ebp + 0x2c]
je 0x45c514
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 0x45c543
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.00458c50
test byte [ebp + 0x4c], 0x20
je 0x45c56f
lea eax, [ebp - 0xd8]
mov ecx, ebx
push eax
call fcn.00458bd0
mov ecx, eax
jmp 0x45c587
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.0045a020
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 0x45c711
call fcn.004495b0
push dword [ebp - 0x50]
mov ecx, eax
call fcn.00448b20
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.004602e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x45c70e
test esi, esi
je 0x45c70e
cmp byte [esi], 0
je 0x45c70e
call fcn.004602e0
push esi
mov ecx, eax
call fcn.0045eeb0
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.0045f640
mov esi, dword [ebp - 0x9c]
lea ecx, [ebx + 0xb0]
cmp esi, dword [ecx]
jne 0x45c676
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.0045e600
add esp, 4
mov ecx, eax
call fcn.00403b60
jmp 0x45c701
sub esp, 8
mov ecx, esp
push 0x53e458
call fcn.00410380
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.004103c0
push ecx
xor edx, edx
lea ecx, [ebp - 0xb8]
call fcn.0042c170
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.00469890
mov ecx, dword [ebp - 0xb4]
add esp, 8
cmp eax, ecx
jne 0x45c6f6
sub ecx, dword [ebp - 0xb8]
test ecx, 0xfffffff8
je 0x45c6eb
push 0x2c
lea ecx, [esi + 0xc]
call fcn.0040d7b0
push dword [ebp - 0x40]
lea ecx, [esi + 0xc]
call fcn.00403c40
lea ecx, [ebp - 0xb8]
call fcn.0042c610
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 0x45c73a
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.0047d200
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 0x45c890
mov ecx, dword [ebp - 0x84]
lea eax, [ebx + 4]
mov byte [ebp - 0x35], 0
test ecx, ecx
je 0x45c779
lea eax, [ebp - 0x90]
push eax
call fcn.00459360
mov ecx, eax
mov dword [ebp - 0x40], ecx
jmp 0x45c799
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.0045b100
mov ecx, eax
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x45c7e8
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.0047fa90
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x154]
test al, 8
je 0x45c82a
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.0045c9f0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004102d0
lea ecx, [ebp - 0x34]
call fcn.00403b10
cmp byte [ebp - 0x35], 0
je 0x45c83a
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x45c890
cmp dword [0x552334], 2
jg 0x45c878
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.0041f890
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.0040e220
add esp, 8
mov eax, dword [ebp - 0x3c]
test al, 4
je 0x45c893
and eax, 0xfffffffb
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x3c], eax
call fcn.0041faf0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
cmp dword [ebx + 0x138], ecx
jne 0x45c923
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
test al, 0x20
je 0x45c8bf
lea ecx, [ebp - 0x238]
call fcn.0041faf0
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x54]
lea ecx, [ebx + 0x13c]
call fcn.00429470
mov ecx, dword [ebp - 0x48]
mov bl, al
add ecx, 0x130
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040a7a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x78]
test bl, bl
je 0x45c904
test esi, esi
je 0x45c920
push esi
call dword [ebp - 0x74]
add esp, 4
test esi, esi
je 0x45c920
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x45c920
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 0x45c96b
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x45c96b
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 0x45c98a
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.004594e0
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 0x45c9b2
push dword [ebp - 0x1c]
call fcn.004cdb8c
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 0x45c9d7
call fcn.00450f80
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 0x48