Function at 0x100cfe10
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x1011a417
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x101e6198]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101e6198]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edi, dword [esi + 0x27c]
mov dword [esp + 0x270], ebx
call sym.i3FrameworkDx.dll_public:_static_class_i3VirtualTextureCache_Allocator____cdecl_i3VirtualTextureCache_Allocator::_NewObject_void_
mov ebp, eax
push edi
mov ecx, ebp
mov dword [esp + 0x30], ebp
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3VirtualTextureCache_Allocator::Create_int_
cvtsi2ss xmm0, dword [esi + 0x254]
sub esp, 8
movss dword [esp + 4], xmm0
cvtsi2ss xmm0, dword [esi + 0x250]
mov ecx, ebp
movss dword [esp], xmm0
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3VirtualTextureCache_Allocator::SetSpace_float__float_
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_bool___thiscall_i3VirtualTexture::CheckRefTextureFiles_void_
test al, al
je 0x100d027c
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call sym.i3FrameworkDx.dll_protected:_void___thiscall_i3VirtualTexture::_SortRefTextures_class_i3::vector_struct_I3VT_TEXINFO___class_i3::pool_allocator_struct_I3VT_TEXINFO_____
mov eax, dword [esi + 0x290]
cmp eax, dword [esi + 0x294]
je 0x100cfecf
mov dword [esi + 0x294], eax
xor edx, edx
cmp dword [esi + 0x27c], ebx
jle 0x100cff34
xor ecx, ecx
jmp 0x100cfee0
mov eax, dword [esi + 0x28c]
mov dword [eax + ecx], ebx
add eax, ecx
mov eax, dword [esi + 0x28c]
add eax, ecx
or edi, 0xffffffff
mov dword [eax + 0x10], edi
mov eax, dword [esi + 0x28c]
and dword [eax + ecx], 0xfffffffe
add eax, ecx
mov dword [eax + 8], edi
mov eax, dword [esi + 0x28c]
and dword [eax + ecx], 0xfffffffd
add eax, ecx
mov dword [eax + 0xc], edi
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28c]
add eax, ecx
inc edx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
add ecx, 0x20
cmp edx, dword [esi + 0x27c]
jl 0x100cfee0
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3VirtualTexture::UnregisterAll_void_
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3VirtualTexture::RemoveAllSubsetAndFiles_void_
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3VirtualTexture::RegisterAll_void_
mov ecx, dword [esi + 0x2cc]
sub ecx, dword [esi + 0x2c8]
xor edi, edi
sar ecx, 2
test ecx, ecx
jbe 0x100cff9d
mov ebp, 0x800
push edi
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_struct_I3VT_IOHANDLE____thiscall_i3VirtualTexture::getHandle_int_
cmp edi, ebx
jne 0x100cff83
mov edx, dword [esi + 0x2b8]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x2bc]
mov dword [eax + 0x14], ecx
jmp 0x100cff89
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebx
mov edx, dword [esi + 0x2cc]
sub edx, dword [esi + 0x2c8]
inc edi
sar edx, 2
cmp edi, edx
jb 0x100cff63
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x1c]
xor edi, edi
sar ebp, 2
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ebp
cmp ebp, ebx
jbe 0x100d01b7
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax + edi*4]
push ebp
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_int___thiscall_i3VirtualTexture::FindRefTexture_char_const__
cmp eax, 0xffffffff
jne 0x100d01a4
lea ecx, [esp + 0x3c]
call dword [0x10123a0c]
push ebp
mov byte [esp + 0x274], 1
call dword [0x101234e4]
add esp, 4
cmp eax, 1
jne 0x100d000e
push ebp
push 0x1013bec8
lea ecx, [esp + 0x64]
push 0x104
push ecx
call dword [0x101235dc]
add esp, 0x10
jmp 0x100d0051
mov edi, dword [0x101232fc]
push 0x104
lea edx, [esp + 0x164]
push edx
push ebp
call edi
push eax
call dword [0x10123498]
lea eax, [esp + 0x170]
add esp, 0x10
push eax
call edi
push eax
push str._s__s
lea ecx, [esp + 0x68]
push 0x104
push ecx
call dword [0x101235dc]
add esp, 0x14
mov edi, dword [0x10123310]
lea edx, [esp + 0x5c]
push edx
call edi
push ebp
call edi
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x40]
call dword [0x10123a08]
mov edi, eax
cmp edi, ebx
jne 0x100d009e
push ebx
push str.bool___thiscall_i3VirtualTexture::Defragment_void_
push 0x684
push ebx
call dword [0x10123834]
push str.pTex___NULL
push str.Asserted_:__s
call dword [0x10123838]
add esp, 0x18
push ebp
mov ecx, edi
call dword [0x10123318]
mov ecx, edi
call dword [0x10123ac4]
mov ecx, dword [esi + 0x270]
cdq
idiv ecx
imul ecx, eax
cmp edx, ebx
je 0x100d00c5
add ecx, dword [esi + 0x270]
cvtsi2ss xmm0, ecx
mov ecx, edi
movss dword [esp + 0x30], xmm0
call dword [0x10123ac0]
mov ecx, dword [esi + 0x270]
cdq
idiv ecx
imul ecx, eax
mov dword [esp + 0x14], ecx
cmp edx, ebx
je 0x100d00f5
add ecx, dword [esi + 0x270]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
push edx
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call sym.i3FrameworkDx.dll_public:_bool___thiscall_i3VirtualTextureCache_Allocator::Alloc_float__float__int__union_VEC2D__
test al, al
jne 0x100d014d
push 1
push str.bool___thiscall_i3VirtualTexture::Defragment_void_
push 0x695
push str......._srci3Frameworki3UIi3VirtualTexture.cpp
call dword [0x10123834]
push str.Not_enough_space____It_should_not_be_happened.
call dword [0x10123838]
add esp, 0x14
jmp 0x100d0186
mov ecx, dword [ebp + 0x130]
mov edx, dword [ebp + 0x12c]
cvttss2si eax, dword [esp + 0x38]
cvttss2si ebx, dword [esp + 0x34]
push ecx
push edx
push eax
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x28], eax
call sym.i3FrameworkDx.dll_public:_int___thiscall_i3VirtualTexture::AddRefTexture_class_i3Texture___int__int__unsigned_long_long_unsigned___int64__
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3VirtualTexture::SettleTexture_int__int__class_i3Texture___int_
xor ebx, ebx
mov ecx, edi
call dword [0x10123858]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x270], 0
call dword [0x10123a00]
mov edi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x28]
jb 0x100cffba
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x2cc]
sub ecx, dword [esi + 0x2c8]
xor edi, edi
sar ecx, 2
test ecx, ecx
jbe 0x100d01f5
lea esp, [esp]
push edi
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_struct_I3VT_IOHANDLE____thiscall_i3VirtualTexture::getHandle_int_
push eax
call fcn.100d8360
mov edx, dword [esi + 0x2cc]
sub edx, dword [esi + 0x2c8]
inc edi
sar edx, 2
add esp, 4
cmp edi, edx
jb 0x100d01d0
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x100d0203
call dword [0x10123858]
mov esi, dword [esi + 0x2d4]
cmp esi, ebx
je 0x100d0218
push 1
push 1
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3VirtualTextureCache::ResetCache_bool__bool_
xor esi, esi
cmp ebp, ebx
jbe 0x100d0233
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
push eax
call fcn.100ed384
inc esi
add esp, 4
cmp esi, ebp
jb 0x100d021e
mov dword [esp + 0x270], 0xffffffff
cmp dword [esp + 0x1c], ebx
je 0x100d027a
mov ecx, dword [0x101237bc]
mov edx, dword [ecx]
mov esi, dword [0x101e7834]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push edi
push ecx
push eax
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
push esi
call eax
add esp, 0xc
mov ecx, eax
call dword [0x1012379c]
mov al, 1
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.100ed375
add esp, 0x260
ret