Function at 0x4638d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov edi, ecx
mov eax, dword [0x511014]
xor eax, ebp
mov dword [esi + 0x40], eax
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x15], 0
mov dword [esi + 0x19], 0
mov eax, dword [0x526230]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x463b89
push dword [0x514c54]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x463abf
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0x11e1a300
mov ebx, edi
lea edi, [esi + 0x2c]
push 0x1db
push str....._base_threading_thread_local_storage.cc
push 0x50535a
push edi
call fcn.00454af0
add esp, 4
movsd xmm0, qword [esi + 0x20]
movsd qword [esp + 4], xmm0
mov dword [esp], edi
mov edi, ebx
call fcn.004be150
add esp, 0xc
mov eax, dword [0x526230]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x463bd5
push dword [0x514c54]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x463b7f
mov ecx, dword [0x526228]
lea edx, [esi + 0x10]
mov dword [eax + ecx*8], edx
mov ecx, dword [0x52622c]
mov edx, dword [0x526228]
mov dword [eax + edx*8 + 4], ecx
mov al, 1
mov byte [esi + 0x1c], al
mov eax, 1
lock xadd dword [edi + 4], eax
test eax, eax
js 0x463b15
shr eax, 0x1e
and eax, 1
lea ebx, [ebp + 8]
lea ecx, [edi + 4]
cmp eax, 1
jne 0x463b1f
test ecx, ecx
je 0x463b73
mov dword [esi + 4], esp
mov ecx, dword [edi + 0x10]
push eax
sub esp, 0x34
mov eax, esp
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx], 0
movups xmm0, xmmword [ebx + 4]
movups xmmword [eax + 4], xmm0
movups xmm0, xmmword [ebx + 0x14]
movups xmmword [eax + 0x14], xmm0
movsd xmm0, qword [ebx + 0x24]
movsd qword [eax + 0x24], xmm0
mov edx, dword [ebx + 0x2c]
mov dword [eax + 0x2c], edx
mov dword [ebx + 0x2c], 0
mov edx, dword [ebx + 0x30]
mov dword [eax + 0x30], edx
mov dword [ebx + 0x30], 0
mov edx, dword [ebx + 0x34]
mov dword [eax + 0x34], edx
call fcn.00463d90
mov esp, dword [esi + 4]
mov eax, 0xffffffff
lock xadd dword [edi + 4], eax
and eax, 0xbfffffff
mov cl, 1
mov dword [esi + 4], ecx
cmp eax, 0x80000001
je 0x463c21
lea ecx, [esi + 0x10]
call fcn.00463e90
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x463aef
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x463b5b
mov edi, dword [ebx]
test edi, edi
jne 0x463aff
mov ecx, dword [esi + 0x40]
xor ecx, ebp
call fcn.00496ce3
mov eax, dword [esi + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x38
and eax, 0xfffffffc
je 0x46398b
mov ecx, dword [0x526228]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x52622c]
jne 0x46398b
cmp dword [eax + ecx*8], 0
je 0x46398b
xor eax, eax
jmp 0x4639df
lock dec dword [eax]
jne 0x463a97
push eax
call fcn.00494aa1
add esp, 4
jmp 0x463a97
lock dec dword [edi]
jne 0x463aa8
mov ecx, dword [edi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
jmp 0x463aa8
mov eax, 2
jmp 0x4639fa
cmp eax, 2
jne 0x463b73
xor eax, eax
dec eax
lock xadd dword [ecx], eax
and eax, 0xbfffffff
cmp eax, 0x80000001
jne 0x463b73
add edi, 8
test byte [0x513224], 0x19
jne 0x463cdf
mov dword [esi + 4], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x463a88
lock dec dword [eax + 4]
jne 0x463aa2
push eax
call fcn.0046f8d0
add esp, 4
jmp 0x463aa2
mov dword [esi + 4], 0
jmp 0x463a88
call fcn.004048c0
jmp 0x4639c1
push 0x526230
call fcn.00494ba0
add esp, 4
cmp dword [0x526230], 0xffffffff
jne 0x46392e
mov dword [0x52622c], 0
mov dword [0x526228], 0xffffffff
mov ecx, 0x526228
push 0
call fcn.00404c70
push 0x526230
call fcn.00495b95
add esp, 4
jmp 0x46392e
push 0x526230
call fcn.00494ba0
add esp, 4
cmp dword [0x526230], 0xffffffff
jne 0x4639ac
mov dword [0x52622c], 0
mov dword [0x526228], 0xffffffff
mov ecx, 0x526228
push 0
call fcn.00404c70
push 0x526230
call fcn.00495b95
add esp, 4
jmp 0x4639ac
add edi, 8
mov al, 1
mov dword [esi + 4], eax
test byte [0x513224], 0x19
je 0x463b4e
mov eax, dword [0x515c3c]
mov dword [esi + 8], eax
mov eax, dword [0x515c38]
xor eax, edi
mov dword [esi + 0xc], eax
lea eax, [esi + 0x2c]
mov dword [eax + 0xc], 0x401200
mov dword [eax + 0x10], 0x50510c
push 8
call fcn.00494aa6
add esp, 4
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
lea ecx, [esi + 0x2c]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
sub esp, 0x1c
movsd xmm0, qword [esi + 0x20]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], 0x502e28
mov dword [esp + 8], str.WaitableEvent::Signal
mov dword [esp + 4], 0x513224
mov dword [esp], 0x49
call section..text
add esp, 0x1c
lea eax, [esi + 0x2c]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x463b4e
mov eax, dword [esi + 0x30]
mov dword [esi + 8], eax
call dword [section..00cfg]
push dword [esi + 8]
call ecx
add esp, 4
jmp 0x463b4e
mov eax, dword [0x515c3c]
mov dword [esi + 4], eax
mov eax, edi
mov edi, dword [0x515c38]
mov dword [esi + 8], eax
xor edi, eax
lea eax, [esi + 0x2c]
mov dword [eax + 0xc], 0x401200
mov dword [eax + 0x10], 0x50510c
push 8
call fcn.00494aa6
add esp, 4
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [eax], edi
lea ecx, [esi + 0x2c]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
sub esp, 0x1c
movsd xmm0, qword [esi + 0x20]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0x18], ecx
mov edi, ecx
mov dword [esp + 0xc], 0x502e28
mov dword [esp + 8], str.WaitableEvent::Signal
mov dword [esp + 4], 0x513224
mov dword [esp], 0x49
call section..text
add esp, 0x1c
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x463d79
mov edi, dword [esi + 0x30]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [esi + 4], 0
mov edi, dword [esi + 8]
jmp 0x463b4e