Function at 0x412a60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2d58
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4c8104]
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 [0x50b8e0]
mov edi, eax
add eax, 0xffffff58
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [edi + 0x190]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x412ac4
cmp dword [eax], esi
je 0x412c86
mov eax, dword [eax + 8]
test eax, eax
jne 0x412ab5
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0040d230
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x608]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov eax, dword [edi + 0x190]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x6c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x23], 1
mov byte [ebp - 0x73], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
push 0x34
mov dword [ebp - 0x44], eax
call fcn.0042ae70
mov edx, eax
add esp, 4
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x41d7f0
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 - 0x2c]
push edx
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0042acf0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x44]
call fcn.0041d750
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x412c3f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x412c3f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x412c3f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 9
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x412c6b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x412c6b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x412c6b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.0049f3c4
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x412ac4
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x2c], eax
mov edi, dword [eax]
mov esi, dword [edi]
cmp esi, edi
je 0x412cd5
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
add edx, 4
mov dword [ebp - 0x34], edx
mov eax, dword [esi + 0x20]
push edx
mov byte [eax + 0x70], 1
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x18]
add eax, 0x20
push eax
call fcn.00435e70
mov esi, dword [esi]
mov edx, dword [ebp - 0x34]
cmp esi, edi
jne 0x412cb2
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.00408a70
mov ecx, dword [ebp - 0x28]
push 8
call fcn.00407470
jmp 0x412c6b