Function at 0x1019b900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push dword [0x1065a1cc]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1019b922
mov esi, dword [eax + 0x74]
jmp 0x1019b924
xor esi, esi
test esi, esi
jne 0x1019b938
push 0x80040014
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1019bb20
and dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x18]
push esi
push 0
push 1
call fcn.101f90a3
test eax, eax
jne 0x1019b95c
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1019bb18
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1019bb2a
mov eax, dword [edi + 0x10]
mov ecx, 0x1fffff
and eax, ecx
cmp eax, dword [edi + 0x10]
jne 0x1019bb2a
mov eax, dword [edi + 0x14]
and eax, ecx
cmp eax, dword [edi + 0x14]
jne 0x1019bb2a
mov eax, dword [edi + 8]
and eax, 0x3ff
cmp eax, dword [edi + 8]
jne 0x1019bb2a
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
and eax, 0xf
mov dword [ebp - 0xc], ecx
sub eax, 1
je 0x1019ba9e
sub eax, 1
je 0x1019ba77
sub eax, 3
je 0x1019b9ff
dec eax
sub eax, 1
jne 0x1019bb2a
cmp dword [ebp + 8], ebx
jne 0x1019bb2a
test ecx, ecx
je 0x1019bb2a
and dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.101fdca2
test eax, eax
js 0x1019b9f9
mov ebx, dword [ebp + 8]
jmp 0x1019bb17
push eax
jmp 0x1019bb2f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1019ba2e
mov eax, dword [ecx]
call dword [eax + 0x14]
shr eax, 2
test al, 1
push 0
pop eax
cmovne eax, dword [ebp + 8]
test eax, eax
je 0x1019bb2a
cmp esi, dword [eax + 8]
je 0x1019ba4e
push 0x8004001e
jmp 0x1019bb2f
call fcn.1019b49a
test eax, eax
jne 0x1019ba3b
xor ecx, ecx
jmp 0x1019ba3e
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 8]
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
test eax, eax
je 0x1019bb2a
and dword [ebp + 0x10], ebx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.101fa589
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
js 0x1019ba6f
mov esi, dword [ebp + 0x10]
jmp 0x1019bad2
push eax
call ebx
mov esi, dword [ebp + 0x10]
jmp 0x1019badd
and dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.101ff3a6
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
js 0x1019ba96
mov esi, dword [ebp + 8]
jmp 0x1019bad2
push eax
call ebx
mov esi, dword [ebp + 8]
jmp 0x1019badd
mov esi, dword [ebp + 8]
test esi, esi
je 0x1019bb2a
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1019bb2a
and dword [ebp + 0xc], ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.101ff342
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
js 0x1019bad7
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x1019badd
push eax
call ebx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1019bb14
cmp dword [edi + 0xc], 0
je 0x1019baf4
push dword [edi + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 8]
call dword [eax + 0x18]
cmp dword [edi + 0x14], 0
je 0x1019bb14
push 0
push dword [edi + 0x14]
mov ecx, esi
push dword [edi + 0x10]
call fcn.101faf49
test eax, eax
jns 0x1019bb14
push 0x80070057
call ebx
mov ebx, dword [ebp - 4]
pop edi
lea ecx, [ebp - 0x18]
call fcn.101f8f0d
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1019bb17