Function at 0x100c4140
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10119cf7
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x101e6198]
xor eax, esp
mov dword [esp + 0x738], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101e6198]
xor eax, esp
push eax
lea eax, [esp + 0x750]
mov dword fs:[0], eax
mov esi, dword [esp + 0x760]
mov ebx, ecx
test esi, esi
je 0x100c468f
lea ecx, [esp + 0x30]
call dword [0x101234e0]
mov dword [esp + 0x758], 0
call dword [0x101232fc]
cmp byte [eax], 0
je 0x100c41cb
push esi
push eax
push str._s__s
lea eax, [esp + 0x244]
push 0x104
push eax
call dword [0x101235dc]
add esp, 0x14
jmp 0x100c41e2
push 0x104
lea ecx, [esp + 0x23c]
push esi
push ecx
call dword [0x10123768]
add esp, 0xc
lea edx, [esp + 0x238]
push edx
call dword [0x101234e8]
lea eax, [esp + 0x23c]
push eax
call dword [0x101234e4]
add esp, 8
test eax, eax
jne 0x100c42d9
mov edi, dword [0x101237e0]
push 0x104
lea edx, [esp + 0x340]
push esi
push edx
call edi
mov ebp, dword [0x101235f0]
push 0
lea eax, [esp + 0x658]
push eax
lea ecx, [esp + 0x350]
push ecx
call ebp
push 0x104
lea edx, [esp + 0x560]
push esi
push edx
mov byte [eax], 0
call edi
push 1
lea eax, [esp + 0x468]
push eax
lea ecx, [esp + 0x570]
push ecx
call ebp
lea edx, [esp + 0x36c]
push edx
call dword [0x101234e8]
lea eax, [esp + 0x370]
push eax
call dword [0x1012362c]
add esp, 0x38
lea edx, [esp + 0x238]
test eax, eax
jne 0x100c42a2
lea ecx, [esp + 0x440]
push ecx
push 0x1013bec8
push edx
call fcn.100ee115
add esp, 0xc
jmp 0x100c42c0
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x340]
push ecx
push str._s__s
push edx
call fcn.100ee115
add esp, 0x10
lea eax, [esp + 0x238]
push eax
call dword [0x101234e4]
add esp, 4
test eax, eax
je 0x100c467a
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0x34]
call dword [0x101234dc]
movzx eax, al
xor ebp, ebp
cmp eax, ebp
je 0x100c467a
lea ecx, [esp + 0x30]
call dword [0x101234d4]
mov edi, eax
xor esi, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov ecx, dword [edi + 0x328]
sub ecx, dword [edi + 0x324]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x758], 1
mov dword [esp + 0x18], esi
test eax, eax
jle 0x100c4458
mov dword [esp + 0x14], esi
mov ecx, dword [edi + 0x324]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx + 0x10]
mov ecx, dword [ebx + 0x17c]
mov edx, dword [ecx + 0x328]
sub edx, dword [ecx + 0x324]
add ecx, 0x324
mov dword [esp + 0x1c], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
test eax, eax
jle 0x100c43ea
xor ebp, ebp
mov edi, edi
mov ecx, dword [ecx]
mov ecx, dword [ecx + ebp + 0x10]
call dword [0x1012369c]
mov ecx, dword [esp + 0x1c]
push eax
call dword [0x1012369c]
push eax
call dword [0x101237cc]
add esp, 8
test eax, eax
je 0x100c4421
mov ecx, dword [ebx + 0x17c]
mov edx, dword [ecx + 0x328]
sub edx, dword [ecx + 0x324]
add ecx, 0x324
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebp, 0x18
cmp esi, eax
jl 0x100c4390
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, ebp
sub ecx, eax
sub edx, eax
sar ecx, 2
sar edx, 2
cmp edx, ecx
jae 0x100c4412
mov eax, dword [esp + 0x1c]
mov dword [ebp], eax
add ebp, 4
mov dword [esp + 0x24], ebp
jmp 0x100c4425
lea ecx, [esp + 0x1c]
push ecx
push ebp
lea ecx, [esp + 0x28]
call fcn.100a2520
mov ebp, dword [esp + 0x24]
mov ecx, dword [edi + 0x328]
sub ecx, dword [edi + 0x324]
mov esi, dword [esp + 0x18]
add dword [esp + 0x14], 0x18
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x100c434b
sub ebp, dword [esp + 0x20]
mov dword [esp + 0x14], 0
sar ebp, 2
mov dword [esp + 0x18], ebp
test ebp, ebp
jbe 0x100c44d2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [ecx + edx*4]
mov ecx, dword [ebx + 0x17c]
push 0
push edi
call sym.i3FrameworkDx.dll_public:_int___thiscall_i3UILibrary::AddElement_class_i3UITemplate___bool_
call sym.i3FrameworkDx.dll_public:_static_class_i3UILTreeNode_Template____cdecl_i3UILTreeNode_Template::_NewObject_void_
mov esi, eax
push edi
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3UILTreeNode_Template::SetTemplate_class_i3UITemplate__
mov ebp, dword [esi]
mov ecx, edi
add ebp, 0x28
call dword [0x1012369c]
push eax
mov eax, dword [ebp]
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x17c]
mov ecx, dword [ecx + 0x334]
push esi
call dword [0x1012349c]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jb 0x100c446f
mov edi, dword [esp + 0x2c]
add edi, 0x119
push edi
mov ecx, ebx
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3UIManager::MergeVirtualTexture_char_const__
mov ecx, dword [ebx + 0x17c]
mov edx, dword [ecx + 0x328]
sub edx, dword [ecx + 0x324]
add ecx, 0x324
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
mov dword [esp + 0x18], esi
test eax, eax
jle 0x100c4635
mov dword [esp + 0x1c], esi
jmp 0x100c4520
mov ecx, dword [ecx]
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx + ecx + 0x10]
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
mov ecx, ebp
mov dword [esp + 0x14], 0
call edx
test eax, eax
jle 0x100c45f6
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [eax + 0x34]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [ebx + 0x178]
mov edi, eax
lea eax, [edi + 0x119]
push eax
call sym.i3FrameworkDx.dll_public:_int___thiscall_i3VirtualTexture::FindRefTexture_char_const__
mov esi, eax
cmp esi, 0xffffffff
je 0x100c45db
mov eax, dword [ebx + 0x178]
mov dword [esp + 0x2c], eax
test esi, esi
jl 0x100c458f
mov ecx, dword [eax + 0x294]
sub ecx, dword [eax + 0x290]
sar ecx, 2
cmp esi, ecx
jl 0x100c45ba
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]
mov eax, dword [esp + 0x44]
add esp, 0x18
mov edx, dword [eax + 0x290]
mov esi, dword [edx + esi*4]
mov eax, dword [esi + 0x11c]
mov esi, dword [esi + 0x118]
mov dword [edi + 0x241], esi
mov dword [edi + 0x245], eax
mov esi, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
inc esi
mov ecx, ebp
mov dword [esp + 0x14], esi
call edx
cmp esi, eax
jl 0x100c4544
mov ecx, dword [ebx + 0x17c]
mov edx, dword [ecx + 0x328]
sub edx, dword [ecx + 0x324]
mov esi, dword [esp + 0x18]
add dword [esp + 0x1c], 0x18
add ecx, 0x324
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x100c4520
cmp dword [esp + 0x20], 0
mov byte [esp + 0x758], 0
je 0x100c467a
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 + 0x20]
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]
lea ecx, [esp + 0x30]
mov dword [esp + 0x758], 0xffffffff
call dword [0x101234d8]
mov ecx, dword [esp + 0x750]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x738]
xor ecx, esp
call fcn.100ed375
add esp, 0x748
ret 4