Function at 0x474d40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa8c5
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push esi
push edi
mov eax, dword [0x5f537c]
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.0045a8af
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
or esi, 0xffffffff
mov dword [ebp - 4], 0
test edi, edi
je 0x474eb6
mov eax, dword [ebp - 0x24]
lea esi, [edi + 0x10]
xorps xmm0, xmm0
mov ecx, 0x602d68
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.004749d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov dword [esi], ecx
test ecx, ecx
je 0x474dee
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 0x474e29
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 0x474e5f
mov eax, esi
lea edx, [ecx + 4]
lock xadd dword [edx], eax
lea edx, [edi + 0x1c]
sub eax, 1
jne 0x474e5f
lea eax, [ecx + 4]
test eax, eax
mov eax, 0
cmove ecx, eax
test ecx, ecx
je 0x474e5f
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 0x474e7d
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 0x474ea4
lea edx, [ecx + 4]
mov eax, esi
lock xadd dword [edx], eax
sub eax, 1
jne 0x474ea4
test edx, edx
cmove ecx, eax
test ecx, ecx
je 0x474ea4
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 0x474eb8
xor edi, edi
push 0x10
mov dword [ebp - 4], 0xffffffff
call fcn.0045a8af
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x474ee9
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], 0x476820
mov dword [eax + 0xc], edi
jmp 0x474eeb
xor eax, eax
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x474efe
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
test byte [ebp - 0x18], 0x20
mov dword [ebp - 0x28], 0
je 0x474f16
lea ecx, [ebp - 0xe0]
call fcn.00466340
mov dword [ebp - 0x28], 0x452820
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 0x474f5b
lea eax, [ecx + 4]
lock xadd dword [eax], esi
sub esi, 1
jne 0x474f5b
test eax, eax
je 0x474f5b
test ecx, ecx
je 0x474f5b
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp - 0xd], 0
je 0x474f8c
test edi, edi
je 0x474f77
mov ecx, edi
call fcn.00466ac0
push 0x24
push edi
call fcn.0045a8df
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