Function at 0x100c5dd0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10119d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x101e6198]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101e6198]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov edi, dword [esp + 0x368]
mov dword [esp + 0x18], ecx
call sym.i3FrameworkDx.dll_public:_static_class_i3VirtualTexture____cdecl_i3VirtualTexture::_NewObjectRef_void_
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x100c5e4a
push eax
push str.void___thiscall_i3UIManager::MergeVirtualTexture_const_char__
push 0x8f
push eax
call dword [0x10123834]
push str.pTexture___NULL
push str.Asserted_:__s
call dword [0x10123838]
add esp, 0x18
call dword [0x101232fc]
cmp byte [eax], 0
mov ebx, dword [0x101235dc]
push edi
je 0x100c5e73
push eax
push str._s__s
lea eax, [esp + 0x54]
push 0x104
push eax
call ebx
add esp, 0x14
jmp 0x100c5e82
lea ecx, [esp + 0x4c]
push 0x104
push ecx
call ebx
add esp, 0xc
mov ebp, dword [0x101234e8]
lea edx, [esp + 0x48]
push edx
call ebp
lea eax, [esp + 0x4c]
push eax
call dword [0x101234e4]
add esp, 8
test eax, eax
je 0x100c5eab
lea ecx, [esp + 0x48]
push ecx
jmp 0x100c5f3d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14c]
push edx
add eax, 0x21c
push eax
call dword [0x101234ec]
push 1
lea ecx, [esp + 0x25c]
push ecx
push edi
call dword [0x101235f0]
add esp, 0x14
cmp byte [esp + 0x14c], 0
lea edx, [esp + 0x250]
je 0x100c5f07
push edx
lea eax, [esp + 0x150]
push eax
push str._s__s
lea ecx, [esp + 0x54]
push 0x104
push ecx
call ebx
add esp, 0x14
jmp 0x100c5f1b
push 0x104
push edx
lea eax, [esp + 0x50]
push eax
call dword [0x10123768]
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
call ebp
lea edx, [esp + 0x4c]
push edx
call dword [0x101234e4]
add esp, 8
test eax, eax
je 0x100c617d
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_bool___thiscall_i3VirtualTexture::Open_char_const__
movzx eax, al
xor edi, edi
cmp eax, edi
je 0x100c617d
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ecx, dword [esi + 0x294]
sub ecx, dword [esi + 0x290]
mov dword [esp + 0x360], edi
mov dword [esp + 0x1c], edi
test ecx, 0xfffffffc
jle 0x100c60fa
jmp 0x100c5f86
mov esi, ecx
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_struct_I3VT_TEXINFO____thiscall_i3VirtualTexture::getRefTexture_int_
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x178]
mov ecx, dword [esi + 0x294]
sub ecx, dword [esi + 0x290]
xor ebp, ebp
test ecx, 0xfffffffc
jle 0x100c609c
test ebp, ebp
jl 0x100c5fd1
mov edx, dword [esi + 0x294]
sub edx, dword [esi + 0x290]
sar edx, 2
cmp ebp, edx
jl 0x100c5ff8
push 0
push str.struct_I3VT_TEXINFO___thiscall_i3VirtualTexture::getRefTexture_int_
push 0xfa
push 0
call dword [0x10123834]
push str.__idx____0_____idx______INT32_m_TexList.size____
push str.Asserted_:__s
call dword [0x10123838]
add esp, 0x18
mov eax, dword [esi + 0x290]
mov ebx, dword [eax + ebp*4]
mov ecx, dword [esp + 0x14]
push 1
add ecx, 0x100
lea esi, [ebx + 0x100]
call dword [0x10123594]
push 1
mov ecx, esi
mov edi, eax
mov dword [esp + 0x48], edx
call dword [0x10123594]
cmp edi, eax
jne 0x100c6072
cmp dword [esp + 0x44], edx
jne 0x100c6072
mov ecx, dword [esp + 0x14]
push 0
add ecx, 0x100
call dword [0x10123594]
push 0
mov ecx, esi
mov edi, eax
mov dword [esp + 0x40], edx
call dword [0x10123594]
cmp edi, eax
jne 0x100c6072
cmp dword [esp + 0x3c], edx
jne 0x100c6072
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [0x101237cc]
add esp, 8
test eax, eax
je 0x100c60ce
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x178]
mov eax, dword [esi + 0x294]
sub eax, dword [esi + 0x290]
inc ebp
sar eax, 2
cmp ebp, eax
jl 0x100c5fba
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, edi
sub ecx, ebx
sub edx, ebx
sar ecx, 2
sar edx, 2
cmp edx, ecx
jae 0x100c60bf
mov eax, dword [esp + 0x14]
mov dword [edi], eax
add edi, 4
mov dword [esp + 0x24], edi
jmp 0x100c60d6
lea ecx, [esp + 0x14]
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.100c5c60
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x294]
sub edx, dword [ecx + 0x290]
mov eax, dword [esp + 0x1c]
inc eax
sar edx, 2
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x100c5f84
call sym.i3FrameworkDx.dll_public:_static_class_i3Framework____cdecl_i3Framework::getCurrentFramework_void_
mov ebp, dword [eax + 0x194]
sub edi, ebx
sar edi, 2
xor esi, esi
test edi, edi
jbe 0x100c613c
mov eax, dword [ebx + esi*4]
push 0
push eax
mov ecx, ebp
call sym.i3FrameworkDx.dll_public:_class_i3Texture____thiscall_i3ResourceManager::LoadTexture_char_const___int_
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x178]
call sym.i3FrameworkDx.dll_public:_bool___thiscall_i3VirtualTexture::PlaceTexture_class_i3Texture___int___int__
inc esi
cmp esi, edi
jb 0x100c6110
mov dword [esp + 0x360], 0xffffffff
test ebx, ebx
je 0x100c617d
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 edx, dword [eax + 4]
push ebx
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 ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.100ed375
add esp, 0x350
ret 4