Function at 0x301a54df
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0xffffffff
jne 0x301a54f6
push dword [ebp + 8]
call fcn.30123986
mov dword [ebp + 0x10], eax
push ebx
push esi
push dword [sym.OFFDIAG.exe_unsigned_long_int_NetUI::g_dwElSlot]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x301a5516
mov eax, 0x8000ffff
jmp 0x301a56de
lea eax, [ebx + 0x30]
push edi
mov edi, dword [eax]
cmp edi, esi
mov dword [ebp - 0x10], eax
je 0x301a553d
mov esi, dword [edi]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esi, 8
call fcn.30161ec1
push eax
push dword [ebp + 8]
mov ecx, edi
call dword [esi]
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x301a56db
lea eax, [ebp - 0xc]
push eax
push esi
push 0xd
push 0x14
push 0x300785b8
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call sym.OFFDIAG.exe_int___stdcall_NetUI::FBtreeLookup_void_const___int__unsigned_char_const___unsigned_int__unsigned_int__enum_NetUI::BTLT__unsigned_int__
test eax, eax
je 0x301a5577
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x1c]
xor edx, edx
inc edx
shl edx, cl
test edx, eax
je 0x301a558f
mov ecx, dword [ebp - 4]
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x301a56d4
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x301a56d4
or eax, edx
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], esi
call sym.OFFDIAG.exe_long_int___stdcall_NetUI::CreateMarkupContainer_class_NetUI::Element___struct_NetUI::IMarkupContainer___
mov esi, eax
test esi, esi
jl 0x301a5656
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul edx, edx, 0x14
movzx edx, byte [edx + 0x300785c0]
mov eax, dword [ecx]
push edx
call dword [eax + 0x60]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax + 0x70]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, eax
add esi, 0x54
call fcn.301f25c2
push eax
mov ecx, edi
call dword [esi]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, eax
add esi, 0x58
call fcn.300f2db4
push eax
mov ecx, edi
call dword [esi]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul eax, eax, 0x14
mov edx, dword [ecx]
push 0
push dword [eax + 0x300785c8]
push dword [eax + 0x300785c4]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jl 0x301a5656
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
mov esi, dword [ebp - 8]
je 0x301a5628
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 0x74]
mov esi, eax
test esi, esi
jl 0x301a5656
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
jne 0x301a564d
lea eax, [ebp - 4]
push eax
call fcn.301a54b4
jmp 0x301a5656
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
shl eax, cl
not eax
and dword [ebx + 0x1c], eax
test esi, esi
jge 0x301a568b
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
test ecx, ecx
je 0x301a5677
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
je 0x301a5687
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x301a56dd
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
test edi, edi
je 0x301a56ac
mov esi, dword [edi]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esi, 8
call fcn.30161ec1
push eax
push dword [ebp + 8]
mov ecx, edi
call dword [esi]
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
test ecx, ecx
je 0x301a56bc
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
je 0x301a56cc
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x301a56db
mov eax, 0x80004005
jmp 0x301a56dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc