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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102278f8
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x1029912c]
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 edi, edx
mov dword [ebp - 0x34], edi
mov ebx, ecx
mov eax, dword [edi + 8]
lea esi, [edi + 0x10]
push esi
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd8], eax
call fcn.1001dbd0
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
test ecx, ecx
je 0x1001f6cf
lock inc dword [ecx + 4]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
mov eax, dword [ebx]
mov dword [ebp - 0x90], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x88], eax
lea eax, [ebx + 0x10]
push eax
call fcn.10017a20
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
lea ebx, [edi + 4]
push dword [0x102ad738]
mov edi, dword [edi]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001f744
cmp dword [eax], esi
je 0x1001f842
mov eax, dword [eax + 8]
test eax, eax
jne 0x1001f735
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x88]
push eax
push 0xc8
call fcn.10023580
mov esi, eax
mov dword [ebp - 0x28], 0
add esp, 8
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd8]
push eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], fcn.100204f0
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.100208e0
push esi
push ebx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10022bf0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
test al, al
je 0x1001f887
mov eax, dword [ebx]
xorps xmm0, xmm0
push dword [0x102ad738]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x102ad738]
mov dword [ebp - 0x18], eax
call ebx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
push 0x102a8ad8
push 0x1003c720
push 0x102a8ae0
mov byte [ebp - 4], 7
call fcn.101d1ed1
add esp, 0xc
test eax, eax
je 0x1001f8ae
jmp 0x1001f862
cmp dword [eax + 4], 0
je 0x1001f744
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10021580
add esp, 8
jmp 0x1001f887
push 0
lea eax, [ebp - 0x38]
push eax
push esi
push dword [edi + 0x18]
call fcn.100204f0
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.10022b80
push dword [ebp - 0x14]
push dword [0x102ad738]
call ebx
lea ecx, [ebp - 0xd8]
call fcn.1001f9b0
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.101d506b
mov esp, ebp
pop ebp
ret
call fcn.101f7e31
int3