Function at 0x474950
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8db5
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push esi
push edi
mov eax, dword [0x5f237c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
xor eax, eax
push 0x24
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0045a4df
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
or esi, 0xffffffff
mov dword [ebp - 4], 0
test edi, edi
je 0x474ac6
mov eax, dword [ebp - 0x24]
lea esi, [edi + 0x10]
xorps xmm0, xmm0
mov ecx, 0x5ffca0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], esi
movups xmmword [edi], xmm0
call fcn.004745e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov dword [esi], ecx
test ecx, ecx
je 0x4749fe
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [edi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea edx, [edi + 0x1c]
mov dword [ebp - 0x14], edx
mov dword [edx], 0
mov esi, dword [ebp - 0x1c]
mov dword [edx + 4], 0
mov esi, dword [esi]
test esi, esi
je 0x474a39
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov ecx, dword [edx]
mov dword [edx], esi
or esi, 0xffffffff
test ecx, ecx
je 0x474a6f
mov eax, esi
lea edx, [ecx + 4]
lock xadd dword [edx], eax
lea edx, [edi + 0x1c]
sub eax, 1
jne 0x474a6f
lea eax, [ecx + 4]
test eax, eax
mov eax, 0
cmove ecx, eax
test ecx, ecx
je 0x474a6f
mov eax, dword [ecx]
push 1
call dword [eax]
lea edx, [edi + 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
test edx, edx
je 0x474a8d
mov ecx, 1
lea eax, [edx + 4]
lock xadd dword [eax], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], edx
test ecx, ecx
je 0x474ab4
lea edx, [ecx + 4]
mov eax, esi
lock xadd dword [edx], eax
sub eax, 1
jne 0x474ab4
test edx, edx
cmove ecx, eax
test ecx, ecx
je 0x474ab4
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], 2
mov eax, dword [eax + 4]
mov dword [edi + 0x18], eax
jmp 0x474ac8
xor edi, edi
push 0x10
mov dword [ebp - 4], 0xffffffff
call fcn.0045a4df
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x474af9
mov dword [eax + 4], 0
mov dword [eax], vtable.._AU__BindState_V__RunnableAdapter_P8PostTaskAndReplyRelay__A0xc7a53060_base__AEXXZ_internal_base____A6AXPAVPostTaskAndReplyRelay__A0xc7a53060_3__Z__A6AXV__UnretainedWrapper_VPostTaskAndReplyRelay__A0xc7a53060_base___23__Z_internal_base__.0
mov dword [eax + 8], 0x476440
mov dword [eax + 0xc], edi
jmp 0x474afb
xor eax, eax
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x474b0e
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
test byte [ebp - 0x18], 0x20
mov dword [ebp - 0x28], 0
je 0x474b26
lea ecx, [ebp - 0xe0]
call fcn.00465f70
mov dword [ebp - 0x28], 0x452450
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
push edx
push dword [ebp - 0x24]
mov dword [ebp - 4], 0x12
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x2c]
test al, al
sete byte [ebp - 0xd]
test ecx, ecx
je 0x474b6b
lea eax, [ecx + 4]
lock xadd dword [eax], esi
sub esi, 1
jne 0x474b6b
test eax, eax
je 0x474b6b
test ecx, ecx
je 0x474b6b
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp - 0xd], 0
je 0x474b9c
test edi, edi
je 0x474b87
mov ecx, edi
call fcn.004666f0
push 0x24
push edi
call fcn.0045a50f
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc