Function at 0x508b60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab26c
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 0x1c]
mov dword [ebp - 0x2c], 0
mov ecx, esi
cmp byte [edi + 0xc0], 0
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
je 0x508beb
mov eax, dword [eax + 0xc4]
call eax
test al, al
mov edx, 0xa0
mov eax, dword [ebp - 0x24]
mov ecx, 0x60
cmovne ecx, edx
mov edx, dword [eax + 0x18]
test ecx, edx
jne 0x508de3
test dl, 0x14
je 0x508de3
or edx, 0xb
and edx, 0xffffff3f
mov dword [eax + 0x18], edx
jmp 0x508de3
mov eax, dword [eax + 0x28]
call eax
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x508de0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
mov eax, dword [esi]
mov ecx, esi
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x4c], xmm0
mov eax, dword [eax + 0x28]
call eax
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x508de0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.00504340
add esp, 8
test al, al
je 0x508de0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x508dc4
cmp eax, dword [edi + 0xcc]
jne 0x508dc4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf0]
call eax
test al, al
jne 0x508c99
lea eax, [edi + 0xd0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004d6550
test al, al
je 0x508dc1
lea eax, [edi + 0xe0]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004e82b0
test al, al
je 0x508dc1
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf0]
call eax
test al, al
je 0x508caf
movups xmm0, xmmword [ebp - 0x5c]
jmp 0x508cf6
mov ecx, edi
call fcn.00503e10
test eax, eax
je 0x508cd8
movups xmm0, xmmword [ebp - 0x4c]
push 0x20
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
lea ecx, [ebp - 0x3c]
push eax
push eax
call fcn.00430b00
jmp 0x508cfa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004d64c0
mov ecx, eax
call fcn.004d6740
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x3c], xmm0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 0x18]
and eax, 0xfffffff4
or eax, 0x100
cmp dword [0x61a268], 1
mov dword [ecx + 0x18], eax
mov byte [edi + 0xc0], 1
jne 0x508d7d
cmp dword [0x61a250], 3
jg 0x508d7d
mov eax, dword [edi + 0xc4]
test eax, eax
je 0x508d7d
cmp dword [eax], 1
je 0x508d7d
push 3
push 0x982
push str.f:my_lab_tabexplorerextab_masterlibrary_viewwidget_native_widget_win.cpp
lea ecx, [ebp - 0x12c]
call fcn.0046c100
mov dword [ebp - 4], 0
lea ecx, [eax + 8]
mov edx, str.Check_failed:_ignore_pos_changes_factory_.empty__.
mov dword [ebp - 0x2c], 1
call fcn.00403840
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x2c], 1
je 0x508d95
lea ecx, [ebp - 0x12c]
call fcn.0046c520
call fcn.0046fec0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0x504070
lea ecx, [edi + 0xc4]
mov esi, eax
call fcn.0050a130
push eax
mov ecx, esi
call fcn.0046e090
lea esi, [edi + 0x1c]
mov eax, dword [ebp - 0x28]
movups xmm0, xmmword [ebp - 0x5c]
mov dword [edi + 0xcc], eax
movups xmmword [edi + 0xd0], xmm0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [edi + 0xe0], xmm0
mov eax, dword [ebp - 0x24]
cmp dword [edi + 0xac], 0
je 0x508df0
and dword [eax + 0x18], 0xffffffbf
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x28]
call eax
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x508e39
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2c], ecx
cmp ecx, 6
jge 0x508e39
push eax
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x46
mov eax, dword [eax + 0x28]
call eax
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x14], ecx
mov dword [edi + 0x20], 1
jmp 0x508e40
mov dword [edi + 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret 4