Function at 0x46b590
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 0x46b6cc
push 0x20
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x46b5e3
mov dword [eax + 4], ebx
mov dword [eax], 0x54d8dc
mov dword [eax + 0x1c], 0xf
mov dword [eax + 0x18], ebx
mov byte [eax + 8], bl
jmp 0x46b5e5
xor eax, eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x46b5f9
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x46b619
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 [0x55f498], 1
jg 0x46b67b
mov ebx, 1
lea ecx, [esp + 0x70]
push ebx
push 2
mov dword [esp + 0x70], ebx
call fcn.00407db0
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.00427870
mov edx, str.Ignored_TraceLog::Flush_called_when_tracing_is_enabled
lea ecx, [esp + 0x70]
call fcn.00406f20
test bl, 1
je 0x46b689
lea ecx, [esp + 0x68]
call fcn.00427630
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46bb27
lea ecx, [eax + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46bb27
test ecx, ecx
je 0x46bb27
add ecx, 0xfffffffc
je 0x46bb27
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.00460420
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b72e
mov ebx, 4
call fcn.00460420
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x46b728
mov ecx, 1
add eax, ebx
lock xadd dword [eax], ecx
lea eax, [esp + 0x20]
jmp 0x46b73f
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 0x46b77e
lea ecx, [eax + 4]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46b77e
test ecx, ecx
je 0x46b774
add ecx, 0xfffffffc
jmp 0x46b776
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
or edx, 0xffffffff
test bl, 8
je 0x46b7af
mov eax, dword [esp + 0x18]
and ebx, 0xfffffff7
test eax, eax
je 0x46b7af
lea ecx, [eax + 4]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46b7af
test ecx, ecx
je 0x46b7a8
add ecx, 0xfffffffc
jmp 0x46b7aa
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, 4
je 0x46b7e1
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffb
test eax, eax
je 0x46b7e1
lea ecx, [eax + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46b7e1
test ecx, ecx
je 0x46b7da
add ecx, 0xfffffffc
jmp 0x46b7dc
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, 0x10
je 0x46b7f5
lea ecx, [esp + 0x1c8]
and ebx, 0xffffffef
call fcn.00427630
mov edx, dword [ebp + 8]
mov edx, dword [edx]
test edx, edx
je 0x46b807
mov eax, 1
lock xadd dword [edx], eax
mov ecx, dword [esi + 0x204]
mov dword [esi + 0x204], edx
test ecx, ecx
je 0x46b82f
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46b82f
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 0x46b867
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 0x46b8a4
mov eax, dword [esi + 0x1dc]
mov esi, dword [eax]
cmp esi, eax
je 0x46b8a0
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x2c]
add eax, 0xbc
push eax
call fcn.0046f330
mov esi, dword [esi]
cmp esi, dword [edi + 0x1dc]
jne 0x46b880
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 0x46bb30
xor edi, edi
test eax, eax
je 0x46b9ad
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
push 0x1c
call fcn.004d9e06
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46b90d
mov eax, dword [esp + 0x1c]
mov dword [ecx], 0
mov dword [ecx + 4], 0x476ea0
mov dword [ecx + 8], 0x46c0d0
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov byte [ecx + 0x18], al
jmp 0x46b90f
xor ecx, ecx
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x46b920
mov eax, 1
lock xadd dword [ecx], eax
mov dword [esp + 0x3c], 0
test bl, 0x40
je 0x46b93c
lea ecx, [esp + 0x328]
and ebx, 0xffffffbf
call fcn.00427630
mov dword [esp + 0x3c], 0x4792a0
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.004169c0
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 0x46b9a2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46b9a2
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
inc edi
cmp edi, dword [esp + 0xc]
jb 0x46b8d7
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.00432430
mov edi, dword [esp + 0x1c]
add esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
test ebx, 0x200
je 0x46b9ff
lea ecx, [esp + 0x118]
and ebx, 0xfffffdff
call fcn.00427630
test ebx, 0x400
je 0x46ba19
lea ecx, [esp + 0x278]
and ebx, 0xfffffbff
call fcn.00427630
test edi, edi
je 0x46ba3e
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x10], SysStringLen
cmp edi, 1
jne 0x46ba3e
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], SysStringLen
push 0x1c
call fcn.004d9e06
add esp, 4
test eax, eax
je 0x46ba72
mov ecx, dword [esp + 0x1c]
mov dword [eax], 0
mov dword [eax + 4], 0x476ea0
mov dword [eax + 8], 0x46c1c0
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov byte [eax + 0x18], cl
jmp 0x46ba74
xor eax, eax
mov dword [esp + 0x40], eax
test eax, eax
je 0x46ba85
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x44], 0
test ebx, 0x800
je 0x46baa1
lea ecx, [esp + 0x3d8]
call fcn.00427630
mov dword [esp + 0x44], 0x4792a0
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.004169c0
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 0x46bb04
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x46bb04
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 0x46bb27
push dword [esp + 0xc]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.00478040
push ebx
call fcn.004d8fe0
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.0046bd70
jmp 0x46bb08