Function at 0x411f20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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 edi, ecx
mov dword [ebp - 0x2c], edi
push dword [0x518c04]
mov ecx, 0x8f4
lea eax, [edi + 0x864]
test edi, edi
cmove eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411f86
cmp dword [eax], esi
je 0x412114
mov eax, dword [eax + 8]
test eax, eax
jne 0x411f77
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
test edi, edi
mov dword [ebp - 0x5c], edi
lea ecx, [edi + 0x438]
mov dword [ebp - 0x4c], 0
mov eax, 0x4c8
mov dword [ebp - 0x48], 0
cmove ecx, eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x58], 0
mov eax, dword [eax]
mov dword [ebp - 0x54], 0
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 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], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
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.0042b1e0
mov edx, eax
add esp, 4
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x41dcb0
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, esi
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.0042b060
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
call fcn.0041d940
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4120f9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4120f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4120f9
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.004a8e74
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x411f86
lea eax, [edi + 4]
mov edi, dword [eax]
mov dword [ebp - 0x28], eax
mov esi, dword [edi]
cmp esi, edi
je 0x412163
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
add edx, 4
mov dword [ebp - 0x34], edx
nop dword [eax]
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.004364a0
mov esi, dword [esi]
mov edx, dword [ebp - 0x34]
cmp esi, edi
jne 0x412140
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.00408be0
mov ecx, dword [ebp - 0x2c]
push 8
call fcn.004075e0
jmp 0x4120f9