Function at 0x474140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov al, byte [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], ebx
push edi
mov dword [esp + 0x10], esi
mov byte [esi + 0x21c], al
cmp dword [esi + 0x34], ebx
je 0x47427c
push 0x20
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x474193
mov dword [eax + 4], ebx
mov dword [eax], 0x567f70
mov dword [eax + 0x1c], 0xf
mov dword [eax + 0x18], ebx
mov byte [eax + 8], bl
jmp 0x474195
xor eax, eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4741a9
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x4741c9
mov eax, dword [eax + 4]
lea edx, [esp + 0x17]
push edx
lea edx, [esp + 0x20]
mov byte [esp + 0x1b], bl
push edx
push ecx
call eax
add esp, 0xc
cmp dword [0x57f490], 1
jg 0x47422b
mov ebx, 1
lea ecx, [esp + 0x70]
push ebx
push 2
mov dword [esp + 0x70], ebx
call fcn.00408e20
mov dword [esp + 0x10c], str.d:work_codeliebaocodesliebao_46_src_import_base_trace_event_trace_log.cc
mov dword [esp + 0x110], 0x39b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x39b
push str.d:work_codeliebaocodesliebao_46_src_import_base_trace_event_trace_log.cc
lea ecx, [esp + 0x70]
mov dword [esp + 0x11c], eax
call fcn.0042c9e0
mov edx, str.Ignored_TraceLog::Flush_called_when_tracing_is_enabled
lea ecx, [esp + 0x70]
call fcn.00407f90
test bl, 1
je 0x474239
lea ecx, [esp + 0x68]
call fcn.0042c7a0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4746d7
lea ecx, [eax + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4746d7
test ecx, ecx
je 0x4746d7
add ecx, 0xfffffffc
je 0x4746d7
mov eax, dword [ecx]
push 1
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x218]
lea edi, [esi + 4]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00468fe0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4742de
mov ebx, 4
call fcn.00468fe0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4742d8
mov ecx, 1
add eax, ebx
lock xadd dword [eax], ecx
lea eax, [esp + 0x20]
jmp 0x4742ef
mov ebx, 8
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
mov ecx, dword [eax]
or edx, 0xffffffff
mov dword [eax], 0
mov eax, dword [esi + 0x20c]
mov dword [esi + 0x20c], ecx
test eax, eax
je 0x47432e
lea ecx, [eax + 4]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x47432e
test ecx, ecx
je 0x474324
add ecx, 0xfffffffc
jmp 0x474326
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
or edx, 0xffffffff
test bl, 8
je 0x47435f
mov eax, dword [esp + 0x18]
and ebx, 0xfffffff7
test eax, eax
je 0x47435f
lea ecx, [eax + 4]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x47435f
test ecx, ecx
je 0x474358
add ecx, 0xfffffffc
jmp 0x47435a
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, 4
je 0x474391
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffb
test eax, eax
je 0x474391
lea ecx, [eax + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x474391
test ecx, ecx
je 0x47438a
add ecx, 0xfffffffc
jmp 0x47438c
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, 0x10
je 0x4743a5
lea ecx, [esp + 0x1c8]
and ebx, 0xffffffef
call fcn.0042c7a0
mov edx, dword [ebp + 8]
mov edx, dword [edx]
test edx, edx
je 0x4743b7
mov eax, 1
lock xadd dword [edx], eax
mov ecx, dword [esi + 0x204]
mov dword [esi + 0x204], edx
test ecx, ecx
je 0x4743df
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4743df
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esi + 0x208], eax
cmp dword [esi + 0x1fc], 0
je 0x474417
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x1fc]
push ecx
mov edx, esp
mov dword [esi + 0x1fc], 0
mov dword [edx], eax
mov eax, dword [ecx]
push dword [esi + 0x200]
call dword [eax + 8]
cmp dword [esi + 0x1e0], 0
je 0x474454
mov eax, dword [esi + 0x1dc]
mov esi, dword [eax]
cmp esi, eax
je 0x474450
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x2c]
add eax, 0xbc
push eax
call fcn.00477ee0
mov esi, dword [esi]
cmp esi, dword [edi + 0x1dc]
jne 0x474430
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x30]
mov eax, edi
sub eax, dword [esp + 0x2c]
sar eax, 2
mov dword [esp + 0xc], eax
test eax, eax
je 0x4746e0
xor edi, edi
test eax, eax
je 0x47455d
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
push 0x1c
call fcn.004f3c8b
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4744bd
mov eax, dword [esp + 0x1c]
mov dword [ecx], 0
mov dword [ecx + 4], 0x47fa30
mov dword [ecx + 8], 0x474c80
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov byte [ecx + 0x18], al
jmp 0x4744bf
xor ecx, ecx
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x4744d0
mov eax, 1
lock xadd dword [ecx], eax
mov dword [esp + 0x3c], 0
test bl, 0x40
je 0x4744ec
lea ecx, [esp + 0x328]
and ebx, 0xffffffbf
call fcn.0042c7a0
mov dword [esp + 0x3c], 0x481e30
mov dword [esp + 0x48], str.base::trace_event::TraceLog::FlushInternal
mov dword [esp + 0x4c], str.d:work_codeliebaocodesliebao_46_src_import_base_trace_event_trace_log.cc
mov dword [esp + 0x50], 0x3bd
call fcn.0041c520
push dword [esp + 0x24]
mov dword [esp + 0x58], eax
lea edx, [esp + 0x3c]
mov eax, dword [esp + 0x30]
push dword [esp + 0x24]
push edx
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x54]
push edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x474552
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x474552
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
inc edi
cmp edi, dword [esp + 0xc]
jb 0x474487
mov eax, dword [esi + 0x20c]
lea ecx, [esp + 0xc]
push 0
push 0x3e8
push 0
push 0xbb8
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0
call fcn.0043a820
mov edi, dword [esp + 0x1c]
add esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
test ebx, 0x200
je 0x4745af
lea ecx, [esp + 0x118]
and ebx, 0xfffffdff
call fcn.0042c7a0
test ebx, 0x400
je 0x4745c9
lea ecx, [esp + 0x278]
and ebx, 0xfffffbff
call fcn.0042c7a0
test edi, edi
je 0x4745ee
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
cmp edi, 1
jne 0x4745ee
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0x80000000
push 0x1c
call fcn.004f3c8b
add esp, 4
test eax, eax
je 0x474622
mov ecx, dword [esp + 0x1c]
mov dword [eax], 0
mov dword [eax + 4], 0x47fa30
mov dword [eax + 8], 0x474d70
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov byte [eax + 0x18], cl
jmp 0x474624
xor eax, eax
mov dword [esp + 0x40], eax
test eax, eax
je 0x474635
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x44], 0
test ebx, 0x800
je 0x474651
lea ecx, [esp + 0x3d8]
call fcn.0042c7a0
mov dword [esp + 0x44], 0x481e30
mov dword [esp + 0x58], str.base::trace_event::TraceLog::FlushInternal
mov dword [esp + 0x5c], str.d:work_codeliebaocodesliebao_46_src_import_base_trace_event_trace_log.cc
mov dword [esp + 0x60], 0x3c1
call fcn.0041c520
push dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x44]
push dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x64]
push edx
call dword [eax]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4746b4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4746b4
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4746d7
push dword [esp + 0xc]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.00480bd0
push ebx
call fcn.004f2e36
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, esi
push dword [esp + 0x20]
call fcn.00474920
jmp 0x4746b8