Function at 0x10169123
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x10169140
push dword [ebp + 8]
call fcn.10113ed3
mov edi, eax
mov dword [ebp + 0x10], edi
push dword [0x10658524]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x1016915f
mov eax, 0x8000ffff
jmp 0x1016932e
lea eax, [esi + 0x3c]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x1016918f
mov eax, dword [ebx]
and dword [ebx], 0
test eax, eax
je 0x10169185
mov ecx, eax
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push edi
push ebx
push dword [ebp + 8]
call dword [eax + 8]
cmp dword [ebx], 0
jne 0x1016932b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0
push 0x10
push 0x14
push 0x10418620
push edi
push dword [ebp + 8]
call fcn.1017c454
test al, al
je 0x10169312
mov ecx, dword [ebp - 8]
xor eax, eax
mov edx, dword [esi + 0x24]
inc eax
shl eax, cl
test edx, eax
jne 0x10169312
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
bts edx, ecx
push 0
mov dword [esi + 0x24], edx
call fcn.1018969e
mov esi, eax
test esi, esi
js 0x1016929f
imul eax, dword [ebp - 8], 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
movzx eax, byte [eax + 0x10418628]
push eax
call dword [edx + 0x60]
mov ecx, dword [ebp + 0xc]
push 1
mov eax, dword [ecx]
call dword [eax + 0x70]
call fcn.10258270
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [eax]
mov edi, dword [esi]
call dword [edx]
push eax
mov ecx, esi
call dword [edi + 0x54]
call fcn.10258270
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [eax]
mov edi, dword [esi]
call dword [edx + 4]
push eax
mov ecx, esi
call dword [edi + 0x58]
imul eax, dword [ebp - 8], 0x14
mov ecx, dword [ebp + 0xc]
push 0
mov edx, dword [ecx]
push dword [eax + 0x10418630]
push dword [eax + 0x1041862c]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
js 0x1016929c
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x1016926c
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
js 0x1016929c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
test edx, edx
jne 0x10169293
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
call fcn.10168faa
jmp 0x1016929c
mov ecx, dword [ebp - 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0x24]
btr ecx, eax
mov dword [edx + 0x24], ecx
test esi, esi
jns 0x101692c4
mov ecx, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
test ecx, ecx
je 0x10169317
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10169317
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
test esi, esi
je 0x101692e7
mov ecx, dword [ebx]
and dword [ebx], 0
test ecx, ecx
je 0x101692db
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
push dword [ebp + 8]
call dword [eax + 8]
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp + 0xc], esi
test ecx, ecx
je 0x101692f8
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], esi
test ecx, ecx
je 0x10169307
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx], esi
jne 0x1016932b
mov eax, 0x80004005
jmp 0x1016932d
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
je 0x10169327
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x1016932d
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc