Function at 0x411080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a27e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
lea esi, [ebx + 0x10]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x90]
push esi
mov dword [ebp - 0x98], eax
call fcn.0041dab0
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], 0
mov eax, dword [ecx]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 4]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
test ecx, ecx
je 0x4110fb
lock inc dword [ecx + 4]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov edi, dword [ebx]
add ebx, 4
push dword [0x6b123c]
mov dword [ebp - 4], 0
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411136
cmp dword [eax], esi
je 0x411228
mov eax, dword [eax + 8]
test eax, eax
jne 0x411127
lea eax, [ebp - 0x98]
push eax
push 0x88
mov dword [ebp - 0x28], eax
call fcn.0042c900
mov esi, eax
mov dword [ebp - 0x20], 0
add esp, 8
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
push eax
mov dword [esi + 0x18], fcn.00432960
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.0041bda0
push esi
push ebx
mov ecx, edi
call fcn.00435f40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
test al, al
je 0x411274
mov eax, dword [ebx]
xorps xmm0, xmm0
push dword [0x6b123c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x6b123c]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
push 0x6b1290
push 0x413160
push 0x6b128c
mov byte [ebp - 4], 4
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x4112cd
jmp 0x411248
cmp dword [eax + 4], 0
je 0x411136
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.00414ad0
add esp, 8
jmp 0x41127c
push 0
lea eax, [ebp - 0xa0]
push eax
push esi
push dword [edi + 0x14]
call fcn.00432960
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00422a30
push dword [ebp - 0x14]
push dword [0x6b123c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 0x28]
call fcn.0044cd10
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x4112a4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4112a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4112a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x90]
call fcn.004220e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 8
call fcn.006027a2
int3