Function at 0x412960
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d5104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
push dword [0x518c04]
mov edi, eax
add eax, 0xfffffea8
neg edi
sbb edi, edi
and edi, eax
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0x190]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4129c7
cmp dword [eax], esi
je 0x412b8c
mov eax, dword [eax + 8]
test eax, eax
jne 0x4129b8
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.0040d420
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x608]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [edi + 0x190]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x70], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x23], 1
mov byte [ebp - 0x77], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
push 0x34
mov dword [ebp - 0x40], eax
call fcn.0042b1e0
mov edx, eax
add esp, 4
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x41dad0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov cl, byte [ebp - 0x23]
mov byte [edx + 0x21], cl
mov ecx, edi
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x23], 0
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x30]
push edx
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0042b060
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x40]
call fcn.0041d940
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x412b42
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x412b42
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x412b42
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 9
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x412b6e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x412b6e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x412b6e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e74
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x4129c7
mov ecx, dword [ebp - 0x28]
mov edi, dword [ecx]
mov esi, dword [edi]
cmp esi, edi
je 0x412b6e
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
lea eax, [eax + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x10]
push eax
lea eax, [ecx + 8]
mov ecx, dword [ecx]
push eax
call fcn.004364a0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x412be7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x412be3
cmp esi, dword [eax + 8]
jne 0x412be3
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x412bd3
mov esi, eax
jmp 0x412bfd
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x412bfd
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x412bf1
mov eax, dword [ebp - 0x28]
cmp esi, edi
jne 0x412bb2
jmp 0x412b6e